xo-interpreter: plumb initial global symtab so builtins reach parser
This commit is contained in:
parent
fc2c9a5629
commit
1ae512b261
8 changed files with 27 additions and 11 deletions
|
|
@ -8,6 +8,7 @@
|
|||
#include "parser.hpp"
|
||||
#include "reader_error.hpp"
|
||||
#include "xo/expression/Expression.hpp"
|
||||
#include "xo/expression/GlobalSymtab.hpp"
|
||||
#include "xo/expression/pretty_expression.hpp"
|
||||
#include "xo/tokenizer/tokenizer.hpp"
|
||||
|
||||
|
|
@ -78,7 +79,7 @@ namespace xo {
|
|||
using span_type = tokenizer_type::span_type;
|
||||
|
||||
public:
|
||||
explicit reader(bool debug_flag);
|
||||
reader(const rp<GlobalSymtab> & toplevel_symtab, bool debug_flag);
|
||||
|
||||
bool debug_flag() const { return parser_.debug_flag(); }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue