Commit Graph
21 Commits
Author SHA1 Message Date
Francesco Cozzuto 411388755f major restructuring 2023-01-20 20:52:20 +01:00
Francesco Cozzuto 0980cc193d changed error reporting function interface 2023-01-20 01:22:20 +01:00
Francesco Cozzuto 9cc7121cd9 new built-in getCurrentScriptDirectory; new cli option syntax; added -p option to profile programs and -H to set heap size; fixed a bug in string.cat 2023-01-19 20:14:23 +01:00
Francesco Cozzuto 920b88c006 map can have function members by placing function declaration between the curly braces 2023-01-13 03:02:28 +01:00
cozis f7d28556a1 new -> operator 2022-12-08 03:01:04 +01:00
cozis 98374ee491 refactoring of the instruction table; removed unused instructions PUSHTYPTYP and ERROR; new modulo operator %; new examples fibonacci.noja and isprime.noja 2022-12-07 18:31:35 +01:00
cozis 8f2723c3aa added "any" type 2022-12-05 17:02:13 +01:00
cozis ea428fdca2 added sum types 2022-12-05 11:36:19 +01:00
cozis 7a07a1eb3c implemented nullable type notation 2022-12-04 18:39:42 +01:00
Francesco Cozzuto cd74dda4a9 general cleanups. Removed lots of unused code and redundant error checks 2022-08-24 16:46:32 +02:00
cozis 2da122a5ab some language docs 2022-08-18 05:46:38 +02:00
cozis 0a090c4cfa first draft of import builtin function 2022-08-16 17:35:58 +02:00
cozis d9fd452b8b implemented default arguments 2022-08-15 19:33:46 +02:00
cozis cb5e41b814 added OPTP_IDX to distinguish address operands from OPTP_INT integer operands in an executable 2022-08-15 14:18:57 +02:00
cozis 8cac46440b updated code sample in the readme 2022-08-15 04:16:30 +02:00
cozis 6bd60bc84a added argument type annotations and runtime checks. To do that new opcodes were created (PUSHTYP, PUSHTYPTYP, ERROR) 2022-08-14 16:25:47 +02:00
cozis bc516f470a new built-in variables for each type 2022-08-14 13:04:53 +02:00
cozis d24877c5f3 made and and or operators short circuits 2022-08-13 23:37:22 +02:00
cozis 8565722bab deleted unused files 2022-08-13 20:08:42 +02:00
cozis ed02bbc9be refactorin' (incapsulated CodegenContext from codegen.c) 2022-08-13 17:42:37 +02:00
cozis 1ee68745a6 renamed compile() to codegen() and created new compile() that transforms a Source to an Executable directily 2022-08-13 15:42:34 +02:00