Commit Graph

14 Commits

Author SHA1 Message Date
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 dfe1ac90e8 add getln() function and calculator example
Runtime-allocated strings currently always leak memory, I will
definitely have to fix that.
2021-12-26 11:36:52 +01:00
r4 d8b470f0eb rename print() to putln() 2021-12-26 10:55:31 +01:00
r4 cf93109f1e IR optimization
IR optimization currently very basic, in fact it probably doesn't even
improve performance measurably.
2021-12-25 23:01:18 +01:00
r4 803368a264 remove unnecessary include 2021-12-25 14:10:53 +01:00
r4 b4c369e1d9 add sleep() function and improve Windows support
I could only test Windows support by compiling with gcc MinGW-w64 and
running with Wine.
2021-12-25 14:06:20 +01:00
r4 f02dae603d unify printing + add basic strings 2021-12-25 12:16:06 +01:00
r4 d67008cfbf add char literals 2021-12-23 21:26:53 +01:00
r4 84785dc3cf add boolean logic 2021-12-23 21:06:49 +01:00
r4 d7860fdac0 add VM 2021-12-22 17:23:24 +01:00
r4 5dd15ce9f1 add builtin functions 2021-12-22 16:09:52 +01:00
r4 21694f98ac init 2021-12-21 01:18:22 +01:00