2014-06-10 17:39:22 +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/token_table.h"
|
|
|
|
#include "frontends/lean/parse_table.h"
|
2014-06-11 00:02:06 +00:00
|
|
|
#include "frontends/lean/cmd_table.h"
|
2014-06-10 17:39:22 +00:00
|
|
|
|
|
|
|
namespace lean {
|
2014-06-15 05:13:25 +00:00
|
|
|
environment add_token(environment const & env, char const * val, unsigned prec);
|
2014-06-15 18:50:41 +00:00
|
|
|
environment add_nud_notation(environment const & env, unsigned num, notation::transition const * ts, expr const & a, bool overload = true);
|
|
|
|
environment add_led_notation(environment const & env, unsigned num, notation::transition const * ts, expr const & a, bool overload = true);
|
|
|
|
environment add_nud_notation(environment const & env, std::initializer_list<notation::transition> const & ts, expr const & a,
|
|
|
|
bool overload = true);
|
|
|
|
environment add_led_notation(environment const & env, std::initializer_list<notation::transition> const & ts, expr const & a,
|
|
|
|
bool overload = true);
|
2014-06-15 05:13:25 +00:00
|
|
|
token_table const & get_token_table(environment const & env);
|
|
|
|
parse_table const & get_nud_table(environment const & env);
|
|
|
|
parse_table const & get_led_table(environment const & env);
|
|
|
|
cmd_table const & get_cmd_table(environment const & env);
|
|
|
|
tactic_cmd_table const & get_tactic_cmd_table(environment const & env);
|
2014-06-10 17:39:22 +00:00
|
|
|
}
|