In This Article

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.

bool IsList { get; }

Property Value

bool:

true if this node creates 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

IAstNode:

The IAstNode that is created for this tree construction node.

ToEbnfString()

Outputs the contents of the production rule in EBNF form.

string ToEbnfString()

Returns

string:

A string containing the EBNF form of the production rule.