| 1 |
// Generated by Bisonc++ V5.00.00 on Thu, 07 Apr 2016 13:28:57 +0530 |
| 2 |
|
| 3 |
#ifndef Parser_h_included |
| 4 |
#define Parser_h_included |
| 5 |
|
| 6 |
// $insert baseclass |
| 7 |
#include "parserbase.h" |
| 8 |
// $insert scanner.h |
| 9 |
#include "../scanner/scanner.h" |
| 10 |
|
| 11 |
|
| 12 |
#undef Parser |
| 13 |
class Parser: public ParserBase |
| 14 |
{ |
| 15 |
// $insert scannerobject |
| 16 |
Scanner d_scanner; |
| 17 |
|
| 18 |
public: |
| 19 |
int parse(); |
| 20 |
|
| 21 |
private: |
| 22 |
int intValue() const; |
| 23 |
void process(STYPE_ const &semVal) const; |
| 24 |
|
| 25 |
void error(); |
| 26 |
void error(char const *msg); // called on (syntax) errors |
| 27 |
int lex(); // returns the next token from the |
| 28 |
// lexical scanner. |
| 29 |
void print(); // use, e.g., d_token, d_loc |
| 30 |
|
| 31 |
// support functions for parse(): |
| 32 |
void executeAction_(int ruleNr); |
| 33 |
void errorRecovery_(); |
| 34 |
void nextCycle_(); |
| 35 |
void nextToken_(); |
| 36 |
void print_(); |
| 37 |
void exceptionHandler(std::exception const &exc); |
| 38 |
}; |
| 39 |
|
| 40 |
|
| 41 |
#endif |