Commit Graph
151 Commits
Author SHA1 Message Date
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 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
cozis ed62aa8a58 cleaned up bytecode generation code 2022-08-13 14:46:22 +02:00
cozis e064195f6d fixed compiler errors 2022-08-12 17:45:24 +02:00
cozis 29397402d2 cleanups in codegen code 2022-08-12 17:41:25 +02:00
cozis 18e936f0ad cleanups and more test cases 2022-08-12 05:30:41 +02:00
cozis 2f87e46beb bubblesort example in bytecode 2022-08-11 22:31:26 +02:00
cozis c3d4479e97 updated makefile. Now the noja interpreter is build as a library and then linked to the cli 2022-08-11 17:57:56 +02:00
cozis f8cd57da43 the interpreter implementation is now hidden behing the src/libnoja/noja.h facade. Also I wrote a disassembler that lets you build noja executables by specifying the bytecode directly in a text format 2022-08-11 16:26:56 +02:00
cozis 5194a9082e minor formatting changes 2022-05-21 22:59:13 +02:00
tzyvoski 6f739fab89 Fixed warning 2022-05-21 20:23:43 +02:00
Francesco Cozzuto fdf5bdc267 bug fix 2022-04-15 19:17:42 +02:00
Francesco Cozzuto 3117e7339e bug fix. Didn't check for division by zero 2022-04-15 19:02:52 +02:00
Francesco Cozzuto 99b47fc824 parsing bug fix 2022-04-15 18:56:09 +02:00
Francesco Cozzuto ab3848c8cc fixed clang warnings 2022-04-15 16:28:45 +02:00
Francesco Cozzuto 9f825673c3 the language's heap doesn't grow anymore during a collection. Instead the collection throws an error to the runtime 2022-04-15 16:21:10 +02:00
cozis 13f80915c7 bug fix 2022-04-06 13:40:55 +02:00
cozis ed63f09b57 added tuples and multiple return values 2022-04-06 13:22:31 +02:00
cozis 866648ed16 typo 2022-04-04 00:44:06 +02:00
HermanandGitHub 45d3a88703 Update basic.c 2022-04-04 00:43:35 +02:00
HermanandGitHub c1d689654a Update basic.c 2022-04-04 00:21:58 +02:00
cozis 07137b50c6 new curly bracket coding convention 2022-04-04 00:07:33 +02:00
cozis 29e80c6319 added error builtin and json parser example 2022-04-03 02:23:35 +02:00
cozis 1d13ffc118 added break statement 2022-04-02 23:07:37 +02:00
cozis d03bb4937d changed operator priority 2022-04-02 22:35:21 +02:00
cozis 6c0e03f824 if-else chain now is an iteration over a table 2022-04-02 01:37:52 +02:00
cozis a6817ddcf9 if-else chain now is an iteration over a table 2022-04-02 01:31:01 +02:00
cozis fc0f4905c7 fixed bad grammar 2022-04-02 01:14:43 +02:00
Francesco CozzutoandGitHub f6ded0c2b8 Merge pull request #5 from JustJ3di/main
bug fix
2022-04-02 01:14:45 +02:00
HermanandGitHub 41f62d2415 Update basic.c 2022-04-01 20:28:22 +02:00
HermanandGitHub f53c3b2052 Fix bug empity string
Added a control if the string in the build in funcion unicode() is empity
2022-04-01 20:25:28 +02:00
cozis 73959929c3 fixed compilation error 2022-04-01 20:11:44 +02:00
HermanandGitHub f3880fad79 Update basic.c
added build  that returns utf-32 from a string.
2022-04-01 20:06:03 +02:00
cozis 7321235fbf bug fixed. GOTO jumped over the definition of the returned variable 2022-04-01 19:32:29 +02:00
cozis a3174fdcde impl negation 2022-03-27 16:33:49 +02:00
cozis 90ae41be27 added input builtin 2022-03-14 23:10:29 +01:00
cozis 64f667127d typo fix 2022-03-13 21:52:59 +01:00
cozis 66412f65b6 fixed build error for gcc 9 2022-03-13 21:34:47 +01:00
cozis 3a49b82135 even cuter comments 2022-03-13 16:28:41 +01:00
cozis 4f8aaa7eca cuter license comment 2022-03-13 16:05:34 +01:00
cozis 43f13958ec simplifying 2022-03-13 15:46:57 +01:00
cozis bf25e0f1a9 added year to the copyright notice 2022-03-13 15:34:42 +01:00