1 grammar t045dfabug; 2 options { 3 language = JavaScript; 4 output = AST; 5 } 6 7 8 r 9 options { backtrack=true; } 10 : (modifier+ INT)=> modifier+ expression 11 | modifier+ statement 12 ; 13 14 expression 15 : INT '+' INT 16 ; 17 18 statement 19 : 'fooze' 20 | 'fooze2' 21 ; 22 23 modifier 24 : 'public' 25 | 'private' 26 ; 27 28 ID : 'a'..'z' + ; 29 INT : '0'..'9' +; 30 WS: (' ' | '\n' | '\t')+ {$channel = HIDDEN;}; 31 32