For #4321, the grammar rule typename was refactored from the gram.y. The second alt was removed because it added ambiguity.
For #4322, a_expr_caret was corrected to follow the usual Floyd operator precedence grammar pattern. The input SELECT 1 * 2 ^ 3 + 4; is no longer ambiguous.
Several other rules were corrected to remove some of the lingering pl/pgsql grammar rules, which caused ambiguity in col_name_keyword and c_expr.
As I progress in the clean up of this grammar, keep an eye on the list of rules with ambiguity. Before I started a couple of weeks ago, the list of ambiguous rules was this:
This PR fixes #4321 and #4322.
For #4321, the grammar rule
typename
was refactored from the gram.y. The second alt was removed because it added ambiguity.For #4322,
a_expr_caret
was corrected to follow the usual Floyd operator precedence grammar pattern. The inputSELECT 1 * 2 ^ 3 + 4;
is no longer ambiguous.Several other rules were corrected to remove some of the lingering pl/pgsql grammar rules, which caused ambiguity in
col_name_keyword
andc_expr
.As I progress in the clean up of this grammar, keep an eye on the list of rules with ambiguity. Before I started a couple of weeks ago, the list of ambiguous rules was this:
It is now this:
The readme was updated to reflect fixes to the grammar that removed Antlr Tool warnings.