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 { pub struct Parser {
tokens: TokenStream, tokens: TokenStream,
current: usize, current: usize,
ast: Ast,
} }
impl Parser { impl Parser {
pub fn new(tokens: TokenStream) -> Self { pub fn new(tokens: TokenStream) -> Self {
Parser { Parser { tokens, current: 0 }
tokens,
current: 0,
ast: Ast::default(),
}
} }
pub fn parse(&mut self) -> Result<Ast, ParserError> { pub fn parse(&mut self) -> Result<Ast, ParserError> {