~dvko/nederlang

c050d629 — Danny van Kooten 1 year, 6 months ago main
very minor restructuring of function order
60a74c8b — Danny van Kooten 1 year, 6 months ago
address clippy warnings
d5d1ead6 — Danny van Kooten 1 year, 6 months ago
rework object creation into a more uniform interface
c433dd7e — Danny van Kooten 1 year, 6 months ago
restructure Compiler & VM interface so they can be re-used between evaluation calls.

This allows the REPL to retain state between calls. Does not yet work for functions as they are compiled into the instructions vector which is discarded after each call (and would need updated jump instructions anyway)
a43af066 — Danny van Kooten 1 year, 6 months ago
Merge branch 'main' of github.com:dannyvankooten/nederlang
0b44ac32 — Danny van Kooten 1 year, 6 months ago
start refactoring VM into separate type with methods.

I couldn't get this to run fast in my previous experiments but apparently this is due to the IP and BP not being on the VM type itself but stored in the current frame (last element in the Vec<Frame> property). If we copy these over to the VM type things are fast (if not faster!) than one giant function.
6ff31cba — Danny van Kooten 1 year, 6 months ago
start refactoring VM into separate type with methods.

I couldn't get this to run fast in my previous experiments but apparently this is due to the IP and BP not being on the VM type itself but stored in the current frame (last element in the Vec<Frame> property). If we copy these over to the VM type things are fast (if not faster!) than one giant function.
19c7d209 — Danny van Kooten 1 year, 6 months ago
get rid of Compiler::change_instruction_operand_at in favor of more specific change_jump_operand_at method (with u16 overflow check)
065d41f4 — Danny van Kooten 1 year, 6 months ago
refactor compiler for some additional type safety
8fe15fb8 — Danny van Kooten 1 year, 6 months ago
update voorbeeld
75f03aa6 — Danny van Kooten 1 year, 6 months ago
add selection sort example
833e3a41 — Danny van Kooten 1 year, 6 months ago
WebAssembly doesn't have i64 so overflows on negative values. Use isize instead.
1d875b67 — Danny van Kooten 1 year, 6 months ago
add support for indexing into string (by UTF8-character) and assignment indexing into string
55b061d4 — Danny van Kooten 1 year, 6 months ago
rework ast representation to use unnamed structs
80ce35dc — Danny van Kooten 1 year, 6 months ago
add support for array indexing and assignments
d0867ca5 — Danny van Kooten 1 year, 6 months ago
get rid of println
ee14e5c8 — Danny van Kooten 1 year, 6 months ago
support some escape sequences
d46e0e26 — Danny van Kooten 1 year, 6 months ago
compile array expressions
e561139d — Danny van Kooten 1 year, 7 months ago
fix some panics discovered by fuzzer
a484c05d — Danny van Kooten 1 year, 7 months ago
use Vec::last_mut() instead of Vec::iter_mut().last()
Next