datacamp / sqlwhat

https://sqlwhat.readthedocs.io
GNU Affero General Public License v3.0
3 stars 8 forks source link

Ignore AST tests if parsing error in antlr #7

Closed machow closed 7 years ago

machow commented 7 years ago

It's possible that students will submit code that is valid postgresql, but the parser can't handle. In this case..

  1. It should raise (e.g.) a ParsingError, that is caught and short-circuits chaining
  2. Things like checking results should still run