We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
the following code:
def czad(a) = lambda(b) if (a+b = 0) = a+b czad(2)(-2) | czad(3)(4) | czad(0)(0)
fails to compile:
[ERROR] Can't compile: 0: def czad(a) = lambda(b) if (a+b = 0) = a+b # ^--- Syntax error at line 0 column 26: LAMBDA LEFT_PAREN RIGHT_PAREN WILDCARD (error code 178) 1: 2: czad(2)(-2) | czad(3)(4) | czad(0)(0) 3:
The text was updated successfully, but these errors were encountered:
this is not a bug, even official orc doesn't have guards for lambda in their syntax definition (https://orc.csres.utexas.edu/documentation/html/refmanual/ref.syntax.EBNF.html)
what's the case of a guard for lambda? it can't have multiple clauses anyway, why not just put if into lambda's body itself
if
Sorry, something went wrong.
the EBNF syntax is quite outdated -- Orc-2.1.2 compiles/executes this code.
prepor
No branches or pull requests
the following code:
fails to compile:
The text was updated successfully, but these errors were encountered: