Small progress on the parser loop...
This commit is contained in:
parent
a3723b2e65
commit
1b5a47fb86
1 changed files with 6 additions and 1 deletions
|
@ -28,7 +28,12 @@ impl Parser {
|
|||
fn parse_program(&mut self) -> Program {
|
||||
let mut forms: Vec<Expression> = Vec::new();
|
||||
while let Some(lex) = self.lexer.next() {
|
||||
println!("{:?}", lex);
|
||||
let form = match lex.token {
|
||||
_ => {
|
||||
println!("{:?}", lex.token);
|
||||
lex.token
|
||||
},
|
||||
};
|
||||
}
|
||||
forms.push(Expression::EOF);
|
||||
Program::new(forms)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue