remove ast

This commit is contained in:
Josh Thomas 2025-01-04 22:56:18 -06:00
parent 5dabbf2ca0
commit ca4877d06c

View file

@ -6,16 +6,11 @@ use thiserror::Error;
pub struct Parser {
tokens: TokenStream,
current: usize,
ast: Ast,
}
impl Parser {
pub fn new(tokens: TokenStream) -> Self {
Parser {
tokens,
current: 0,
ast: Ast::default(),
}
Parser { tokens, current: 0 }
}
pub fn parse(&mut self) -> Result<Ast, ParserError> {