10 #ifndef TEUCHOS_REGEX_HPP
11 #define TEUCHOS_REGEX_HPP
14 #include <Teuchos_FiniteAutomaton.hpp>
46 enum { NPRODS = PROD_RANGE + 1 };
63 enum { NTOKS = TOK_MAYBE + 1 };
65 Language make_language();
72 void make_dfa(FiniteAutomaton& result, std::string
const& name, std::string
const& regex,
int token);
76 Reader(
int result_token_in);
79 virtual void at_shift(any& result,
int token, std::string& text);
80 virtual void at_reduce(any& result,
int token, std::vector<any>& rhs);
Reader(ReaderTablesPtr tables_in)
Constructor: accepts an RCP to ReaderTables.
void make_lexer(FiniteAutomaton &result, Language const &language)
construct a lexer for the Language tokens.
The main class for users to read text using TeuchosParser.
Declares Teuchos::ReaderTables.
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.