Add base statement parsing

Assign statements and standalone expression statements are added, plus
some tests.

Additionally, starting tokens are implemented using lazy_static!{} so
that they can be mixed and matched.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2020-05-06 16:57:28 -04:00
parent 7698e49baf
commit 66af3dcc53
2 changed files with 190 additions and 15 deletions

View File

@@ -95,6 +95,7 @@ pub enum BaseExprKind {
List(Vec<Expr>),
Object(Vec<(Expr, Expr)>),
Tuple(Vec<Expr>),
Block(Vec<Stmt>),
}
#[derive(Derivative, Clone, PartialEq, Eq)]