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;
|
||||
|
||||
use lexer::lex;
|
||||
use parser::Parser;
|
||||
|
||||
fn main() {
|
||||
let lexer = lex("((abc def + ghi #f))");
|
||||
for t in lexer {
|
||||
println!("token = {:?}", t);
|
||||
}
|
||||
let lexer = lex("(#f (abc def + ghi #f))");
|
||||
let mut parser = Parser::new(lexer);
|
||||
let program = parser.parse();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue