10 #ifndef TEUCHOS_MATHEXPR_HPP
11 #define TEUCHOS_MATHEXPR_HPP
64 enum { NPRODS = PROD_SPACES + 1 };
91 enum { NTOKS = TOK_ASSIGN + 1 };
93 Language make_language();
99 class SymbolSetReader :
public Reader {
102 virtual ~SymbolSetReader();
104 std::set<std::string> variable_names;
105 std::set<std::string> function_names;
107 virtual void at_shift(any& result,
int token, std::string& text);
108 virtual void at_reduce(any& result,
int prod, std::vector<any>& rhs);
111 std::set<std::string> get_variables_used(std::string
const& expr);
112 std::set<std::string> get_symbols_used(std::string
const& expr);
114 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.