hi,For each target in active development, I'm going to make a small 
modification so that it can work with the new left recursion removal stuff. In 
java it looks like

// used for left-recursive rules
recRuleDefArg()                       ::= "int <recRuleArg()>"
recRuleArg()                          ::= "_p"
recRuleAltPredicate(ruleName,opPrec)  ::= "<recRuleArg()> \<= <opPrec>"
recRuleSetResultAction()              ::= "root_0=$<ruleName>_primary.tree;"
recRuleSetReturnAction(src,name)      ::= "$<name>=$<src>.<name>;"

I we'll simply copy this and each of your files, though I suspect it won't work 
in the Objective-C output.

since I put everything else into the mainline so far, I will reintegrate these 
changes into the mainline. you should see them if you sync.

Ok, I just did the pull from dev/antlr4.dev/...

integrate 
//depot/code/antlr/main/tool/src/main/resources/org/antlr/codegen/templates/C/C.stg#14
integrate 
//depot/code/antlr/main/tool/src/main/resources/org/antlr/codegen/templates/CSharp2/CSharp2.stg#23
integrate 
//depot/code/antlr/main/tool/src/main/resources/org/antlr/codegen/templates/JavaScript/JavaScript.stg#4
integrate 
//depot/code/antlr/main/tool/src/main/resources/org/antlr/codegen/templates/ObjC/ObjC.stg#20
integrate 
//depot/code/antlr/main/tool/src/main/resources/org/antlr/codegen/templates/Python/Python.stg#4
integrate 
//depot/code/antlr/main/tool/src/main/resources/org/antlr/codegen/templates/Ruby/Ruby.stg#6
integrate 
//depot/code/antlr/main/tool/src/main/resources/org/antlr/codegen/templates/Scala/Scala.stg#3
Change 7838 submitted.

I won't release this feature until v4 but it will be secretly hidden inside 
v3.x until then :)

Ter
_______________________________________________
antlr-dev mailing list
antlr-dev@antlr.org
http://www.antlr.org/mailman/listinfo/antlr-dev

Reply via email to