OpenXLSX 1.9.1
Loading...
Searching...
No Matches
OpenXLSX::XLFormulaParser Class Reference

Recursive-descent (Pratt) parser that converts a token stream into an AST. More...

#include <XLFormulaEngine.hpp>

Static Public Member Functions

static std::unique_ptr< XLASTNodeparse (gsl::span< const XLToken > tokens)
 Parse the token list produced by XLFormulaLexer::tokenize().
 

Detailed Description

Recursive-descent (Pratt) parser that converts a token stream into an AST.

Member Function Documentation

◆ parse()

std::unique_ptr< XLASTNode > OpenXLSX::XLFormulaParser::parse ( gsl::span< const XLToken tokens)
static

Parse the token list produced by XLFormulaLexer::tokenize().

Parameters
tokensSpan over the token vector (including sentinel End token).
Returns
Root AST node.
Exceptions
XLFormulaErroron syntax error.

The documentation for this class was generated from the following files: