diff options
| author | Baitinq <[email protected]> | 2025-01-22 00:30:28 +0100 |
|---|---|---|
| committer | Baitinq <[email protected]> | 2025-01-22 00:30:59 +0100 |
| commit | 774498ff4db405eadd8ce295eb699586ed217f6d (patch) | |
| tree | 106c0926321316cac67d57ea94df8444fd0b3f8f /grammar.ebnf | |
| parent | Feature: Add support for division and multiplication (diff) | |
| download | pry-lang-774498ff4db405eadd8ce295eb699586ed217f6d.tar.gz pry-lang-774498ff4db405eadd8ce295eb699586ed217f6d.tar.bz2 pry-lang-774498ff4db405eadd8ce295eb699586ed217f6d.zip | |
Feature: Add support for negation
Diffstat (limited to 'grammar.ebnf')
| -rw-r--r-- | grammar.ebnf | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/grammar.ebnf b/grammar.ebnf index 700147e..af2d9ec 100644 --- a/grammar.ebnf +++ b/grammar.ebnf @@ -22,7 +22,7 @@ AdditiveExpression ::= MultiplicativeExpression (("+" | "-") MultiplicativeExpre MultiplicativeExpression ::= UnaryExpression (("*" | "/") UnaryExpression)* -UnaryExpression ::= "!" UnaryExpression | PrimaryExpression +UnaryExpression ::= ("!" | "-") UnaryExpression | PrimaryExpression PrimaryExpression ::= NUMBER | BOOLEAN | IDENTIFIER | FunctionCallStatement | LPAREN Expression RPAREN |