Class State
Encapsulated state for the parser. Opaque to users, visible to the tool-generated code.
Inheritance
System.Object
State
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: QUT.Gppg
Assembly: Xbim.Common.dll
Syntax
public class State
Constructors
| Improve this Doc View SourceState(Int32)
Set the default action for this state.
Declaration
public State(int defaultAction)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | defaultAction | Ordinal of the default action |
State(Int32, Int32[])
Set the default action and the state transition table.
Declaration
public State(int defaultAction, int[] goToList)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | defaultAction | The default action |
System.Int32[] | goToList | Transitions from this state |
State(Int32[])
Action data for this state. Pairs of elements of the action array associate action ordinals with each of those symbols that have actions in the current state.
Declaration
public State(int[] actions)
Parameters
Type | Name | Description |
---|---|---|
System.Int32[] | actions | The action array |
State(Int32[], Int32[])
State transition data for this state. Pairs of elements of the goto array associate symbol ordinals with next state indices. The actions array is passed to another constructor.
Declaration
public State(int[] actions, int[] goToList)
Parameters
Type | Name | Description |
---|---|---|
System.Int32[] | actions | The action list |
System.Int32[] | goToList | Next state data |
Fields
| Improve this Doc View Sourcenumber
The index of this state in the states array.
Declaration
public int number
Field Value
Type | Description |
---|---|
System.Int32 |