bolt
bolt copied to clipboard
Parser error recovery
Bolt currently will only report one syntax error at a time (the first one found).
Expect:
The parser to advance to the next statement and resume parsing so all the errors in the file can be reported on (and fixed) at once.
Note the poor error messages for problems like this:
path /x {
read(): true
}
Result:
bolt:1:1: Expected comment, end of input, function definition, path statement, type statement or whitespace but "p" found.
Expect something like:
bolt:2:9: Expected "=" but ":" found.