csyonghe / Spire

Other
174 stars 22 forks source link

Fix up tests, and parser error recovery #74

Closed tangent-vector closed 7 years ago

tangent-vector commented 7 years ago

Two changes here:

The latter change is the main one, and it is likely that there are still some issues in there. For the cases covered in our tests, however, the new strategy either produces the same error messages (modulo me re-wording the diagnostic message), or actually produces better diagnostics (fewer spurious messages).