xo-interpreter: plumb initial global symtab so builtins reach parser

This commit is contained in:
Roland Conybeare 2025-11-27 11:50:34 -05:00
commit 79d32b61c6
14 changed files with 57 additions and 23 deletions

View file

@ -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));