xo-interpreter: plumb initial global symtab so builtins reach parser
This commit is contained in:
parent
2526dcc9b1
commit
79d32b61c6
14 changed files with 57 additions and 23 deletions
|
|
@ -10,6 +10,7 @@
|
|||
namespace xo {
|
||||
using parser_type = xo::scm::parser;
|
||||
using token_type = parser_type::token_type;
|
||||
using xo::scm::GlobalSymtab;
|
||||
using xo::scm::exprstatetype;
|
||||
using xo::scm::define_xs;
|
||||
using xo::scm::defexprstatetype;
|
||||
|
|
@ -23,7 +24,9 @@ namespace xo {
|
|||
for (std::size_t i_tc = 0; i_tc < 2; ++i_tc) {
|
||||
constexpr bool c_debug_flag = true;
|
||||
|
||||
parser_type parser(c_debug_flag);
|
||||
rp<GlobalSymtab> toplevel_symtab = GlobalSymtab::make_empty();
|
||||
|
||||
parser_type parser(toplevel_symtab, c_debug_flag);
|
||||
|
||||
scope log(XO_DEBUG(c_debug_flag), xtag("i_tc", i_tc));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue