parsing lambdas

This commit is contained in:
Dustin Swan 2026-02-01 01:01:48 -07:00
parent 0f0371461d
commit 6e8b5afd3b
No known key found for this signature in database
GPG key ID: 30D46587E2100467
3 changed files with 43 additions and 52 deletions

View file

@ -25,7 +25,7 @@ console.log(tokenize(str));
// const tokens2 = tokenize("let x = (y) => 5 + y in x(3)");
// const tokens2 = tokenize("let x = 5 in x * 4");
// const tokens2 = tokenize("(x, y) => x + y");
const tokens2 = tokenize('x = (y = 1; y + 1); x * 2');
const tokens2 = tokenize(`a b \\ a + b`);
const p2 = new Parser(tokens2);
const ast3 = p2.parse();
console.log(ast3);