[MDEV-19996] Bison grammar: turn singe-character operators into <kwd> Created: 2019-07-09 Updated: 2019-07-10 Resolved: 2019-07-10 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Parser |
| Fix Version/s: | 10.4.7 |
| Type: | Task | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
The rule remember_tok_start in the bison grammar may cause shift/reduce conflicts. As the first step let's change the token type for the following single-character operators from <NONE> to <kwd>.
and replace remember_tok_start to token positions in with_list_element (to prove the conceipt), as follows:
Lex_input_stream::lex_one_token() will be changed to assign positions to the mentioned tokens, like this:
Note, this change will not immediately resolve any conflicts. Conflicts should be resolved in a separate patch by effectively replacing remember_tok_start to token positions in these grammar rules:
|