You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In testing out a change, we found it quite helpful to use ReplMaker.jl to create a custom REPL prompt that applied a cassette transform. It's super easy!
using Cassette, ReplMaker
Cassette.@context Ctx
# Do overdubbing...functionparse_to_expr(s)
p = Meta.parse(s)
isa(p, Expr) && p.head in (:using, :import) &&return p
quote$Cassette.@overdub($(Ctx()), $p) endendinitrepl(parse_to_expr,
prompt_text="Ctx> ",
prompt_color =:blue,
start_key=')',
mode_name="Ctx_mode")
Is this something worth upstreaming here? Maybe as a flag to @context to create a REPL?
The text was updated successfully, but these errors were encountered:
In testing out a change, we found it quite helpful to use ReplMaker.jl to create a custom REPL prompt that applied a cassette transform. It's super easy!
Is this something worth upstreaming here? Maybe as a flag to
@context
to create a REPL?The text was updated successfully, but these errors were encountered: