clean up std a bit

This commit is contained in:
2025-07-29 20:55:39 +02:00
parent 2c09d7bc21
commit 6fc80626dc
5 changed files with 84 additions and 181 deletions

View File

@@ -389,7 +389,13 @@ impl Parser {
fn factor(&mut self) -> Result<Expr, ZernError> {
let mut expr = self.unary()?;
while self.match_token(&[TokenType::Star, TokenType::Slash, TokenType::Mod]) {
while self.match_token(&[
TokenType::Star,
TokenType::Slash,
TokenType::Mod,
TokenType::ShiftLeft,
TokenType::ShiftRight,
]) {
let op = self.previous().clone();
let right = self.unary()?;
expr = Expr::Binary {