ITreeConstructionNode Interface
Provides the base requirements for tree construction node, used to output an IAstNode for an EbnfProduction.
public interface ITreeConstructionNode
Properties
IsCompiled
Gets whether the grammar and its elements are compiled, via a call to its Compile() method.
bool IsCompiled { get; }
Property Value
- bool:
true
if the grammar and its elements are compiled; otherwise,false
.
IsList
Gets whether this tree construction node returns a placeholder node that contains a list of IAstNode results.
Methods
CreateNode(IAstNodeMatchCollection)
Returns the IAstNode that is created for this tree construction node.
IAstNode CreateNode(IAstNodeMatchCollection matches)
Parameter | Type | Description |
---|---|---|
matches | IAstNodeMatchCollection | The collection of matched IAstNode objects within the current IAstNodeBuilder scope. |
Returns
ToEbnfString()
Outputs the contents of the production rule in EBNF form.