forked from DOMjudge/checktestdata
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathparser.h
44 lines (35 loc) · 1.13 KB
/
parser.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Generated by Bisonc++ V4.01.00 on Sat, 17 Aug 2013 12:52:37 +0100
#ifndef Parser_h_included
#define Parser_h_included
// $insert baseclass
#include "parserbase.h"
// $insert scanner.h
#include "scanner.h"
#undef Parser
class Parser: public ParserBase
{
// $insert scannerobject
Scanner d_scanner;
public:
Parser(): d_scanner() {}
Parser(std::istream& in, int startState = 0): d_scanner(in)
{ d_scanner.parserStart = startState; }
int parse();
// The final result of parsing:
parse_t parseResult;
private:
void error(char const *msg); // called on (syntax) errors
int lex(); // returns the next token from the
// lexical scanner.
void print(); // use, e.g., d_token, d_loc
// support functions for parse():
void executeAction(int ruleNr);
void errorRecovery();
int lookup(bool recovery);
void nextToken();
void print__();
#if ( BISONCPP_VERSION >= 40200LL )
void exceptionHandler__(std::exception const &exc);
#endif
};
#endif