Parse the lexed input into a Program in main
This commit is contained in:
parent
c2209a8a8a
commit
8bd71a144d
1 changed files with 4 additions and 4 deletions
|
|
@ -3,10 +3,10 @@ mod parser;
|
||||||
mod types;
|
mod types;
|
||||||
|
|
||||||
use lexer::lex;
|
use lexer::lex;
|
||||||
|
use parser::Parser;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let lexer = lex("((abc def + ghi #f))");
|
let lexer = lex("(#f (abc def + ghi #f))");
|
||||||
for t in lexer {
|
let mut parser = Parser::new(lexer);
|
||||||
println!("token = {:?}", t);
|
let program = parser.parse();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue