2014-07-03 03:45:10 +00:00
|
|
|
/*
|
|
|
|
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
|
|
|
|
Released under Apache 2.0 license as described in the file LICENSE.
|
|
|
|
|
|
|
|
Author: Leonardo de Moura
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "kernel/environment.h"
|
|
|
|
#include "frontends/lean/cmd_table.h"
|
|
|
|
|
|
|
|
namespace lean {
|
2014-08-21 17:36:44 +00:00
|
|
|
environment add_begin_end_pre_tactic(environment const & env, expr const & pre_tac);
|
|
|
|
environment reset_begin_end_pre_tactic(environment const & env, expr const & pre_tac);
|
|
|
|
optional<expr> get_begin_end_pre_tactic(environment const & env);
|
|
|
|
void register_begin_end_cmds(cmd_table & r);
|
2014-09-23 00:30:29 +00:00
|
|
|
|
2014-10-29 05:15:38 +00:00
|
|
|
expr mk_begin_end_annotation(expr const & e);
|
|
|
|
expr mk_begin_end_element_annotation(expr const & e);
|
|
|
|
bool is_begin_end_annotation(expr const & e);
|
|
|
|
bool is_begin_end_element_annotation(expr const & e);
|
|
|
|
|
2014-09-23 00:30:29 +00:00
|
|
|
void initialize_begin_end_ext();
|
|
|
|
void finalize_begin_end_ext();
|
2014-07-03 03:45:10 +00:00
|
|
|
}
|