The ParseTree represents a parsing tree (or derivation tree) generated by a parser. The tree consists in a hierarchy of nodes containing portions of the text identified by the parser rules.
More...
#include <parsers.h>
|
struct | Node |
| A node represents a element in the parsed string. More...
|
|
The ParseTree represents a parsing tree (or derivation tree) generated by a parser. The tree consists in a hierarchy of nodes containing portions of the text identified by the parser rules.
◆ NodeType
Parse tree nodes can be of different types:
- Note
- INPUT: a piece of text which might contain other nodes
-
TOKEN: a single token (a word identified by the parser) \node BLOCK: a block of of text enclosed by block delimiters which might contain other nodes
Enumerator |
---|
INPUT | a piece of text which might contain other nodes
|
TOKEN | a single token (a word identified by the parser)
|
BLOCK | a block of of text enclosed by block delimiters which might contain other nodes
|
◆ operator<<
Dumps all contant of the tree.
- Parameters
-
- Returns
The documentation for this class was generated from the following files:
- hermes/common/parsers.h
- hermes/common/parsers.cpp