refactored ast, started lexer
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
#include "ast/BlockNode/Paragraph.h"
|
||||
|
||||
namespace ast {
|
||||
NodeKind Paragraph::getKind() const {
|
||||
return NodeKind::Paragraph;
|
||||
}
|
||||
|
||||
void Paragraph::repr(std::ostream &os, int indent) const {
|
||||
os << getIndent(indent) << toString(getKind()) << '\n';
|
||||
for (const std::unique_ptr<InlineNode> &child : children) {
|
||||
child->repr(os, indent + 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user