You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
364 B

grammar t024finally;
options {
language=JavaScript;
}
prog returns [events]
@init {events = [];}
@after {events.push('after');}
: ID {throw new Error("quux");}
;
catch [e] {events.push('catch');}
finally {events.push('finally');}
ID : ('a'..'z')+
;
WS : (' '|'\n'|'\r')+ {$channel=org.antlr.runtime.BaseRecognizer.HIDDEN}
;