diff options
Diffstat (limited to 'boot/dependency.cc')
| -rw-r--r-- | boot/dependency.cc | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/boot/dependency.cc b/boot/dependency.cc index 6b10611..84fd800 100644 --- a/boot/dependency.cc +++ b/boot/dependency.cc @@ -27,18 +27,13 @@ along with GCC; see the file COPYING3. If not see namespace elna::boot { - dependency::dependency(const char *path) - : error_container(path) + dependency read_source(std::istream& entry_point) { - } - - dependency read_source(std::istream& entry_point, const char *entry_path) - { - driver parse_driver{ entry_path }; + driver parse_driver; lexer tokenizer(entry_point); yy::parser parser(tokenizer, parse_driver); - dependency outcome{ entry_path }; + dependency outcome; if (parser()) { std::swap(outcome.errors(), parse_driver.errors()); @@ -48,7 +43,7 @@ namespace elna::boot { std::swap(outcome.tree, parse_driver.tree); } - declaration_visitor declaration_visitor(entry_path); + declaration_visitor declaration_visitor; outcome.tree->accept(&declaration_visitor); if (!declaration_visitor.errors().empty()) @@ -60,16 +55,16 @@ namespace elna::boot return outcome; } - error_list analyze_semantics(const char *path, std::unique_ptr<unit>& tree, symbol_bag bag) + error_list analyze_semantics(std::unique_ptr<unit>& tree, symbol_bag bag) { - name_analysis_visitor name_analyser(path, bag); + name_analysis_visitor name_analyser(bag); tree->accept(&name_analyser); if (name_analyser.has_errors()) { return std::move(name_analyser.errors()); } - type_analysis_visitor type_analyzer(path, bag); + type_analysis_visitor type_analyzer(bag); tree->accept(&type_analyzer); if (type_analyzer.has_errors()) |
