Martin Dørum
5b73e55a98
remvoe atom prints for test stability
il y a 3 ans
Martin Dørum
ed623c72ed
add guard function
il y a 3 ans
Martin Dørum
6b2eba80fd
add missing .expected file
il y a 3 ans
Martin Dørum
a5d5427207
typo
il y a 3 ans
Martin Dørum
c3c562ea63
test 'if' too
il y a 3 ans
Martin Dørum
2d7cc13732
small style change
il y a 3 ans
Martin Dørum
cf3e00e445
continuations rework, control flow test
il y a 3 ans
Martin Dørum
bbbd0716ca
add operators &&, ||, ??
il y a 3 ans
Martin Dørum
d5974171e3
add test cases, and fix bugs in the process
il y a 3 ans
Martin Dørum
f8eefccf9f
fix tests
il y a 3 ans
Martin Dørum
7cf5f64f60
better parse errors in examples tests
il y a 3 ans
Martin Dørum
9aa7d5afe3
better infix
il y a 3 ans
Martin Dørum
ded80df7a8
short string optimization for tokens
il y a 3 ans
Martin Dørum
5b6dc6be51
reduce unnecessary allocs in io_mem_writer
il y a 3 ans
Martin Dørum
f2a8f4ca9c
fix test
il y a 3 ans
Martin Dørum
47e2a5e981
check errors
il y a 3 ans
Martin Dørum
2490558d45
store stack base pointer in the stack frame
il y a 3 ans
Martin Dørum
417e555d02
enable strict warnings, make code not emit warnings
il y a 3 ans
Martin Dørum
298e20c629
comments
il y a 3 ans
Martin Dørum
1c184b3111
dynamic lookups
il y a 3 ans
Martin Dørum
82c92b26b9
rework bytecode and stacks
Instructions now take their static arguments in the bytecode directly
instead of from the stack. The return address is now moved into a
separate frame stack. That means the only thing in the main stack is now
variable references. That means we can mark every variable which is
currently on the stack during a GC; even variables which aren't referred
to from a namespace.
As a result, a GC can happen before or after any instruction without
having to worry. The VM should also be faster, and the bytecode should
be smaller, due to fewer instructions.
il y a 3 ans
Martin Dørum
9f207ef123
gitignore
il y a 3 ans
Martin Dørum
56008fc9f4
generate code coverage reports
il y a 3 ans
Martin Dørum
d726ee311a
correctness fixes, thanks to asan
il y a 3 ans
Martin Dørum
4c3494ae56
functions example
il y a 3 ans
Martin Dørum
591e913bee
add examples with expected outputs
il y a 3 ans
Martin Dørum
400172f03f
fix up test suite
il y a 3 ans
Martin Dørum
dd7855a0ad
update tests
il y a 3 ans
Martin Dørum
2dffcd295d
basic programs can now execute correctly
il y a 3 ans
Martin Dørum
74d6840509
string
il y a 3 ans
Martin Dørum
7068959e3c
fix deref assignment check
il y a 3 ans
Martin Dørum
840ef19b35
fix stuff
il y a 3 ans
Martin Dørum
14a8d858aa
add missing free
il y a 3 ans
Martin Dørum
d3e4547dc3
upgrade snow
il y a 3 ans
Martin Dørum
4af243e30c
minor stuff
il y a 3 ans
Martin Dørum
b6b283b7a1
make l2_vm_value_type take pointer
il y a 3 ans
Martin Dørum
48be0c18b1
parsing/codegen, plus vm work
il y a 3 ans
Martin Dørum
9e6484754f
tests
il y a 3 ans