I'm thinking of having each ASTNode store the SourceASTNode it's based
on.
There is two advantages to this:
- we could directly ask the node for its text.
- it allow for multiple source to be present in an AST. This makes sense
if the child of a '#include' node is a SourceASTNode.
What do you think ?
Baptiste.
|