Arjun Khandelwal wrote:

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,

You do not have a terminating newline on the file. Use an editor that ensures this happens - I think that even VS2008 can be told to do this somewhere in the editor options.

Jim

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

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

Reply via email to