[antlr-interest] convert an old ANTLR v2 grammar to ANTLR v3:-

faraz ahmed passionist_81 at yahoo.co.uk
Wed Aug 6 17:36:44 PDT 2008


I'm struggling to convert an old ANTLR v2 grammar to ANTLR v3.  I'm a newbie .ANTLR reports errors:-
could any body help me to fix those errors:-
ANTLR Parser Generator  Version 3.1b1 (May 20, 2008)  1989-2008
error(100): ANTLRSyntax100.g:3:1: syntax error: antlr: ANTLRSyntax100.g:3:1: unexpected token: 
  import java.io.*;
  import antlr.*;
  import uk.ac.sheffield.dcs.dfa.*;
  import uk.ac.sheffield.dcs.dfa.spec.*;
warning(149): ANTLRSyntax100.g:0:0: rewrite syntax or operator with no output option; setting output=AST
error(150):  grammar file ANTLRSyntax100.g has no rules
error(100): ANTLRSyntax100.g:0:0: syntax error: assign.types: <AST>:0:0: unexpected end of subtree
error(100): ANTLRSyntax100.g:0:0: syntax error: define: <AST>:0:0: unexpected end of subtree
 
I can't understand what ANTLR doesn't like.  The grammar is   
attached.  Any help appreciated! 
faraz


      __________________________________________________________
Not happy with your email address?.
Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080807/dfcb9a71/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ANTLRSyntax100.g
Type: application/octet-stream
Size: 18920 bytes
Desc: not available
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20080807/dfcb9a71/attachment.obj 


More information about the antlr-interest mailing list