@Armael: the new file `tests/lean/run/add_interactive.lean` contains a small example. Note that we don't have auto quotation for commands yet. So, I have to use the backtick in the example. @Kha: this is a good candidate for the future command parser extensions.
16 lines
293 B
Text
16 lines
293 B
Text
namespace foo
|
|
namespace bla
|
|
open lean.parser interactive interactive.types
|
|
|
|
meta def my_exact (q : parse texpr) :=
|
|
tactic.interactive.exact q
|
|
|
|
/- Copy tactic my_exact to tactic.interactive. -/
|
|
run_cmd add_interactive [`my_exact]
|
|
end bla
|
|
|
|
example : true :=
|
|
begin
|
|
my_exact trivial
|
|
end
|
|
end foo
|