[antlr-interest] Example with grammar javatree15.g and java15.g

Fernando Freitas nandows at gmail.com
Mon Nov 23 04:26:03 PST 2009


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/1e3d01c7/attachment.html 


More information about the antlr-interest mailing list