[antlr-interest] getting error while generating the grammar

Vipin Gupta vipin.gupta at impetus.co.in
Fri Nov 17 08:59:35 PST 2006


Corrected the grammar rule
-----Original Message-----
From: Vipin Gupta [mailto:vipin.gupta at impetus.co.in] 
Sent: Friday, November 17, 2006 10:19 PM
To: 'antlr-interest at antlr.org'
Subject: getting error while generating the grammar

I am getting the error while generating the grammar the following code in
ANTLR 3. can any one help me to correct this syntax.

	expr 	 :	s1=mexpr ((PLUS|MINUS) s2=mexpr)*  -> $s1 (PLUS?
MINUS? $s2)*
		 ; 





More information about the antlr-interest mailing list