[antlr-interest] AntlrWorks bug?

Hub Dog hubdog at gmail.com
Sat Nov 24 15:49:59 PST 2007


Dear friends,


     I found antlrworks can not identify the exception syntax
correctly.When I input the following rule with exception into
antlrworks, it will draw a wavy line under the optionList.
But if I remove the catch exception line , antlrworks will work as expected.


prog	:  optionList declList stmtList -> ^(TPROGRAM ^(TOPTIONLIST
optionList) ^(TDECLLIST declList) ^(TSTMTLIST stmtList) )
;

	catch [re:ERecognitionException ] {
	   ProcessError(re);
	}


optionList:
          (OPTIONS! LCURLY! (option)* RCURLY! SEMI!)?
;


bestr regards
ma lifang


More information about the antlr-interest mailing list