Commit Graph

15 Commits

Author SHA1 Message Date
r4 e7da8dfe38 make put all frees after set_err
I had the case that frees would invalidate memory set_err would later
use, so putting frees after set_err is probably good practice.
2021-12-30 18:07:59 +01:00
r4 f6b74f8f97 add generic arrays 2021-12-30 17:59:28 +01:00
r4 4d5cd93354 implement basic RAII-ish array management 2021-12-29 21:42:43 +01:00
r4 7773cc6c14 change IR stream to linked list 2021-12-29 13:27:58 +01:00
r4 ba8d2f0702 add nilptrs, more conversion functions and change how ptrs work
Pointers now no longer point to the Value struct (the internal wrapper for
values) but to the value itself.
2021-12-28 17:53:27 +01:00
r4 befce544e7 move type enum out of struct 2021-12-28 13:55:01 +01:00
r4 22f71d7e56 add pointers, variable arguments and void functions 2021-12-28 13:39:12 +01:00
r4 18d6e7b7df add 'not equal' operator 2021-12-26 12:19:54 +01:00
r4 6bdc4e3210 add logical or and logical and 2021-12-23 21:42:09 +01:00
r4 84785dc3cf add boolean logic 2021-12-23 21:06:49 +01:00
r4 d185396a1c rename arith to binary 2021-12-23 20:10:02 +01:00
r4 ef63742015 reduce mallocs when calling functions 2021-12-23 17:00:57 +01:00
r4 298883939b rewrite expression parser with parentheses 2021-12-23 15:56:12 +01:00
r4 d7860fdac0 add VM 2021-12-22 17:23:24 +01:00
r4 21694f98ac init 2021-12-21 01:18:22 +01:00