42 #ifndef TEUCHOS_LANGUAGE_HPP
43 #define TEUCHOS_LANGUAGE_HPP
53 #include <Teuchos_Grammar.hpp>
54 #include <Teuchos_FiniteAutomaton.hpp>
156 void operator()(std::string
const& name_in, std::string
const& regex_in);
158 typedef std::vector<Token> Tokens;
161 typedef std::vector<std::string> RHS;
165 RHSBuilder(Production& prod_in);
166 RHSBuilder& operator,(std::string
const& rhs_item);
167 RHSBuilder& operator>>(std::string
const& rhs_item);
172 RHSBuilder operator()(std::string
const& lhs_in);
174 typedef std::vector<Production> Productions;
203 std::ostream& operator<<(std::ostream& os,
Language const& lang);
Productions productions
vector of productions
The main class for users to define a language using TeuchosParser.
void make_lexer(FiniteAutomaton &result, Language const &language)
construct a lexer for the Language tokens.
Declares Teuchos::ReaderTables.
Tokens tokens
vector of tokens
ReaderTablesPtr make_reader_tables(Language const &language)
constructs ReaderTables for the given Language.
RCP< const Language > LanguagePtr
an RCP to a const Language
Smart reference counting pointer class for automatic garbage collection.
Reference-counted pointer class and non-member templated function implementations.