Give an example of something you have generated from parslet, and what you
want it to become.

A failing unit test would be a good way to explain the problem you are
having.

Cheers
Nigel


---
"No man is an island... except Philip"


On Fri, Jun 21, 2013 at 12:04 PM, Li Dong <[email protected]> wrote:

> Dear all,
>
> I would like to know how to turn the parsed hash tree into RubyTree[1]. By
> doing this, I can custom the behavior of each node. For example, check if
> there
> is any specific node in a subtree. Is this a practical way for doing
> post-processing on the parsed tree?
>
> How to do this through 'Transform'? Need I write a transforming rule for
> each
> parsing rule, which will be very cumbersome? I imagine this should be
> through
> a recursive method.
>
> Comment and advice is appreciated!
>
> Best,
>
> Li
>
> [1] http://rubytree.rubyforge.org
>
>
>
>

Reply via email to