diff --git a/src/compiler/parser/mod.rs b/src/compiler/parser/mod.rs index ef286ae..70d4b41 100644 --- a/src/compiler/parser/mod.rs +++ b/src/compiler/parser/mod.rs @@ -28,14 +28,15 @@ fn parse_expression<'source>( tokens: &[Token<'source>], ) -> Expression<'source> { const OPS: [&[&str]; 8] = [ - &["="], - &["or"], - &["and"], - &["==", "!="], - &["<", "<=", "=>", ">"], - &["+", "-"], - &["*", "/", "%"], - &["not", "-"], + &["="], // 0 + &["or"], // 1 + &["and"], // 2 + &["==", "!="], // 3 + &["<", "<=", "=>", ">"], // 4 + &["+", "-"], // 5 + &["*", "/", "%"], // 6 + &["not", "-"], // 7 + // 8 ]; match level {