[]
Represents a constant node in the syntax tree.
This abstract base class represents literal values that appear as terminal nodes in an expression tree, such as numbers, text, logical values, errors, and array constants.
As a subclass of TerminalNode, a constant node does not contain child nodes and is used as a leaf node during parsing and evaluation.
public abstract class ConstNode : TerminalNode, ICloneable
Public MustInherit Class ConstNode
Inherits TerminalNode
Implements ICloneable
FormulaSyntaxTree syntaxTree = FormulaSyntaxTree.Parse("1+2");
OperatorNode operatorNode = (OperatorNode)syntaxTree.Root;
ConstNode left = (ConstNode)operatorNode.Children[0];
ConstNode right = (ConstNode)operatorNode.Children[1];
| Name | Description |
|---|---|
| ConstNode() |