-
Notifications
You must be signed in to change notification settings - Fork 128
Closed
Labels
UXIssues related to the user experience (e.g., improved error messages)Issues related to the user experience (e.g., improved error messages)command-line-replRelated to Cryptol's text-based UIRelated to Cryptol's text-based UIparserIssues with lexing or parsing.Issues with lexing or parsing.
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
UXIssues related to the user experience (e.g., improved error messages)Issues related to the user experience (e.g., improved error messages)command-line-replRelated to Cryptol's text-based UIRelated to Cryptol's text-based UIparserIssues with lexing or parsing.Issues with lexing or parsing.