| 1 |
// Generated by Bisonc++ V6.04.00 on Fri, 20 Mar 2020 15:23:21 +0100 |
| 2 |
|
| 3 |
#ifndef Parser_h_included |
| 4 |
#define Parser_h_included |
| 5 |
|
| 6 |
// $insert baseclass |
| 7 |
#include "Parserbase.h" |
| 8 |
|
| 9 |
|
| 10 |
#undef Parser |
| 11 |
// CAVEAT: between the baseclass-include directive and the |
| 12 |
// #undef directive in the previous line references to Parser |
| 13 |
// are read as ParserBase. |
| 14 |
// If you need to include additional headers in this file |
| 15 |
// you should do so after these comment-lines. |
| 16 |
|
| 17 |
|
| 18 |
class Parser: public ParserBase |
| 19 |
{ |
| 20 |
|
| 21 |
public: |
| 22 |
Parser() = default; |
| 23 |
int parse(); |
| 24 |
|
| 25 |
private: |
| 26 |
void error(); // 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 |
void exceptionHandler(std::exception const &exc); |
| 31 |
|
| 32 |
// support functions for parse(): |
| 33 |
void executeAction_(int ruleNr); |
| 34 |
void errorRecovery_(); |
| 35 |
void nextCycle_(); |
| 36 |
void nextToken_(); |
| 37 |
void print_(); |
| 38 |
}; |
| 39 |
|
| 40 |
|
| 41 |
#endif |