feat(tazjin/rlox): Add support for statements

First part of
https://craftinginterpreters.com/statements-and-state.html

Supports print statements, as well as evaluation for the sake of
it (i.e. future side-effects).

Change-Id: Ic6653b568f98d6cfe3f297615b7113c0ba1d9a70
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2287
Reviewed-by: tazjin <mail@tazj.in>
Tested-by: BuildkiteCI
This commit is contained in:
Vincent Ambo 2020-12-20 23:55:40 +01:00 committed by tazjin
parent c3bbb861b8
commit 75ae25daa9
3 changed files with 73 additions and 35 deletions

View file

@ -4,6 +4,7 @@ pub enum ErrorKind {
UnterminatedString,
UnmatchedParens,
ExpectedExpression(String),
ExpectedSemicolon,
TypeError(String),
}