[antlr-interest] example rulecatch

Terence Parr parrt at cs.usfca.edu
Sun Mar 12 12:57:12 PST 2006


grammar Mantra;

@rulecatch {
catch (RecognitionException re) {
     reportError(re);
     recover(input,re);
}
catch (Throwable t) {
     System.err.println(t);
}
}

At least now exceptions are not lost...

Ter


More information about the antlr-interest mailing list