You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following example grammar is used for the TestSemPredEvalParser.testUnpredicatedPathsInAlt unit test.
When started at rule s with the input x 4, it should predict alt 1.
grammar T;
s : a {System.out.println("alt 1");}
| b {System.out.println("alt 2");}
;
a : {false}? ID INT
| ID INT
;
b : ID ID
;
ID : 'a'..'z'+ ;
INT : '0'..'9'+;
WS : (' '|'\n') {skip();} ;
The text was updated successfully, but these errors were encountered:
The following example grammar is used for the
TestSemPredEvalParser.testUnpredicatedPathsInAlt
unit test.When started at rule
s
with the inputx 4
, it should predict alt 1.The text was updated successfully, but these errors were encountered: