Hi,
The latest released versions of ANTLR and ANTLRWorks have a broken javascript
target.
Prior to version 1.3 antlworks did work.
The problem is the treeParser template in JavaScritp.stg
I've attached a diff of the fix. Can someone see about getting the code base
patched?
Thanks in advance,
James Robson
__________________________________________________________________________________
Get more done like never before with Yahoo!7 Mail.
Learn more: http://au.overview.mail.yahoo.com/
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
--- org/antlr/codegen/templates/JavaScript/JavaScript.stg 2009-09-29
12:54:14.414265600 +1000
+++ ../JavaScript.stg 2009-09-27 20:00:00.000000000 +1000
@@ -243,7 +243,7 @@
/** How to generate a tree parser; same as parser except the input
* stream is a different type.
*/
-treeParser(grammar, name, scopes, tokens, tokenNames, globalAction, rules,
numRules, bitsets, labelType={<ASTLabelType>}, ASTLabelType="var",
superClass="tree.TreeParser", members={<actions.treeparser.members>},
filterMode) ::= <<
+treeParser(grammar, name, scopes, tokens, tokenNames, globalAction, rules,
numRules, bitsets, labelType={<ASTLabelType>}, ASTLabelType="var",
superClass="tree.TreeParser", members={<actions.treeparser.members>}) ::= <<
<genericParser(inputStreamType="TreeNodeStream", rewriteElementType="Node",
...)>
>>
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org/mailman/options/antlr-interest/your-email-address