Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Candle REPL fixes #903

Closed
wants to merge 149 commits into from
Closed

Candle REPL fixes #903

wants to merge 149 commits into from

Conversation

oskarabrahamsson
Copy link
Contributor

@oskarabrahamsson oskarabrahamsson commented Aug 16, 2022

See #904.

oskarabrahamsson and others added 28 commits June 3, 2022 20:34
compute_eval will either succeed or raise a <<timeout>> exception.
Unfortunately the type checks in compute raises all sorts of exceptions
if the type check fails, so this fact is not visible in the top-level
theorem.
- Pointer equality definition (==) defaulting to false
- Define rat_minus
- Define a printer for rationals
- Set userInput when recovering from error
- Add comment about exception printer
This makes the REPL pick up on the words 'needs' and 'loads' when
they sit at the top level. If they are followed by a string literal
and a double semicolon token, the REPL loads a file (like previously
with #load and #need).

The motivation behind this change is to make sure Candle accepts HOL
Light source files with as minor changes as possible.
@oskarabrahamsson
Copy link
Contributor Author

Err, looks like these commits got tacked onto the candle-compute-v3 branch. Please ignore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants