#include <NFAState.h>
Definition at line 16 of file NFAState.h.
◆ Kind
Enumerator |
---|
kAccept_Kind | |
kChar_Kind | |
kDot_Kind | |
kRemapped_Kind | |
kTable_Kind | |
Definition at line 17 of file NFAState.h.
17 {
18
19
21
23
25
26
28
29
31 };
◆ NFAState() [1/5]
NFAState::NFAState |
( |
Kind |
kind, |
|
|
std::vector< int > |
next |
|
) |
| |
|
inline |
Definition at line 33 of file NFAState.h.
static float next(float f)
◆ NFAState() [2/5]
NFAState::NFAState |
( |
char |
c, |
|
|
std::vector< int > |
next |
|
) |
| |
|
inline |
◆ NFAState() [3/5]
NFAState::NFAState |
( |
std::vector< int > |
states | ) |
|
|
inline |
◆ NFAState() [4/5]
NFAState::NFAState |
( |
bool |
inverse, |
|
|
std::vector< bool > |
accepts, |
|
|
std::vector< int > |
next |
|
) |
| |
|
inline |
Definition at line 46 of file NFAState.h.
50 for (
bool b : accepts) {
52 }
53 }
◆ NFAState() [5/5]
NFAState::NFAState |
( |
int |
token | ) |
|
|
inline |
◆ accept()
bool NFAState::accept |
( |
char |
c | ) |
const |
|
inline |
Definition at line 60 of file NFAState.h.
60 {
63 return false;
67 return c != '\n';
70 if ((
size_t) c <
fData.size()) {
72 } else {
74 }
76 }
77 default:
79 }
80 }
◆ fChar
◆ fData
std::vector<int> NFAState::fData |
◆ fInverse
bool NFAState::fInverse = false |
◆ fKind
◆ fNext
std::vector<int> NFAState::fNext |
The documentation for this struct was generated from the following file: