Commit Graph

5 Commits

Author SHA1 Message Date
4cde5179f1 Remove NewScope method from vm.Scope 2023-11-02 16:55:12 +01:00
ec443899c3 Builtins start with exclamation point 2023-11-02 16:36:43 +01:00
1a13c79ee4 Fix go mod import path 2023-10-28 09:53:37 +02:00
360857d506 Completely refactor gg with new BNF file and decoder
The new gg format is based on a BNF file which can be found in the `gg`
directory. The code for decoding `.gg` files has been refactored to
mirror that file. The result is more resilient parsing, better errors,
and a greater ability to extend the format in the future.

The new decoder is notable in that it does not use a lexer. Both lexing
and parsing are done in a single step.

The format syntax itself has also been modified. Rather than using
semi-colons everywhere, commas are used as separators in tuples.
Additionally the final comma/semi-colon is no longer required.
2023-10-25 11:32:54 +02:00
21c91731e9 Rename Operation to Function, plus some cleanup 2023-10-16 18:20:01 +02:00