-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
error recovery is important for practical parser, is there any plan that plex will support it?
for example, when we are failed to parse a statement, we skip remaining tokens until we met a semicolon:
program {
=> vec![],
=> program[mut z1] statement[z2] => {z1.push(z2); z1},
}
statement {
expression[z1] Semicolon => Statement::Expression(z1),
.* Semicolon => Statement => Statement::Error,
}
Metadata
Metadata
Assignees
Labels
No labels