mirror of
https://codeberg.org/ProgramSnail/lang_2023.git
synced 2026-01-25 13:07:13 +00:00
print + build partially tested
This commit is contained in:
parent
0d62ae0814
commit
15e36c203a
22 changed files with 179 additions and 116 deletions
|
|
@ -8,7 +8,7 @@ namespace interpreter {
|
|||
|
||||
class BuildVisitor : public Visitor {
|
||||
public:
|
||||
BuildVisitor(const parser::ParseTree& parse_tree) : parse_tree_(parse_tree) {}
|
||||
explicit BuildVisitor(const parser::ParseTree& parse_tree) : parse_tree_(parse_tree) {}
|
||||
|
||||
void VisitSourceFile(SourceFile* source_file) override {
|
||||
current_node_ = parse_tree_.GetRoot();
|
||||
|
|
@ -23,7 +23,7 @@ private:
|
|||
void Visit(SourceFile* node) override;
|
||||
void Visit(Sources* node) override;
|
||||
|
||||
// Namespaces, partittions -----------------
|
||||
// Namespaces, partitions -----------------
|
||||
|
||||
void Visit(Partition* node) override;
|
||||
void Visit(Namespace* node) override;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue