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 internal core-eval option to evaluate named function identifier #1819

Merged
merged 1 commit into from
Feb 8, 2023

Conversation

paulcadman
Copy link
Collaborator

By default the main function identifier is evaluated by juvix dev internal core-eval. When debugging it's often useful to evaluate some other function in a module.

module Symbol;

open import Stdlib.Prelude;

f : Nat;
f := 1;

main : IO;
main := printNatLn f;

end;

With core-eval you can now evaluate f:

For example:

$ juvix dev internal core-eval Symbol.juvix -s f
suc zero

@paulcadman paulcadman added the enhancement New feature or request label Feb 8, 2023
@paulcadman paulcadman added this to the 0.3 - Valencia milestone Feb 8, 2023
@paulcadman paulcadman self-assigned this Feb 8, 2023
@paulcadman
Copy link
Collaborator Author

CI is failing due to an issue with ghcup on GitHub actions: actions/runner-images#7061

By default the main function identifier is evaluated by `juvix dev
internal core-eval`. When debugging it's often useful to evaluate some
other function in a module.

```
module Symbol;

open import Stdlib.Prelude;

f : Nat;
f := 1;

main : IO;
main := printNatLn f;

end;
```

With core-eval you can now evaluate `f`:

For example:
```
$ juvix dev internal core-eval Symbol.juvix -s f
suc zero
```
@janmasrovira janmasrovira merged commit e0337c1 into main Feb 8, 2023
@janmasrovira janmasrovira deleted the core-eval-symbol branch February 8, 2023 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants