lean4-htt/tests/lean/run/add_interactive.lean
Leonardo de Moura f5ec29ab1a feat(library/init/meta/interactive): add add_interactive command.
@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.
2017-06-05 16:43:15 -07:00

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