|
Grammatica 1.5 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).
| Field Summary | |
override int |
Count
The child node count property (read-only). |
override int |
Id
The node type id property (read-only). |
override string |
Name
The node name property (read-only). |
ProductionPattern |
Pattern
The production pattern property (read-only). |
override Node[ int index ] |
this
The child node index (read-only). |
| Fields inherited from class Node |
Id, Name, StartLine, StartColumn, EndLine, EndColumn, Parent, Count, this, Values |
| Constructor Summary | |
Production( ProductionPattern pattern )
Creates a new production node. |
|
| Method Summary | |
void |
AddChild( Node child )
Adds a child node. |
ProductionPattern |
GetPattern()
Deprecated. Use the Pattern property instead. |
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, GetDescendantCount, GetChildAt, GetValueCount, GetValue, GetAllValues, AddValue, AddValues, RemoveAllValues, PrintTo |
| Field Detail |
public override int Count;
public override int Id;
public override string Name;
public ProductionPattern Pattern;
public override Node this[ int index ];
index - the child index, 0 <= index < Count| Constructor Detail |
public Production( ProductionPattern pattern );
pattern - the production pattern| Method Detail |
public void AddChild( Node child );
child - the child node to addpublic ProductionPattern GetPattern();
Returns the production pattern for this production.
Patterninternal override bool IsHidden();
public override string ToString();
|
Grammatica 1.5 Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||