|
OpenXLSX 1.9.1
|
Polymorphic AST node. Uses a tagged-union approach with std::unique_ptr children.
More...
#include <XLFormulaEngine.hpp>
Public Member Functions | |
| XLASTNode (XLNodeKind k) | |
| XLASTNode (const XLASTNode &)=delete | |
| XLASTNode & | operator= (const XLASTNode &)=delete |
| XLASTNode (XLASTNode &&)=default | |
| XLASTNode & | operator= (XLASTNode &&)=default |
Data Fields | |
| XLNodeKind | kind |
| double | number {0.0} |
| std::string | text |
| string literal, cell-ref text, range text, identifier, error text | |
| bool | boolean {false} |
| XLTokenKind | op {XLTokenKind::Error} |
| operator for BinOp / UnaryOp | |
| std::vector< std::unique_ptr< XLASTNode > > | children |
| operands or function arguments | |
Polymorphic AST node. Uses a tagged-union approach with std::unique_ptr children.
All fields are public for simplicity; the AST is an internal implementation detail.
|
inlineexplicit |
|
delete |
|
default |
| bool OpenXLSX::XLASTNode::boolean {false} |
| std::vector<std::unique_ptr<XLASTNode> > OpenXLSX::XLASTNode::children |
operands or function arguments
| XLNodeKind OpenXLSX::XLASTNode::kind |
| double OpenXLSX::XLASTNode::number {0.0} |
| XLTokenKind OpenXLSX::XLASTNode::op {XLTokenKind::Error} |
operator for BinOp / UnaryOp
| std::string OpenXLSX::XLASTNode::text |
string literal, cell-ref text, range text, identifier, error text