ANTLR JavaScript Target
Posted
by kunalsawlani
on Stack Overflow
See other posts from Stack Overflow
or by kunalsawlani
Published on 2010-03-29T18:49:32Z
Indexed on
2010/03/29
18:53 UTC
Read the original article
Hit count: 475
antlr
|JavaScript
Hello,
I have been using ANTLR to generate a parser + tree grammar for a mark up language with Java target which works fine. Now I am trying to get the target in JavaScript to use it in my web browser.
However, I have not been able to locate any good documentation on how to go about doing this. I am using eclipse with ANTLR IDE, and when i specify the language as JavaScript, I get the following errors.
Multiple markers at this line
(10): internal error: group JavaScript does not satisfy interface ANTLRCore: mismatched arguments on these templates [treeParser(grammar, name, scopes, tokens, tokenNames, globalAction, rules, numRules, bitsets, labelType, ASTLabelType, superClass, members, filterMode)]
(10): internal error: java.util.NoSuchElementException: no such attribute: filterMode in template context [treeParser]
If anyone could help me out with this or point me to some material which I could read about the JavaScript target with ANTLR, it would be great.
Thanks
© Stack Overflow or respective owner