On 2014/07/21 14:20, Evangelos Drikos wrote:> On 7/20/14, 2:38 AM, Hans Aberg wrote:>>> A GLR parser splits the parses in face of an ambiguity, which might be>>> used instead. Bison supports this, but currently the actions during a>>> parse split are not executed, and so cannot set context variables for>>> the lexer, until the merge.>> In short, your idea can be applied only as a hack; it might work> sometimes, depends on the grammar. If that is what you meant we don't> disagree.> [In my experience, it's a rare parser that is useful and doesn't depend> on some hacks. -John]

Indeed, but yet another feature that one might want is being able to
split the lexer as well - may be useful for experimenting with the
processing of natural languages. Such a feature has been discussed a bit
on the Bison mailing lists.