lean4-htt/src/frontends/lean/parser_config.h
Leonardo de Moura 3dc26666b9 feat(frontends/lean): add parser interface
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-06-10 18:20:59 -07:00

25 lines
697 B
C++

/*
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"
#include "frontends/lean/cmd_table.h"
namespace lean {
struct parser_config {
token_table m_tokens;
parse_table m_nud;
parse_table m_led;
cmd_table m_cmds;
tactic_cmd_table m_tactic_cmds;
parser_config();
};
parser_config const & get_parser_config(environment const & env);
environment update_parser_config(environment const & env, parser_config const & c);
}