KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Nonterminal_db.h
Go to the documentation of this file.
1 #ifndef NONTERMINAL_DB_H_
2 #define NONTERMINAL_DB_H_
3 
11 #include "semantics/Token_map.h"
12 
13 namespace semantics
14 {
15 
16 class Nonterminal_db : public Token_map
17 {
18 public:
19  static const Key_type& stop_key();
20  static const Key_type& low_freq_key();
21  static const Key_type& root_key();
22  static const Val_type& root_code();
23 public:
25  Nonterminal_db(std::string file);
26  const Key_type& unknown_key() {return low_freq_key();}
27 };
28 
29 };
30 
31 #endif
static const Key_type & root_key()
Definition: Nonterminal_db.cpp:28
const Key_type & unknown_key()
Definition: Nonterminal_db.h:26
static const Val_type & root_code()
Definition: Nonterminal_db.cpp:33
static const Key_type & low_freq_key()
Definition: Nonterminal_db.cpp:23
std::string Key_type
Definition: Token_map.h:23
Definition: Token_map.h:20
size_t Val_type
Definition: Token_map.h:24
Definition: Nonterminal_db.h:16
static const Key_type & stop_key()
Definition: Nonterminal_db.cpp:18
Nonterminal_db()
Definition: Nonterminal_db.h:24