-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Labels
enhancementNew feature or requestNew feature or request
Description
I'm playing with some changes for making the parser more error-tolerant, so it does not fail on first error (by keeping a list of emitted diagnostics during parse), adding an ND_ERROR
node and overall improving robustness for invalid code.
Is this something you think could be interesting to add as a PR contribution?
For example:
struct foo {
}
enum bar {
}
union qux {
}
int main(void) {
int a = 0;
return 0;
}
=== Diagnostics ===
expected ';' after struct declaration
empty enum specifier
expected ';' after enum declaration
expected ';' after union declaration
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request