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

Cannot embed Cryptol newtypes in let {{ }} #2164

Open
sauclovian-g opened this issue Dec 17, 2024 · 0 comments
Open

Cannot embed Cryptol newtypes in let {{ }} #2164

sauclovian-g opened this issue Dec 17, 2024 · 0 comments
Labels
missing cryptol features Issues about features in Cryptol that don't work in SAW needs test Issues for which we should add a regression test type: bug Issues reporting bugs or unexpected/unwanted behavior
Milestone

Comments

@sauclovian-g
Copy link
Contributor

It seems like saw ought to accept this:

let {{ newtype T = { x: [8] } }};

but it does not:

% saw test.saw
[21:37:19.558] Loading file ".../saw-script/intTests/test2164/test.saw"
[21:37:19.558] Stack trace:
Cryptol parse error:
Parse error at .../saw-script/intTests/test2164/test.saw:1:8,
  unexpected: newtype
  expected: a declaration

I haven't looked yet but my guess is that it's calling the wrong entry point in the Cryptol parser.

(loading newtypes from .cry files via import works fine)

@sauclovian-g sauclovian-g added type: bug Issues reporting bugs or unexpected/unwanted behavior needs test Issues for which we should add a regression test missing cryptol features Issues about features in Cryptol that don't work in SAW labels Dec 17, 2024
@sauclovian-g sauclovian-g added this to the 2025T1 milestone Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
missing cryptol features Issues about features in Cryptol that don't work in SAW needs test Issues for which we should add a regression test type: bug Issues reporting bugs or unexpected/unwanted behavior
Projects
None yet
Development

No branches or pull requests

1 participant