Just had a look through your grammar, it makes total sense. We're
basically doing the same thing I guess.
Using an array based AST makes like you suggests makes lots of sense,
the main reason I went with hashes originally was so I could preserve
information about line-numbers for error reporting, but that wasn't
used in the end anyway.
On Oct 23, 2:20 pm, Jonathan Stott <
jonathan.st...@gmail.com> wrote:
> For the exalted math gem (
http://github.com/namelessjon/exalted_math)
> I just go straight to an AST representation. Each Treetop node knows
> how to transform itself into an (array based) AST node. Though I'm
> thinking of cleaning up my treetop grammer using the <Class> trick you
> use in the koi parser. I suppose it's about the same as yours, in
> that the AST transformation drops the cruft.
>
> Regards
> Jon
>