-
Notifications
You must be signed in to change notification settings - Fork 25
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
Basic proc-macro identifier vs keyword disambiguation. #141
Comments
One way to prototype this would be to add an argument to the EDIT: in the interest of testing, I should just do the full thing, and I can still expose |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If the built-in proc-macro
IDENT
rule is computed after regular rules are added, it could depend on a user-defined rule, let's sayKEYWORD
, such that:would result in
IDENT
matching anyproc-macro
identifier exceptlet
andlambda
.That would make this grammar less ambiguous (e.g. for
(lambda x x) y
orlet x be y in (x x)
):To recover the old behavior, one could add a
IdentOrKw = IDENT | KEYWORD;
rule.While implementing this efficiently would be difficult at this time, proc-macro support isn't exactly fast either, as it has to work with a limited API.
The text was updated successfully, but these errors were encountered: