Flutter Engine
The Flutter Engine
|
#include <RegexNode.h>
Classes | |
union | Payload |
Public Types | |
enum | Kind { kChar_Kind , kCharset_Kind , kConcat_Kind , kDot_Kind , kOr_Kind , kPlus_Kind , kRange_Kind , kQuestion_Kind , kStar_Kind } |
Public Member Functions | |
RegexNode (Kind kind) | |
RegexNode (Kind kind, char payload) | |
RegexNode (Kind kind, const char *children) | |
RegexNode (Kind kind, RegexNode child) | |
RegexNode (Kind kind, RegexNode child1, RegexNode child2) | |
std::vector< int > | createStates (NFA *nfa, const std::vector< int > &accept) const |
std::string | description () const |
Public Attributes | |
Kind | fKind |
union RegexNode::Payload | fPayload |
std::vector< RegexNode > | fChildren |
Represents a node in the parse tree of a regular expression.
Definition at line 20 of file RegexNode.h.
enum RegexNode::Kind |
Enumerator | |
---|---|
kChar_Kind | |
kCharset_Kind | |
kConcat_Kind | |
kDot_Kind | |
kOr_Kind | |
kPlus_Kind | |
kRange_Kind | |
kQuestion_Kind | |
kStar_Kind |
Definition at line 21 of file RegexNode.h.
|
inline |
Definition at line 33 of file RegexNode.h.
|
inline |
Definition at line 36 of file RegexNode.h.
|
inline |
Definition at line 41 of file RegexNode.h.
Definition at line 50 of file RegexNode.h.
Definition at line 55 of file RegexNode.h.
Creates NFA states for this node, with a successful match against this node resulting in a transition to all of the states in the accept vector.
Definition at line 16 of file RegexNode.cpp.
std::string RegexNode::description | ( | ) | const |
std::vector<RegexNode> RegexNode::fChildren |
Definition at line 76 of file RegexNode.h.
Kind RegexNode::fKind |
Definition at line 69 of file RegexNode.h.
union RegexNode::Payload RegexNode::fPayload |