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

SAW <-> Cryptol positions for Cryptol parsing #2175

Open
sauclovian-g opened this issue Jan 10, 2025 · 0 comments
Open

SAW <-> Cryptol positions for Cryptol parsing #2175

sauclovian-g opened this issue Jan 10, 2025 · 0 comments
Labels
subproject Issues involving one of the various subprojects SAW depends on subsystem: cryptol-saw-core Issues related to Cryptol -> saw-core translation with cryptol-saw-core tech debt Issues that document or involve technical debt type: bug Issues reporting bugs or unexpected/unwanted behavior
Milestone

Comments

@sauclovian-g
Copy link
Contributor

It seems that when SAW parses Cryptol code blocks it does this to make the positions come out:

  str = concat [ replicate (inpLine inp - 1) '\n'
               , replicate (inpCol inp - 1) ' '
               , inpText inp ]

(here)

This is correct but not particularly desirable, and should be improved someday. (However, this will need an additional set of entry points to the Cryptol parser that allow providing a start position, or something of the sort, which will also be somewhat messy.)

@sauclovian-g sauclovian-g added type: bug Issues reporting bugs or unexpected/unwanted behavior tech debt Issues that document or involve technical debt subsystem: cryptol-saw-core Issues related to Cryptol -> saw-core translation with cryptol-saw-core subproject Issues involving one of the various subprojects SAW depends on labels Jan 10, 2025
@sauclovian-g sauclovian-g added this to the Someday milestone Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
subproject Issues involving one of the various subprojects SAW depends on subsystem: cryptol-saw-core Issues related to Cryptol -> saw-core translation with cryptol-saw-core tech debt Issues that document or involve technical debt type: bug Issues reporting bugs or unexpected/unwanted behavior
Projects
None yet
Development

No branches or pull requests

1 participant