Johan B.W. de Vries
ac516d55a2
Implement and test strlen
2026-02-01 12:49:15 +01:00
Johan B.W. de Vries
68611b4df3
More work
2026-01-25 15:10:26 +01:00
Johan B.W. de Vries
49e1bf204f
Adds backslash as a build in constant
2026-01-25 15:10:12 +01:00
Johan B.W. de Vries
5369c15e05
Adds intinc as a buildint function
2026-01-25 13:14:02 +01:00
Johan B.W. de Vries
a282292604
Adds strlen as a builtin function
2026-01-25 12:47:58 +01:00
Johan B.W. de Vries
1be24ef771
close, but no sigare
2026-01-18 16:09:21 +01:00
Johan B.W. de Vries
449a89d6b3
More work
2026-01-18 15:05:21 +01:00
Johan B.W. de Vries
c9029b1216
More work
2026-01-18 14:47:57 +01:00
Johan B.W. de Vries
1671ce2285
More testing
2026-01-18 14:21:48 +01:00
Johan B.W. de Vries
098ab080ca
Updated llvm with other changes
...
Started on outputting string constants
Need to:
- Calc string length
- Implement _add (including allocation)
- Everything else
2026-01-18 13:11:17 +01:00
Johan B.W. de Vries
cfae563aef
Start on llvm IR target
...
# Conflicts:
# README.md
2025-05-04 18:18:45 +02:00
Johan B.W. de Vries
8502abeff6
Start on llvm IR target
2025-05-04 18:10:53 +02:00
Johan B.W. de Vries
670532059a
Feat: Adds mapclear, mapgetkey, mapsetkey
...
Feat: Error on undefined function
Fix: All ids are now prefix to prevent native var clashes.
This was already done on it2, but now also in it0 and it1.
Redid it2 to match.
Fix: generate-recipes would not complain on missing exp.
Fix: Adds documentation and test for not
Chore: __check helper function for ease of use in it0, it1.
Chore: some reordering to match more between iterations.
2025-05-04 18:06:04 +02:00
Johan B.W. de Vries
6055cddab2
Extends the test framework to prepare for compilation tests
...
Feat: add now can add two full strings
Fix: it2 would have different working for emit eof
Fix: eq and lt would return bools on it0 and it1
Fix: Functions always return something (there is no such
thing as an empty type).
Fix: Return value from main is now always ignored.
Fix: Output from check is same on all iterations
2025-05-04 14:33:10 +02:00
Johan B.W. de Vries
1b8333fcfa
Switch to Python 3.12
2025-05-03 16:51:38 +02:00
Johan B.W. de Vries
2eaa763a2c
Remove skipchar, add stdinlineno / stdincolno
...
With the new check function, this helper method doesn't make
much sense to put in the standard library.
To replicate the same result, we do need to expose the current
line number; adding column number is a nice bonus.
Also; made it a bit clearer when a check failes in it2.
Also; the builtincheckfalse was not working.
Also; separated out the test input file to have more data.
2025-02-09 15:38:02 +01:00
Johan B.W. de Vries
ed09d37213
Fix: predeclared functions would sometimes fail
2025-02-09 15:03:47 +01:00
Johan B.W. de Vries
a184d4c5e3
You can now return a constant string
...
Rather than having to store it as a variable
2025-02-09 15:03:11 +01:00
Johan B.W. de Vries
5fa042c5cd
Adds check builtin
2025-02-09 15:02:25 +01:00
Johan B.W. de Vries
931a861fef
Made it clearer where in a Python build it failed
...
Also, fixed a newline.
2025-02-09 15:01:01 +01:00
Johan B.W. de Vries
7568a15093
Makefile improvements
...
Using a tmp file prevents a failed build from being reported
as succeeded.
Changes in the compiler should now rebuild the tests
automatically.
2025-02-09 14:59:09 +01:00
Johan B.W. de Vries
a08084230e
Adds emitln to reduce complexity
2025-02-02 15:30:40 +01:00
Johan B.W. de Vries
17841954de
Added a number of tests
...
Fix: skip() would not work without peek() on iteration 0 or 1.
2025-02-02 15:13:03 +01:00
Johan B.W. de Vries
ad99832959
Reworked the directory structure, added start of test framework
2025-02-02 14:25:16 +01:00
Johan B.W. de Vries
f798fbe55f
Makefile cleanup
2025-01-26 14:50:15 +01:00
Johan B.W. de Vries
b682ee964b
More docs. Made two builtins be stdlib functions.
2025-01-26 13:52:39 +01:00
Johan B.W. de Vries
97c3e05856
Extends documentation
2025-01-17 14:26:25 +01:00
Johan B.W. de Vries
6e151be2b1
Adds iteration 2, targeting the C language
2025-01-17 13:55:28 +01:00
Johan B.W. de Vries
5939b7cba5
Fix: Function calls with multiple args
2025-01-12 13:16:31 +01:00
Johan B.W. de Vries
241e279782
Made preamble a bit more smaller to be specific
2025-01-05 16:51:23 +01:00
Johan B.W. de Vries
91daf372a9
Adds more run command info
2025-01-05 16:49:43 +01:00
Johan B.W. de Vries
98166bfa2e
First version
2025-01-05 16:41:11 +01:00
Johan B.W. de Vries
49662a9a78
New repo
2025-01-05 16:39:47 +01:00