-
Notifications
You must be signed in to change notification settings - Fork 98
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
[info request] #375
Comments
I don't think it is directly supported right now. You can register such a transformation as a whole file transformation (the However, I think you should think twice before doing so:
|
I couldn't get it to work and reverted to parsetree matching. |
I am not sure which part is still a problem: The creation of ast patterns, or the ast traversal? |
with 1st class patterns, is it possible to submit one
to the ppxlib engine outside the context of extension points?
ie. I would like to do this:
<...> Ast_pattern0.t -> handler-function: (... -> 'a) -> Parsetree.t -> unit
and have the handler function called as many times as the pattern
appears in the parsetree. or something similar?
thanks...
The text was updated successfully, but these errors were encountered: