PhilippeSigaud/Pegged — pull request #30 by chadjoan (2012-06-24 06:18:59+00:00)
Title: Generic nodes

I wrote this patch that optionally allows users of PEGGED to swap ParseTree with their own implementation that can have other fields/methods in it.

This could potentially allow users to generate an AST directly instead of generating a ParseTree and converting that to an AST. It might allow other optimizations or tweaking too.

If you're interested, I intend to continue working on it whenever I find the time. There are a few more things I should do to complete it:
* Documentation
* Use TParseTree.factory() to create TParseTree instances in a generic way.
* Make some fields of TParseTree optional, thus allowing users to create more minimal parse trees.