Equip parser_t with a variable stack

Prepares to eliminate env_get and env_set by accessing variables through
a parser.
This commit is contained in:
ridiculousfish
2018-09-10 01:17:57 -07:00
parent bba66a3ecc
commit a47f6859bd
2 changed files with 7 additions and 2 deletions

View File

@@ -100,7 +100,7 @@ static wcstring user_presentable_path(const wcstring &path) {
return replace_home_directory_with_tilde(path);
}
parser_t::parser_t() = default;
parser_t::parser_t() : variables(env_stack_t::principal()) {}
// Out of line destructor to enable forward declaration of parse_execution_context_t
parser_t::~parser_t() = default;