Richard Thrippleton wrote:
> A rule of the form:
>
> "rulename
> scope scope1;
> scope scope2;"
>
> will generate code that only pushes a new element onto the scope2 stack.
>   
That is incorrect syntax (please see past posts to the group) and so 
does not work, but unfortunately the v2 grammar that currently parses 
the v3 grammars is not able to point this out and so you don't get an 
error. Sorry about that
> However, the following modification _will_ generate correct C code.
> "rulename
> scope scope1,scope2;"
>   
This is the correct syntax and is why it works :-)

Jim


List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/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