UnionCompilerDesign / compiler_core

The core of the compiler, runtime, and builder setup.
MIT License
1 stars 1 forks source link

Parser - Does not compile #133

Closed tbreimer14 closed 3 weeks ago

tbreimer14 commented 3 weeks ago

error[E0599]: no method named previous_token found for mutable reference &mut Parser in the current scope --> frontend/src/parser/parser_core.rs:114:27 | 114 | ... matches!(self.previous_token(), Some(Token::LPAREN) | Some(To... | ^^^^^^^^^^^^^^ help: there is a method with a similar name: peek_token

error[E0599]: no variant or associated item named MINUS found for enum Token in the current scope --> frontend/src/parser/parse_binary_exp.rs:88:41 88 if next_token == Token::MINUS { ^^^^^ variant or associated item not found in Token

::: frontend/src/lexer/token.rs:3:1