Skip to content

Commit def9aa7

Browse files
refactor: change rule names of JPP grammar
1 parent 2d98af2 commit def9aa7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/antlr4/org/variantsync/diffdetective/feature/antlr/JPPExpression.g4

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ grammar JPPExpression;
22
// A grammar for the JavaPreprocessor
33
// https://www.slashdev.ca/javapp/
44

5-
jppExpression
5+
expression
66
: logicalOrExpression
77
;
88

@@ -11,10 +11,10 @@ logicalOrExpression
1111
;
1212

1313
logicalAndExpression
14-
: expression (AND expression)*
14+
: primaryExpression (AND primaryExpression)*
1515
;
1616

17-
expression
17+
primaryExpression
1818
: definedExpression
1919
| undefinedExpression
2020
| comparisonExpression

0 commit comments

Comments
 (0)