Before, any syntax error would cause the lexer to create an error leaf node. This could happen even with a valid input, if the parse stack had split and one particular version of the parse stack failed to parse. Now, an error leaf node is only created when the lexer cannot understand part of the input stream at all. When a normal syntax error occurs, the lexer just returns a token that is outside of the expected token set, and the parser handles the unexpected token. |
||
|---|---|---|
| .. | ||
| document_spec.cc | ||
| node_spec.cc | ||
| parser_spec.cc | ||
| stack_spec.cc | ||
| tree_spec.cc | ||