|
Grammatica 1.5 Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
System.Object
|
+--ProductionPatternElement
in ProductionPatternElement.csA production pattern element. This class represents a reference to either a token or a production. Each element also contains minimum and maximum occurence counters, controlling the number of repetitions allowed. A production pattern element is always contained within a production pattern rule.
| Field Summary | |
int |
Id
The node identity property (read-only). |
internal LookAheadSet |
LookAhead
The look-ahead set property. |
int |
MaxCount
The maximum occurence count property (read-only). |
int |
MinCount
The minimum occurence count property (read-only). |
| Constructor Summary | |
ProductionPatternElement( bool isToken, int id, int min, int max )
Creates a new element. |
|
| Method Summary | |
override bool |
Equals( object obj )
Checks if this object is equal to another. |
override int |
GetHashCode()
Returns a hash code for this object. |
int |
GetId()
Deprecated. Use the Id property instead. |
int |
GetMaxCount()
Deprecated. Use the MaxCount property instead. |
int |
GetMinCount()
Deprecated. Use the MinCount property instead. |
bool |
IsMatch( Token token )
Checks if a specific token matches this element. |
bool |
IsProduction()
Returns true if this element represents a production. |
bool |
IsToken()
Returns true if this element represents a token. |
override string |
ToString()
Returns a string representation of this object. |
| Field Detail |
public int Id;
internal LookAheadSet LookAhead;
public int MaxCount;
public int MinCount;
| Constructor Detail |
public ProductionPatternElement( bool isToken, int id, int min, int max );
isToken - the token flag
id - the node identity
min - the minimum number of occurancies
max - the maximum number of occurancies, or
negative for infinite| Method Detail |
public override bool Equals( object obj );
obj - the object to compare withpublic override int GetHashCode();
public int GetId();
Returns the node identity.
Idpublic int GetMaxCount();
Returns the maximum occurence count.
MaxCountpublic int GetMinCount();
Returns the minimum occurence count.
MinCountpublic bool IsMatch( Token token );
token - the token to checkpublic bool IsProduction();
public bool IsToken();
public override string ToString();
|
Grammatica 1.5 Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||