GeezerVison is showing github.com — GitHub - tinyinterpreters/diff: DIFF extends CONST with difference expressions whose operands are themselves expressions, introducing recursion throughout the interpreter.
Folders and files
| Name | Name | Last commit message | Last commit date |
|---|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
|
Repository files navigation
DIFF extends CONST with difference expressions:
Each operand is itself an expression, so they can be nested:
That one change introduces recursion throughout the grammar, AST, parser, and evaluator.
For a closer look, read DIFF: When Expressions Contain Expressions.
You'll need Nix with flakes enabled.
Then:
import DIFF.Interpreter as I
I.run "-(456, 123)"
-- Ok (VNumber 333)
About
DIFF extends CONST with difference expressions whose operands are themselves expressions, introducing recursion throughout the interpreter.
Resources
Stars
1 star
Watchers
0 watching
Forks