epfl-lara / lisa

Proof assistant based on first-order logic and set theory
Apache License 2.0
33 stars 18 forks source link

Improve kernel parser exceptions #103

Closed cache-nez closed 1 year ago

cache-nez commented 1 year ago

Most importantly, keep track of positions when parsing and report the error, highlighting the position where it occurred. Two types of errors are reported:

Since applications are eagerly converted to function or predicate application depending on the expected type, "expected formula, got term" error is currently not detected. This can be improved in the future.

Part of #86.