1 #ifndef TEUCHOS_MATHEXPR_HPP
2 #define TEUCHOS_MATHEXPR_HPP
55 enum { NPRODS = PROD_SPACES + 1 };
82 enum { NTOKS = TOK_ASSIGN + 1 };
84 Language make_language();
90 class SymbolSetReader :
public Reader {
93 virtual ~SymbolSetReader();
95 std::set<std::string> variable_names;
96 std::set<std::string> function_names;
98 virtual void at_shift(any& result,
int token, std::string& text);
99 virtual void at_reduce(any& result,
int prod, std::vector<any>& rhs);
102 std::set<std::string> get_variables_used(std::string
const& expr);
103 std::set<std::string> get_symbols_used(std::string
const& expr);
105 Reader* new_calc_reader();
RCP< const ReaderTables > ReaderTablesPtr
an RCP to a const ReaderTables
RCP< const Language > LanguagePtr
an RCP to a const Language
Declares Teuchos::Language.
Declares Teuchos::Reader.