Add very minimal +/- binary op parsing
This commit is contained in:
parent
dec0a0e154
commit
ffc0e812a2
5 changed files with 159 additions and 10 deletions
|
@ -1,6 +1,9 @@
|
|||
mod ast;
|
||||
mod parser;
|
||||
mod token;
|
||||
mod tokenizer;
|
||||
|
||||
pub fn compile(code: &str) {
|
||||
tokenizer::tokenize(code);
|
||||
let tokens = tokenizer::tokenize(code);
|
||||
parser::parse(&tokens);
|
||||
}
|
||||
|
|
Reference in a new issue