teditor
1.8.0@@fee5e94
Terminal based editor written in C++
|
Go to the documentation of this file.
28 static const uint32_t
End;
32 static const uint32_t
Root;
45 void add(uint32_t type,
const Point& start,
const Point& end);
57 void printNode(std::ostream& os,
int depth)
const;
Node(const Token &t)
Definition: parse_tree.h:39
std::ostream & operator<<(std::ostream &os, const Token &tok)
Definition: parse_tree.cpp:11
bool isEof() const
Definition: parse_tree.h:25
const Node & operator[](size_t idx) const
Definition: parse_tree.h:49
uint32_t type
Definition: parse_tree.h:19
T y
Definition: pos2d.h:16
friend std::ostream & operator<<(std::ostream &os, const Token &tok)
Definition: parse_tree.cpp:11
Point end
Definition: parse_tree.h:23
std::vector< Node * > children
Definition: parse_tree.h:52
bool isLeaf() const
Definition: parse_tree.h:47
void add(Node *n)
Definition: parse_tree.h:43
Definition: parse_tree.h:13
static const uint32_t Unknown
Definition: parse_tree.h:30
static const uint32_t End
Definition: parse_tree.h:28
void add(const Token &t)
Definition: parse_tree.h:44
static const uint32_t Root
Definition: parse_tree.h:32
size_t size() const
Definition: parse_tree.h:46
Definition: parse_tree.h:38
friend std::ostream & operator<<(std::ostream &os, const Node &n)
Definition: parse_tree.cpp:47
Token tok
Definition: parse_tree.h:51
T x
Definition: pos2d.h:16
Point start
Definition: parse_tree.h:21
~Node()
Definition: parse_tree.h:41
Node & operator[](size_t idx)
Definition: parse_tree.h:48