From: SF M. E. <el...@us...> - 2004-10-21 18:26:58
|
> I think the key requirement should be to keep the underlaying data > representation, i.e. instead of copying data out of the buffer / parse > tree the AST should be a true superstructure. > If it was not, you couldn't manually modify the AST and regenerate source > code from it as is possible with the PTree API. What do you have got in mind with this "superstructure"? How is it different from a "Inspector Clouseau API"? Do you think about a concrete class hierarchy for more introspection? Would you like to apply the design patterns "adaptor" or "facade" like it is done in Keystone? I suggest to consider also the term "abstract syntax/semantic graph" (ASG) besides AST. Regards, Markus |