help-bison
[Top][All Lists]
Advanced

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

Re[3]: Empty rule spoiling error reporting


From: hz kto
Subject: Re[3]: Empty rule spoiling error reporting
Date: Tue, 10 Aug 2004 22:46:39 +0400



> The set of valid token should probably be the set of all valid tokens you
> find in those states, minus the set of all error tokens you find in those
> states, as the parsing algorithm compactions works by labelling some error
> tokens as valid, until a shift occurs.
I did not think of that, I do have some error tokens that will be marked as 
valid. Thanks.

> If you do not want to set this counter by hand in each rule, you may modify
> the Bison skeleton file: Right before the "switch" statement, which will
> perform the reduction, check for the rule length, and alter the counter
> accordingly.
 That's what I did, it is an easy fix and so far I am satisfied with the 
results.




reply via email to

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