Start work on error recovery
- In runtime, make parse errors part of the parse tree - Add error state to lexers in which they can accept any token
This commit is contained in:
parent
4520d6e1a2
commit
e58a6d8ba7
18 changed files with 622 additions and 528 deletions
|
|
@ -59,7 +59,7 @@ describe("building parse and lex tables", []() {
|
|||
};
|
||||
|
||||
function<LexState(size_t)> lex_state = [&](size_t parse_state_index) {
|
||||
long index = table.states[parse_state_index].lex_state_index;
|
||||
long index = table.states[parse_state_index].lex_state_id;
|
||||
return lex_table.states[index];
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue