Hi everyone.

Im writing a C parser using bison and I need to get a parse tree in every execution of the parser.

I've had many ideas of how to do this, but I just can't implement any, specially because of the way bison reduce the productions (bottom-up). I've thought of a k-way tree, a linked list, etc, with no success.

Any idea how to do this?. I'd appreciate any links in case you've got one.