|
Grammatica 1.4 Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
System.Object
|
+--Node
|
+--Production
in Production.csA production node. This class represents a grammar production (i.e. a list of child nodes) in a parse tree. The productions are created by a parser, that adds children a according to a set of production patterns (i.e. grammar rules).
Constructor Summary | |
Production( ProductionPattern pattern )
Creates a new production node. |
Method Summary | |
void |
AddChild( Node child )
Adds a child node. |
override Node |
GetChildAt( int index )
Returns the child node with the specified index. |
override int |
GetChildCount()
Returns the number of child nodes. |
override int |
GetId()
Returns the production (pattern) id. |
override string |
GetName()
Returns the production node name. |
ProductionPattern |
GetPattern()
Returns the production pattern for this production. |
internal override bool |
IsHidden()
Checks if this node is hidden, i. |
override string |
ToString()
Returns a string representation of this production. |
Methods inherited from class Node |
IsHidden, GetId, GetName, GetStartLine, GetStartColumn, GetEndLine, GetEndColumn, GetParent, SetParent, GetChildCount, GetChildAt, GetDescendantCount, GetValueCount, GetValue, GetAllValues, AddValue, AddValues, RemoveAllValues, PrintTo |
Constructor Detail |
public Production( ProductionPattern pattern );
pattern
- the production patternMethod Detail |
public void AddChild( Node child );
child
- the child node to addpublic override Node GetChildAt( int index );
index
- the child index, 0 <= index < countpublic override int GetChildCount();
public override int GetId();
public override string GetName();
public ProductionPattern GetPattern();
internal override bool IsHidden();
public override string ToString();
|
Grammatica 1.4 Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |