-
Notifications
You must be signed in to change notification settings - Fork 57
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
Isabelle/HOL translation: comments #2974
Conversation
lukaszcz
commented
Aug 27, 2024
•
edited
Loading
edited
- Closes Include comments in the Isabelle/HOL translation #2962
- Depends on Isabelle/HOL translation: records and named patterns #2963
- In Isabelle/HOL comments cannot appear in internal syntax. All comments inside a Juvix definition are moved outside: to before the definition or before the earliest function clause.
f24f18d
to
3b654ee
Compare
3b654ee
to
a1b8b1e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you consider ExactPrint
?
No, how does it work? Can I control it to print comments in a specified format and not print them in certain places? |
a1b8b1e
to
f3c2ed7
Compare
The idea is that every time you print something you attach a location to that. Then the effect takes care of automatically inserting the comments in the correct place. If you want to put comments only in certain places, it could be done by providing the location in those places and omiting it everywhere else. |
Depends on the details of what the "correct place" is understood to be. In Isabelle/HOL comments cannot appear inside internal syntax, but I still want to print them at the earliest possible point. Maybe let's discuss this on Monday. |
f3c2ed7
to
272f4e8
Compare
I think it makes more sense to not have `State Options` as they are supposed to be immutable and have a separate `Input` effect for comments.
f51bf39
to
b2faa3d
Compare