tvl-depot/users/tazjin/rlox/src
Vincent Ambo 48a54625ce refactor(tazjin/rlox): Separate assignment and definition
So that:

> var a = 15;
> b = 12;
Error in program: Error { line: 0, kind: UndefinedVariable("b") }
> a = 12; print a;
Number(12.0)

Change-Id: I687e95ccc2d3084e39a71bd452656ae981c95191
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2300
Reviewed-by: tazjin <mail@tazj.in>
Tested-by: BuildkiteCI
2020-12-31 14:32:03 +00:00
..
errors.rs feat(tazjin/rlox): Implement mutable variable assignment 2020-12-31 14:32:03 +00:00
interpreter.rs refactor(tazjin/rlox): Separate assignment and definition 2020-12-31 14:32:03 +00:00
main.rs refactor(tazjin/rlox): Retain interpreter state in REPL 2020-12-31 11:19:42 +00:00
parser.rs feat(tazjin/rlox): Implement mutable variable assignment 2020-12-31 14:32:03 +00:00
scanner.rs feat(tazjin/rlox): Implement parsing up to unary expressions 2020-12-06 14:30:59 +00:00