|
Grammatica 1.5 Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
System.Object
|
+--NFAState
in TokenNFA.csAn NFA state. The NFA consists of a series of states, each having zero or more transitions to other states.
| Field Summary | |
internal bool |
epsilonOut
The outgoing epsilon transitions flag. |
internal NFATransition[] |
incoming
The incoming transitions to this state. |
internal NFATransition[] |
outgoing
The outgoing transitions from this state. |
internal TokenPattern |
value
The optional state value (if it is a final state). |
| Method Summary | |
void |
AddIn( NFATransition trans )
Adds a new incoming transition. |
NFAState |
AddOut( char ch, bool ignoreCase, NFAState state )
Adds a new outgoing character transition. |
NFAState |
AddOut( NFATransition trans )
Adds a new outgoing transition. |
bool |
HasTransitions()
Checks if this state has any incoming or outgoing transitions. |
bool |
IsAsciiOutgoing()
Checks if all outgoing transitions only match ASCII characters. |
void |
MatchEmpty( NFAStateQueue queue )
Adds all the epsilon transition targets to the specified queue. |
void |
MatchTransitions( char ch, NFAStateQueue queue, bool initial )
Attempts a match on each of the transitions leading from this state. |
void |
MergeInto( NFAState state )
Merges all the transitions in this state into another state. |
| Field Detail |
internal bool epsilonOut;
internal NFATransition[] incoming;
internal NFATransition[] outgoing;
internal TokenPattern value;
| Method Detail |
public void AddIn( NFATransition trans );
trans - the transition to addpublic NFAState AddOut( char ch, bool ignoreCase, NFAState state );
ch - he character to match
ignoreCase - the case-insensitive flag
state - the target state, or nullpublic NFAState AddOut( NFATransition trans );
trans - the transition to addpublic bool HasTransitions();
public bool IsAsciiOutgoing();
public void MatchEmpty( NFAStateQueue queue );
queue - the state queuepublic void MatchTransitions( char ch, NFAStateQueue queue, bool initial );
ch - the character to match
queue - the state queue
initial - the initial match flagpublic void MergeInto( NFAState state );
state - the state to merge into
|
Grammatica 1.5 Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||