Yes, the ability of lexer to use feedback from parser (stop parsing, change 
lexeme stream, resume parsing) is powerful, though not specific to Earley 
or Marpa algorithm. It can be embedded in other parser generators as well 
(I used it for my LALR(1) parser generator to parse context-sensitive parts 
of Javascript).

And from my observation this technique only requires parser to stop (in 
case of an error or some other event), save it's inner state and  transfer 
control to lexer. When lexer is done, parser is resumed, restores its state 
and continues. Is Marpa's technique somewhat trickier than that?

Anyway, it's great that Marpa does it out of box.

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