[antlr-interest] Re: C++ Function to display AST?

Xue Yong Zhi zhixueyong at hotmail.com
Mon Jun 26 08:23:01 PDT 2006


Wigg, J D wrote:
> Please could someone point me to an implementation of a C++ function to 
> display (screen and/or text) an AST (created by a C++ version of 
> TreeParser)?
>  
> Thanks,
>  
> David.
>  
>  

There is a 'toStringList()' function in the AST class. It generates a
LISP like string representing the AST. I think this function is in the
C++ implementation as well.

-- 
Xue Yong Zhi
http://seclib.blogspot.com



More information about the antlr-interest mailing list