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