-
Notifications
You must be signed in to change notification settings - Fork 14
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
Cyclical Dependency: define-syntax-category <-> infer #48
Comments
What error do you get, unbound identifier? Shouldnt the lifted transformer function still be at the same phase as |
Yes it's unbound identifier. Which on second thought doesn't make a lot of sense because However it does spit out a ton of scopes when attempting to use
I'm not sure what this means. The scopes aren't printed if I use some other garbage identifier instead. |
It seems |
There's a cyclical dependency between
define-syntax-category
andinfer
. The former defines functions likecurrent-type-eval
which are used by the latter. However, the type-generated forms ofdefine-syntax-category
, most prominentlydefine-binding-type
, make calls toinfer
when expanding kinds (or something like that).Turnstile was able to get away with this because
define-syntax-category
would not define any binding types initially, theninfer
is defined, then user languages would calldefine-binding-type
which would generate code to callinfer
. In trying to reduce syntax-parse-defining-macros, I moved theinfer
calls out ofdefine-binding-type
, which breaks.I can solve this with a higher order function but that's clearly a patch, not a solution.
The text was updated successfully, but these errors were encountered: