small changes
This commit is contained in:
parent
dcffe062a1
commit
cae07fcc49
@ -23,4 +23,3 @@ pub fn try_parse(tokens: &Vec<Token>, pos: usize) -> ParseResult<Expression, ()>
|
||||
_ => primary::try_parse(tokens, pos),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -85,6 +85,8 @@ factor = unary, (("/" | "*"), unary)*;
|
||||
unary = ("!" | "-"), expression
|
||||
| primary;
|
||||
|
||||
function call = primary, (arguments list)?;
|
||||
|
||||
primary = number | string | boolean | identifier | ("(", expression, ")");
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user