The lexer doesn't know the expected symbols, so it doesn't have enough information to construct error nodes. Now, when it encounters an invalid character, it returns NULL and the parser builds a correct error node. |
||
|---|---|---|
| .. | ||
| errors.txt | ||
| main.txt | ||
The lexer doesn't know the expected symbols, so it doesn't have enough information to construct error nodes. Now, when it encounters an invalid character, it returns NULL and the parser builds a correct error node. |
||
|---|---|---|
| .. | ||
| errors.txt | ||
| main.txt | ||