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

Print JuvixCore programs in such a way that they can be parsed back #1841

Closed
lukaszcz opened this issue Feb 13, 2023 · 0 comments · Fixed by #1875
Closed

Print JuvixCore programs in such a way that they can be parsed back #1841

lukaszcz opened this issue Feb 13, 2023 · 0 comments · Fixed by #1875
Assignees
Labels
core Related to JuvixCore enhancement New feature or request pending-review prettyprinting
Milestone

Comments

@lukaszcz
Copy link
Collaborator

It would be helpful for debugging to be able to print the result of translating a Juvix program to JuvixCore and then separately load and evaluate it. Right now, the printing of JuvixCore programs uses a format which cannot be parsed back by the Core parser (missing identifier names, printing of builtin inductive types, symbol ids printed in identifiers definitions but not references).

@lukaszcz lukaszcz added enhancement New feature or request prettyprinting pending-review core Related to JuvixCore labels Feb 13, 2023
@lukaszcz lukaszcz added this to the 0.4 - Geb integration milestone Feb 13, 2023
@lukaszcz lukaszcz self-assigned this Feb 27, 2023
@lukaszcz lukaszcz modified the milestones: 0.4 - Geb integration, 0.3.1 Mar 14, 2023
lukaszcz added a commit that referenced this issue Mar 15, 2023
Print JuvixCore InfoTable in such a way that it can be parsed back by
the JuvixCore parser.

* Depends on PR #1832 
* Depends on PR #1862 
* Closes #1841 
* Adds "JuvixCore print" tests which read the files from
Core/positive/*.jvc, print them, read them back and check if the
evaluation results are preserved.

---------

Co-authored-by: Jan Mas Rovira <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Related to JuvixCore enhancement New feature or request pending-review prettyprinting
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant