-
Notifications
You must be signed in to change notification settings - Fork 111
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
use REPL ast_transforms in Julia 1.5+ #423
Comments
Thanks for doing this, we've needed something like this for a long time. |
timholy
added a commit
that referenced
this issue
Feb 15, 2020
(Are there other REPL-stealing packages that should be using this mechanism too?) |
timholy
added a commit
that referenced
this issue
Feb 24, 2020
timholy
added a commit
that referenced
this issue
Mar 26, 2020
timholy
added a commit
that referenced
this issue
Mar 26, 2020
timholy
added a commit
that referenced
this issue
Mar 26, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In Julia 1.5 or later (JuliaLang/julia#34626), you can just do
to tell the REPL to perform arbitrary AST transformations. (
pushfirst!
will doast = my_transformation(ast)
on each parsedast
before the defaultREPL.softscope
transformation in Julia 1.5.)This should be simpler than your current
steal_repl_backend
machinery, and more importantly it is composable with other code that wants to hook into the REPL.The text was updated successfully, but these errors were encountered: