small changes

master
Araozu 2023-12-09 19:23:03 -05:00
parent dcffe062a1
commit cae07fcc49
2 changed files with 2 additions and 1 deletions

View File

@ -23,4 +23,3 @@ pub fn try_parse(tokens: &Vec<Token>, pos: usize) -> ParseResult<Expression, ()>
_ => primary::try_parse(tokens, pos),
}
}

View File

@ -85,6 +85,8 @@ factor = unary, (("/" | "*"), unary)*;
unary = ("!" | "-"), expression
| primary;
function call = primary, (arguments list)?;
primary = number | string | boolean | identifier | ("(", expression, ")");
```