OPALX (Object Oriented Parallel Accelerator Library for Exascal) MINIorX
OPALX
matheval Namespace Reference

Namespaces

namespace  detail

Classes

class  Parser
 Class interface. More...

Functions

template<typename real_t, typename Iterator>
real_t parse (Iterator first, Iterator last, typename detail::eval_ast< real_t >::symbol_table_t const &st)
 Convenience function.
template<typename real_t>
real_t parse (std::string const &str, typename detail::eval_ast< real_t >::symbol_table_t const &st)

Function Documentation

◆ parse() [1/2]

template<typename real_t, typename Iterator>
real_t matheval::parse ( Iterator first,
Iterator last,
typename detail::eval_ast< real_t >::symbol_table_t const & st )

Convenience function.

This function builds the grammar, parses the iterator to an AST, evaluates it, and returns the result.

Parameters
[in]firstiterator to the start of the input sequence
[in]lastiterator to the end of the input sequence
[in]stthe symbol table for variables

Definition at line 630 of file matheval.hpp.

References matheval::Parser< real_t >::evaluate(), and matheval::Parser< real_t >::parse().

Referenced by parse(), and mslang::parseMathExpression().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse() [2/2]

template<typename real_t>
real_t matheval::parse ( std::string const & str,
typename detail::eval_ast< real_t >::symbol_table_t const & st )

Definition at line 640 of file matheval.hpp.

References parse().

Here is the call graph for this function: