Initial commit; a basic Logos lexer and some tests.

This commit is contained in:
2020-08-01 20:45:33 -07:00
commit 81f98cc2c9
8 changed files with 122 additions and 0 deletions

14
src/syntax/ast.rs Normal file
View File

@@ -0,0 +1,14 @@
pub enum Stmt {
Binding(String, Expr),
Expr(Expr),
}
pub enum Expr {
Value(Value),
Reference(String),
Primitive(String, Vec<Expr>),
}
pub enum Value {
Number(Option<u8>, i128)
}