Hi, I keep trying to understand the semantics of marpa. Forgive me if my 
questions are too basic.

I've read the documentation, in particular 
this http://search.cpan.org/~jkegl/Marpa-R2-3.000000/pod/Semantics.pod.

I've noticed that instead of using actions, it uses bless. I'm not sure if 
I have understand the reason well enough. What I understand is the 
following.

1) Marpa's bless, creates objects initializing it with the parse result of 
the rule instance
2) If the result of other subrules is blessed too, the parent rule will get 
a reference to the subrules blessed objects.
3) Doing so provides a somehow 'Semantic tree' 
4) After parsing I'll get a reference of the root node i can use to 
traverse the whole tree and get the result this way.

I'm I right?

So, what's the difference with actions? Is it that with actions the result 
is computed on the fly? do actions use an AST then or do the parse and the 
result in just one step.

What's the recomended way of using marpa to translate a language, bless 
adverb or action adverb?

Than you very much in advance.





On Monday, March 13, 2017 at 2:59:35 PM UTC+1, Daniel Blanch wrote:
>
> Hi Marpers,
>
> I've been using Marpa for a while, it seems promising, but I find it 
> difficult to understand how default actions and custom actions work 
> together when trying to get a result. Where can I find a tutorial or 
> documentation to understand it? How did you learn Marpa? Documentation is a 
> bit confusing.
>
> Thank you very much in advance.
>
> Regards.
>
> Daniel.
>

-- 
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