Note that if you just want a syntax tree, and not a syntax forest, you can
simply specify

   :default ::= action => [name,values]

as your only action, and Marpa will build the syntax tree.  The difference
is that the forest represents all parses, while the tree represents only
one.

-- jeffrey


On Mon, Sep 1, 2014 at 10:26 AM, Ed Avis <[email protected]> wrote:

> I would like to use Marpa::R2 to parse a document and produce a data
> structure showing the syntax tree of the document.  Then I'll walk down
> that
> tree with my own code.  Is there a straightforward recipe to do this?
>
> --
> Ed Avis <[email protected]>
>
> --
> You received this message because you are subscribed to the Google Groups
> "marpa parser" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"marpa parser" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to