[antlr-interest] Parse data structure as input

Terence Parr parrt at cs.usfca.edu
Tue Apr 1 12:36:09 PDT 2008


Sure. a tree adaptor + tree grammar i what you want.
Ter
On Apr 1, 2008, at 11:03 AM, Yau Kwong K (Tony) wrote:

> Hi all,
>
> I’m new to antlr and I’m trying to find out if Antlr can parse C  
> data structure (instead of plain character stream) as input. My data  
> structures have struct containing
> different data types and pointers to multiple different struct (like  
> a tree).  They are all in C target.
> I would like to write a tree walker to walk the data structure and  
> take appropriate action when a particular value is set inside the  
> input structure.
>
> Any suggestions would be appreciated.
>
> Thanks,
> Tony
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080401/eeeb5c67/attachment.html 


More information about the antlr-interest mailing list