[antlr-interest] Example with grammar javatree15.g and java15.g
Fernando Freitas
nandows at gmail.com
Mon Nov 23 05:03:44 PST 2009
I wanna do a inverse operation. Get from the tree and put in the code.
Do you have any idea about... how should I do to do it?
Cheers
Fernando
2009/11/23 Fernando Freitas <nandows at gmail.com>
> I was testing this example. Follows below:
>
>
> http://jvalentino.blogspot.com/2007/04/creating-source-code-syntax-parser-in.html
>
> so, I am trying to do it:
>
> CLASS_DEF
> |
> |
> --- OBJBLOCK
> |
> |
> METHOD_DEF
> |
> |
> ---- SLIST
>
>
>
> In SLIST I have all the code of Method body .
>
>
> 1) How should I do to get this code ? How could I do to put the method
> body in a string.
>
> 2) Is there a easy way to do it?
>
> Anybody know?
>
>
> Thanks and best Regards
> Fernando
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20091123/585ca782/attachment.html
More information about the antlr-interest
mailing list