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