/* 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 "library/tactic/tactic.h" #include "frontends/lean/cmd_table.h" namespace lean { class tactic_hint_entry { friend struct tactic_hint_config; name m_class; expr m_pre_tactic; tactic m_tactic; bool m_compiled; public: tactic_hint_entry():m_compiled(false) {} tactic_hint_entry(name const & c, expr const & pre_tac, tactic const & tac): m_class(c), m_pre_tactic(pre_tac), m_tactic(tac), m_compiled(true) {} expr const & get_pre_tactic() const { return m_pre_tactic; } tactic const & get_tactic() const { return m_tactic; } }; list get_tactic_hints(environment const & env, name const & cls_name); list get_tactic_hints(environment const & env); class parser; expr parse_tactic_name(parser & p); void register_tactic_hint_cmd(cmd_table & r); }