|
OpenXLSX 1.12.1
Modern C++ Excel Library (Fork of OpenXLSX by Kenneth Troldal Balslev)
|
Recursive-descent (Pratt) parser that converts a token stream into an AST. More...
#include <XLFormulaEngine.hpp>
Static Public Member Functions | |
| static std::unique_ptr< XLASTNode > | parse (gsl::span< const XLToken > tokens, XLFormulaDiagnosticReporter *reporter=nullptr) |
| Parse the token list produced by XLFormulaLexer::tokenize(). | |
Recursive-descent (Pratt) parser that converts a token stream into an AST.
|
static |
Parse the token list produced by XLFormulaLexer::tokenize().
| tokens | Span over the token vector (including sentinel End token). |
| reporter | Optional diagnostic reporter to collect syntax errors. |
| XLFormulaError | on syntax error if reporter is nullptr. |