Re: bison info doc - precedence in recursive parsing

Hans Åberg <[email protected]>
Newsgroups gmane.comp.parsers.bison.general
Message-ID <[email protected]>
> On 3 Feb 2019, at 07:50, [email protected] wrote:
> 
> The first effect of the precedence declarations is to assign precedence levels to the terminal symbols declared. The second effect is to assign precedence levels to certain rules: each rule gets its precedence from the last terminal symbol mentioned in the components.

If you write the .output file using --verbose or %verbose, the precedence makes a choice at the parsing dot "." in the case of a shift/reduce conflict, see the Bison manual, sec. 5.2. I thought it was between the lookahead token and the token before the dot, but perhaps Akim can clarify.



_______________________________________________
[email protected] https://lists.gnu.org/mailman/listinfo/help-bison
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.