Native functions are working

This commit is contained in:
2022-08-27 15:39:42 +01:00
parent e523a6f60a
commit ec91bac8a5
12 changed files with 492 additions and 34 deletions

View File

@@ -23,10 +23,10 @@ DONE: functions are first-class citizens
DONE: functions take a set number of parameters
DONE: functions last argument can be a rest parameter
DONE: assert needs to kill the whole script, not just functions
DONE: native functions
DONE: global functions _get, _set, _push, _pop, _length, clear available
TODO: functions return a set number of values
TODO: slice and dot notation around the _index function
TODO: ternary operator
TODO: Nullish types
TODO: A way to check the type of a variable (typeOf keyword)
@@ -37,3 +37,5 @@ TODO: standard library
TODO: external runner library
TODO: document how it all works
TODO: third output stream, for parser/compiler/interpreter errors
NOPE: functions return a set number of values