Column-oriented GPU-accelerated Database Management System
CoGaDB
|
00001 // Generated by Bisonc++ V2.09.03 on Sat, 08 Jun 2013 10:20:19 +0200 00002 00003 #ifndef Parser_h_included 00004 #define Parser_h_included 00005 00006 // $insert baseclass 00007 #include "Parserbase.h" 00008 00009 00010 #undef Parser 00011 class Parser: public ParserBase 00012 { 00013 00014 public: 00015 int parse(); 00016 00017 private: 00018 void error(char const *msg); // called on (syntax) errors 00019 int lex(); // returns the next token from the 00020 // lexical scanner. 00021 void print(); // use, e.g., d_token, d_loc 00022 00023 // support functions for parse(): 00024 void executeAction(int ruleNr); 00025 void errorRecovery(); 00026 int lookup(bool recovery); 00027 void nextToken(); 00028 }; 00029 00030 inline void Parser::error(char const *msg) 00031 { 00032 std::cerr << msg << '\n'; 00033 } 00034 00035 // $insert lex 00036 00037 // $insert print 00038 inline void Parser::print() 00039 {} 00040 00041 #endif