[antlr-interest] error while running the T.g example from Definitive ANTLR Reference

Arjun Khandelwal arjunk at mastek.com
Thu Apr 30 05:22:57 PDT 2009


Hi,
While trying to run the first T.g example from Definitive ANTLR Reference I am getting the following error

D:\ANTLR>java -cp antlr-3.1.3.jar org.antlr.Tool T.g
error(10):  internal error: Exception T.g:5:65: unexpected char: 'e'@org.antlr.g
rammar.v2.ANTLRLexer.nextToken(ANTLRLexer.java:347): unexpected stream error fro
m parsing T.g

error(150):  grammar file T.g has no rules
error(100): T.g:0:0: syntax error: assign.types: <AST>:0:0: unexpected end of su
btree
error(100): T.g:0:0: syntax error: define: <AST>:0:0: unexpected end of subtree

I get the same error while running this using antlrworks. What could be going wrong?
I am running this on Windows XP.

Regards,
-Arjun.

MASTEK LTD.
Mastek is in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited, unless specifically indicated to that effect. Mastek Limited does not accept any responsibility or liability for it. This e-mail and attachments (if any) transmitted with it are confidential and/or privileged and solely for the use of the intended person or entity to which it is addressed. Any review, re-transmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. This e-mail and its attachments have been scanned for the presence of computer viruses. It is the responsibility of the recipient to run the virus check on e-mails and attachments before opening them. If you have received this e-mail in error, kindly delete this e-mail from desktop and server.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090430/eb736056/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: T.g
Type: application/octet-stream
Size: 196 bytes
Desc: T.g
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20090430/eb736056/attachment.obj 


More information about the antlr-interest mailing list