-
Notifications
You must be signed in to change notification settings - Fork 77
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
parse(#Exp, "2+3") example doesn't work #1423
Comments
This morning, I've managed to make the example work, as follows:
|
Thanks for the report! The issue is caused by the two different versions of Exp both in scope in the console. The current interpreter does not report the ambiguity and picks the first it can find for The upcoming statically checked version of Rascal will warn about this and force a more qualified name. Your workaround works accidentally; caused by the same bug: now you have the The best way to work with this for now is to separate scopes that import the concrete syntax from the scopes that use the abstract syntax. And thanks for the patience while we work on the Compiler-based REPL! |
Thanks for the diagnosis in Slack @tvdstorm |
Does this analysis help you @PHIROC ? Note to self: change the instructions in the documentation to avoid this pitfall. |
Hi Jurgen,
Yes it did. Thank you.
Best regards,
Phiroc
… Le 24 mai 2020 à 08:32, Jurgen J. Vinju ***@***.***> a écrit :
Does this analysis help you @PHIROC ?
Note to self: change the instructions in the documentation to avoid this pitfall.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
This will be fixed by #1835 |
Describe the bug
the parse(#Exp, "2+3") statement causes a CallFailed error.
To Reproduce
causes
Expected behavior
sort("Exp"):
2+3
... as per the documentation
Desktop (please complete the following information):
Eclispse 2020.03 using 2020-May-13 version of Rascal update.
The text was updated successfully, but these errors were encountered: