Skip to content
Open

Patch 1 #1953

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions core/src/main/antlr4/MetricExpression.g4
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ logicalOperands : relationalExpression | TRUE | FALSE
;

arthmeticExpression : '(' arthmeticExpression ')' #paren_arith_rule
| ABSOLUTE '(' arthmeticExpression ')' #abs_rule
| arthmeticExpression '%' arthmeticExpression #mod_arith_rule
| arthmeticExpression ('/'|'*') arthmeticExpression #divmul_arith_rule
| arthmeticExpression ('-'|'+') arthmeticExpression #addsub_arith_rule
Expand Down Expand Up @@ -77,6 +78,8 @@ not : N O T | '!'
TRUE : T R U E;
FALSE: F A L S E;

ABSOLUTE: A B S;

modulo : '%' ;

metric: REX;
Expand Down