saw-script interpreter typechecks one line at a time #2158
Labels
needs design
Technical design work is needed for issue to progress
tech debt
Issues that document or involve technical debt
type: bug
Issues reporting bugs or unexpected/unwanted behavior
Milestone
The saw-script interpreter typechecks one statement at a time when executing at the top level (either the TopLevel top level or the ProofScript top level, I think) ... and this is not easily fixed because it does special things with top-level binds that ought to be happening in the typechecker instead, except that the AST representation can't represent them so something needs to give.
It also just doesn't check some statements before executing them.
This is all made worse by the corresponding assumption in the typechecker that statements happen only inside do-blocks.
With #2157 the overtly incorrect behavior where top-level typedefs were just not checked at all has been corrected, but because of these complications that was done as a patch rather than a fix.
The text was updated successfully, but these errors were encountered: