r4 pushed to master at r4/lang 2021-12-25 12:45:57 +01:00
dd67a1bf5d reorganize examples
r4 pushed to master at r4/lang 2021-12-25 12:33:15 +01:00
b58810e822 better error messages
r4 pushed to master at r4/lang 2021-12-25 12:16:41 +01:00
f02dae603d unify printing + add basic strings
r4 pushed to master at r4/lang 2021-12-23 22:27:37 +01:00
92c4c5c991 Merge branch 'master' of https://git.nobrain.org/r4/lang
9bd4d4e0c4 support for builtin functions with 0 args
Compare 2 commits »
r4 pushed to master at r4/lang 2021-12-23 22:05:43 +01:00
bb75b78a36 Update 'README.md'
r4 pushed to master at r4/lang 2021-12-23 21:45:17 +01:00
ca232fbf6a add mandelbrot example
6bdc4e3210 add logical or and logical and
d67008cfbf add char literals
a0842424ec print not in IR
Compare 4 commits »
r4 pushed to master at r4/lang 2021-12-23 21:07:12 +01:00
84785dc3cf add boolean logic
d185396a1c rename arith to binary
Compare 2 commits »
r4 pushed to master at r4/lang 2021-12-23 19:59:06 +01:00
97e8e32ebc add if and else, and fix nested loops (hopefully)
r4 pushed to master at r4/lang 2021-12-23 17:01:40 +01:00
ef63742015 reduce mallocs when calling functions
7ae9ddaee9 multi-line expressions
Compare 2 commits »
r4 pushed to master at r4/lang 2021-12-23 15:56:32 +01:00
298883939b rewrite expression parser with parentheses
r4 pushed to master at r4/lang 2021-12-22 17:41:12 +01:00
052e78bf2e add pi example
r4 pushed to master at r4/lang 2021-12-22 17:24:13 +01:00
d7860fdac0 add VM
r4 pushed to master at r4/lang 2021-12-22 16:10:19 +01:00
5dd15ce9f1 add builtin functions
r4 pushed to master at r4/lang 2021-12-22 13:11:00 +01:00
41a5dba208 replace malloc with xmalloc
b80e5a9c4e formatting
Compare 2 commits »
r4 pushed to master at r4/lang 2021-12-22 12:57:07 +01:00
e7f4773cba make while loop parsing more elegant
r4 pushed to master at r4/lang 2021-12-21 19:55:15 +01:00
a8be4540b1 fix segfault
r4 pushed to master at r4/lang 2021-12-21 17:10:31 +01:00
9f339ed44d make while loops more efficient and improve expression parsing
10d436107c very basic while loop
61d5661b96 fix memory leak on error
005309d1eb IR jmp and scopes
6080901842 catch missing expression
Compare 5 commits »
r4 pushed to master at r4/lang 2021-12-21 11:44:01 +01:00
63af3e907b add assignment operator and unify memory pools
r4 pushed to master at r4/lang 2021-12-21 01:18:45 +01:00
21694f98ac init
r4 created repository r4/lang 2021-12-21 01:16:56 +01:00