1 #ifndef TEUCHOS_REGEX_HPP 2 #define TEUCHOS_REGEX_HPP 5 #include <Teuchos_FiniteAutomaton.hpp> 37 enum { NPRODS = PROD_RANGE + 1 };
54 enum { NTOKS = TOK_MAYBE + 1 };
56 Language make_language();
63 void make_dfa(FiniteAutomaton& result, std::string
const& name, std::string
const& regex,
int token);
67 Reader(
int result_token_in);
70 virtual void at_shift(any& result,
int token, std::string& text);
71 virtual void at_reduce(any& result,
int token, std::vector<any>& rhs);
Reader(ReaderTablesPtr tables_in)
Constructor: accepts an RCP to ReaderTables.
The main class for users to read text using TeuchosParser.
Declares Teuchos::ReaderTables.
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos, as well as a number of utility routines.
RCP< const ReaderTables > ReaderTablesPtr
an RCP to a const ReaderTables
void make_lexer(FiniteAutomaton &result, Language const &language)
construct a lexer for the Language tokens.
RCP< const Language > LanguagePtr
an RCP to a const Language
Declares Teuchos::Language.
Declares Teuchos::Reader.