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

Add support for parse and eval #6

Merged
merged 1 commit into from
Feb 6, 2020
Merged

Conversation

anubh-v
Copy link
Owner

@anubh-v anubh-v commented Feb 6, 2020

Let's add the support for using parse_and_eval to run non-deterministic programs.

@anubh-v anubh-v merged commit d21ea32 into master Feb 6, 2020
@anubh-v anubh-v mentioned this pull request Feb 6, 2020
@anubh-v anubh-v deleted the anubh-v-add-parse-and-eval branch February 6, 2020 17:39
arsalan0c pushed a commit that referenced this pull request Feb 12, 2020
Currently, we can only run deterministic programs via
the `driver_loop`. Programs must be entered into a prompt,
which is a little cumbersome for large programs.

Let's add support for evaluating non deterministic programs
via `parse_and_eval`.

To do this, we can define a global `try_again` function.
Within the success continuation, we can re-assign the value
of `try_again` to a function that will supply the next value.
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.

1 participant