help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Clarification on "Infinite parsing loops in IELR + LAC"


From: akim
Subject: Re: Clarification on "Infinite parsing loops in IELR + LAC"
Date: Tue, 11 Sep 2018 06:47:13 +0200
User-agent: Roundcube Webmail/1.2.0

Hi Adrian,

That would be a question for Joel, I don't know the details.

Le 2018-09-11 00:03, Adrian Vogelsgesang a écrit :
Hi everyone,

From what I understand reading the bison documentation and some of the
linked publications,
I should probably be using IELR in combination with Lookahead-Correction

However, I stumbled across a warning in section 5.8.3 (“LAC”) in the
bison documentation
(https://www.gnu.org/software/bison/manual/bison.html#LAC):
IELR plus LAC does have one shortcoming relative to canonical LR. Some parsers generated by Bison can loop infinitely. LAC does not fix infinite parsing loops that occur between encountering a syntax error and detecting it, but enabling canonical LR or disabling default reductions sometimes does.

This sounds quite frightening to me and I am not sure if LAC is
actually something I should be using.
Could someone clarify that part of the documentation for me?

In particular, I would be interested in the following points:
* The documentation only mentions IELR + LAC, but what about LALR + LAC?
* "LAC *does not fix* infinite parsing loops" -> this sounds as if
these infinite parsing loops would also exist without LAC?
* When exactly do those infinite loops occur? How can I avoid them?

Best,
Adrian

_______________________________________________
address@hidden https://lists.gnu.org/mailman/listinfo/help-bison



reply via email to

[Prev in Thread] Current Thread [Next in Thread]