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

REPL let bindings can't define infix operators #759

Closed
brianhuffman opened this issue Jun 9, 2020 · 2 comments
Closed

REPL let bindings can't define infix operators #759

brianhuffman opened this issue Jun 9, 2020 · 2 comments
Assignees
Labels
command-line-repl Related to Cryptol's text-based UI parser Issues with lexing or parsing. UX Issues related to the user experience (e.g., improved error messages)

Comments

@brianhuffman
Copy link
Contributor

I can define named values or functions at the REPL with let, but I can't define infix operators:

Cryptol> let f x y = x && y
Cryptol> let x & y = x && y

Parse error at <interactive>:1:7,
  unexpected: &
Cryptol> let (&) = (&&)

Parse error at <interactive>:1:6,
  unexpected: &
Cryptol> let (&) x y = x && y

Parse error at <interactive>:1:6,
  unexpected: &

I would expect all of those forms to work.

@robdockins robdockins added command-line-repl Related to Cryptol's text-based UI UX Issues related to the user experience (e.g., improved error messages) labels Jun 19, 2020
@kquick kquick added the parser Issues with lexing or parsing. label Jul 16, 2021
@robdockins robdockins self-assigned this Jul 16, 2021
@robdockins
Copy link
Contributor

REPL type synonyms would also be convenient

@robdockins
Copy link
Contributor

Fixed via #1255

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
command-line-repl Related to Cryptol's text-based UI parser Issues with lexing or parsing. UX Issues related to the user experience (e.g., improved error messages)
Projects
None yet
Development

No branches or pull requests

3 participants