[antlr-interest] recognizer vs translator
Matt Benson
gudnabrsam at yahoo.com
Wed Jul 2 08:37:44 PDT 2003
I think the accepted way to do this is to have your
grammar create an AST, then create a TreeParser that
walks your AST and performs your translation for you.
-Matt
--- Adrian Sandor <aditsu at yahoo.com> wrote:
>
> If I have a grammar which is good for recognizing a
> language, then
> how can I write a translator for that language
> without modifying the
> grammar? I mean I want to keep the translator rules
> separately (even
> if they are in the same file).
>
> Adrian
>
>
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list