Greetings!

On Tue, 2010-04-20 at 13:51 -0400, Kumar, Rajesh (Systems) UTRC wrote:
> Hi everyone,
> 
> I created a simple expression grammar in a .g file. I checked it with 
> Antlrworks to see that there were no errors in the grammar.  The grammar is 
> the following:
> 
> ****************
> grammar                Expression; 
> 
....stuff snipped....
> ********************
> 
> When I run "java antlr.Tool Expression.g" I get the following 
> 
> ANTLR Parser Generator   Version 2.7.7 (20060906)   1989-2005
___________________________^^^^^^^^^^^^^
> Expression.g:1:1: unexpected token: grammar
> error: Token stream error reading grammar(s):
> Expression.g:11:13: expecting ''', found '>'
> Expression.g:1:1: rule grammar trapped:
> Expression.g:1:1: unexpected token: grammar
> TokenStreamException: expecting ''', found '>'
> 

You have tried to process a v3 grammar with the v2 tool.

use: "java org.antlr.Tool Expression.g"
___________^^^^




List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to