help-bison
[Top][All Lists]
Advanced

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

Re: bison info doc - precedence in recursive parsing


From: Hans Åberg
Subject: Re: bison info doc - precedence in recursive parsing
Date: Mon, 4 Feb 2019 10:52:28 +0100

> On 3 Feb 2019, at 07:50, address@hidden 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.





reply via email to

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