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