Teuchos - Trilinos Tools Package  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Teuchos_ReaderTables.hpp
Go to the documentation of this file.
1 // @HEADER
2 // *****************************************************************************
3 // Teuchos: Common Tools Package
4 //
5 // Copyright 2004 NTESS and the Teuchos contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9 
10 #ifndef TEUCHOS_READER_TABLES_HPP
11 #define TEUCHOS_READER_TABLES_HPP
12 
17 #include <Teuchos_FiniteAutomaton.hpp>
18 #include <Teuchos_Parser.hpp>
19 #include <Teuchos_RCP.hpp>
20 
21 namespace Teuchos {
22 
23 struct IndentInfo {
24  bool is_sensitive;
25  int indent_token;
26  int dedent_token;
27  int newline_token;
28 };
29 
31 struct ReaderTables {
33  Parser parser;
35  FiniteAutomaton lexer;
36  IndentInfo indent_info;
37 };
38 
41 
42 }
43 
44 #endif
FiniteAutomaton lexer
lexer.
Declares Teuchos::Parser, ParserFail and make_lalr1_parser.
Parser and lexer tables specifying how to read a Language.
RCP< const ReaderTables > ReaderTablesPtr
an RCP to a const ReaderTables
Reference-counted pointer class and non-member templated function implementations.