[antlr-interest] Error with ecmascript and Antlr 3.0b5

Cees Bos ceesbos83 at gmail.com
Sun Jan 14 23:42:37 PST 2007


Hi all,

I try to generate the lexer and parser class for ecmascript, but is failing
at my site.

D:\tools\rhino_workspace\antlr-3.0b5\lib>java -cp antlr-3.0b5.jar
;stringtemplate-3.0.jar;antlr-2.7.7.jar; org.antlr.Tool ecmascript.g
ANTLR Parser Generator  Version 3.0b5 (November 15, 2006)  1989-2006
error(100): ecmascript.g:5:25: syntax error: antlr: ecmascript.g:5:25:
expecting SEMI, found '..'
error(133): ecmascript.g:3:1: illegal option charVocabulary
error(8):  file ecmascript.g contains grammar ECMAScript; names must be
identical
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

The ecmascript.g I uses it the one posted on the grammar list (
ecmascriptA3.g): http://www.antlr.org/grammar/1153976512034/ecmascriptA3.g

What am I doing wrong?
Or is this is bug in the ecmascript or antlr?

Increasing the heap size doesn't help, it only takes longer to get the heap
size error.

Can someone give me a hint to solve the problems?

Thanks and regards,
Cees
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070115/aa399578/attachment.html 


More information about the antlr-interest mailing list