[antlr-interest] RecognitionException in antlr3 (FIXED)
Matthew Bowman
matthew.bowman at sogotech.com
Mon Sep 24 23:11:52 PDT 2007
Dominique.Duflos at alcatel-lucent.fr wrote:
> Add this to the grammar:
>
> @rulecatch {
> }
> @members {
> protected void mismatch(IntStream input, int ttype, BitSet follow)
> throws RecognitionException
> {
> throw new MismatchedTokenException(ttype, input);
> }
> }
>
What exactly does the @rulecatch { } block do?
--Matthew
--
Matthew Bowman
Chief Technical Officer
SoGo Technology SRL
Traian Vuia 89
Cluj-Napoca 400387
Romania
Phone (ext. 642)
+40 (318) 122364 : Romania
+47 ( 21) 543272 : Oslo, Norway
+ 1 (404) 7956245 : Atlanta, Georgia USA
+ 1 (866) 3575982 : Toll-Free USA
Fax
+40 (364) 402227 : Romania
Mobile
+40 (751) 596963 : Romania
More information about the antlr-interest
mailing list