Hello,
All the documentation provided with Antlr concentrate on the grammar and tree
construction (understandably).
I'm working on developing a small interpreter, and will use one of the grammars
in the examples with modifications.
However, I couldn't find any grammar example ready with actions (except for
simple calculator examples... very primitive nothing new).
I'm struggling to build the embedded actions for the "if" and "while" grammars.
I'm relying on standard C-style grammar, so I should be able to compile
something like:
if (a>1)
{
// some code here
}
while(a>1)
{
// some code here
}
The output is Java. However, examples of any other language is appreciated.
Any links or resources with embedded actions (something more advanced than a
calculator)?
Or any hints in this regard?
Thanks a lot!
Naimi
_________________________________________________________________
Connect to the next generation of MSN Messenger
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address