9 Commits

Author SHA1 Message Date
Johan B.W. de Vries
7220bb82d2 Fix: Python identifiers would mess up
Feat: Adds mapclear, mapgetkey, mapsetkey

Fix: Documents some more missing stdlib
2025-05-03 18:40:11 +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
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
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