We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38af0c6 commit 06463f9Copy full SHA for 06463f9
g4/math.g4
@@ -3,8 +3,7 @@ grammar math;
3
prog: expr;
4
5
expr:
6
- expr '?' expr ':' expr # IF_fun
7
- | expr op = ('*' | '/' | '%' ) expr # MulDiv_fun
+ expr op = ('*' | '/' | '%' ) expr # MulDiv_fun
8
| expr op = ('+' | '-' | '&') expr # AddSub_fun
9
| expr op = (
10
'>'
@@ -18,6 +17,7 @@ expr:
18
17
| '<>'
19
) expr # Judge_fun
20
| expr op = ('&&' | '||' | AND | OR) expr # AndOr_fun
+ | expr '?' expr ':' expr # IF_fun
21
| expr '.' ISNUMBER '(' ')' # ISNUMBER_fun
22
| expr '.' ISTEXT '(' ')' # ISTEXT_fun
23
| expr '.' ISNONTEXT '(' ')' # ISNONTEXT_fun
0 commit comments