mirror of
https://codeberg.org/ProgramSnail/lang.git
synced 2025-12-13 10:28:45 +00:00
name tree mostly finished
This commit is contained in:
parent
263b58a17c
commit
fc114ff959
14 changed files with 116 additions and 38 deletions
|
|
@ -5,6 +5,7 @@
|
|||
#include "basic_printers.hpp"
|
||||
#include "error_handling.hpp"
|
||||
#include "expression_nodes.hpp"
|
||||
#include "name_tree.hpp"
|
||||
#include "statement_builders.hpp"
|
||||
#include "statement_printers.hpp"
|
||||
#include "type_nodes.hpp"
|
||||
|
|
@ -38,9 +39,10 @@ int main(int argc, char **argv) {
|
|||
|
||||
nodes::ExpressionStorage expression_storage;
|
||||
nodes::TypeStorage type_storage;
|
||||
names::NameTree name_tree;
|
||||
|
||||
auto statements = builders::build_source_file(
|
||||
parse_tree.get_root(), expression_storage, type_storage);
|
||||
parse_tree.get_root(), expression_storage, type_storage, name_tree);
|
||||
|
||||
printers::Printer printer(std::cout, 2, 80, false);
|
||||
printers::print_source_file(statements, printer);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue