ast updated
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#pragma once
|
||||
|
||||
#include <ast/BlockNode/BlockNode.h>
|
||||
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
#include <memory>
|
||||
|
||||
struct Document {
|
||||
std::vector<std::unique_ptr<BlockNode>> children;
|
||||
|
||||
void repr(std::ostream &os) {
|
||||
for (const std::unique_ptr<BlockNode> &child : children) {
|
||||
child->repr(os, 0);
|
||||
}
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user