Commit Graph
16 Commits
Author SHA1 Message Date
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 0f40181e58 advances of the http server example; built-ins for generating random numbers; built-ins for slicing, trimming and converting strings to integers 2023-01-15 18:22:18 +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 7e3eb6364a undid an oopsie 2022-12-06 17:56:57 +01:00
cozis a327aa1cf7 basic language support for sublime and vscode 2022-12-06 17:42:37 +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
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 4a326bff7e bugfix! Missing error check in argument parsing routine 2022-08-15 16:38:16 +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 ed02bbc9be refactorin' (incapsulated CodegenContext from codegen.c) 2022-08-13 17:42:37 +02:00
cozis 18e936f0ad cleanups and more test cases 2022-08-12 05:30:41 +02:00