What's wrong below????
antlr error:  reference to rewrite element unaryExpression1 without reference 
on left of ->


unaryExpression1     // (level 1)
  : a=INC        -> ^(TOK_PREINC[$a]) unaryExpression1
  | a=DEC        -> ^(TOK_PREDEC[$a]) unaryExpression1
  | unaryExpression2
  ;

rewriting rules doesn't work, if you write something like:
rule : expr -> ^(TOK_SLIST (statement)*)
            { pVMCompiler->m_Symbols.PopScope(); }
     ;
cause C-Target code results in:
      ADAPTOR->addChild(ADAPTOR, root_0,  pVMCompiler->m_Symbols.PopScope(); );
                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

the inlined code is inside the addChild(...) call


It seems the c-target is developped without beeing used in reality.
I'll go back to antlr2, at this stage, antlr3 is nonviable...


---
Christian Hoffmann
D-38118 Braunschweig





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


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

Reply via email to