parsing record access and update
This commit is contained in:
parent
6e8b5afd3b
commit
b6f7e63e49
3 changed files with 48 additions and 3 deletions
|
|
@ -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(`a b \\ a + b`);
|
||||
const tokens2 = tokenize('point { x = 3 }');
|
||||
const p2 = new Parser(tokens2);
|
||||
const ast3 = p2.parse();
|
||||
console.log(ast3);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue