24#include <boost/variant.hpp>
31namespace func_sketch::parser {
57 const std::
string& expression_str)
const {
58 const auto parsed_expression =
pimpl_->grammar.parse(expression_str);
60 parsed_expression,
pimpl_->math_function_list,
pimpl_->constant_list);
Class of lists of constants.
Class of lists of mathematical functions.
Class of grammar for parsing expressions.
Class of parser for expressions.
std::unique_ptr< Impl > pimpl_
Internal data.
ExpressionParser()
Constructor.
ConstantList generate_constant_list()
Generate a list of built-in constants.
Declaration of convert_expression function.
expressions::ExpressionPtr convert_expression(const ParsedExpression &parsed_expression, const math::MathFunctionList &math_function_list, const math::ConstantList &constant_list)
Convert parsed expression.
Definition of ExpressionGrammar class.
Definition of ExpressionParser class.
Declaration of generate_math_function_list function.
MathFunctionList generate_math_function_list()
Generate a list of mathematical functions.
Definition of MathFunctionList class.
Internal data of ExpressionParser class.
math::ConstantList constant_list
List of constants.
ExpressionGrammar grammar
Grammar for parsing expressions.
math::MathFunctionList math_function_list
List of mathematical functions.