forked from DOMjudge/checktestdata
-
Notifications
You must be signed in to change notification settings - Fork 0
/
parser.ih
44 lines (31 loc) · 994 Bytes
/
parser.ih
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
// Include this file in the sources of the class Parser.
// $insert class.h
#include "parser.h"
inline void Parser::error(char const *msg)
{
std::cerr << msg << " on line " << d_scanner.lineNr() << std::endl;
}
// $insert lex
inline int Parser::lex()
{
int res = d_scanner.lex();
d_val__ = STYPE__(d_scanner.matched());
return res;
}
inline void Parser::print()
{
print__(); // displays tokens if --print was specified
}
#if ( BISONCPP_VERSION >= 40200LL )
inline void Parser::exceptionHandler__(std::exception const &exc)
{
throw; // re-implement to handle exceptions thrown by actions
}
#endif
// Add here includes that are only required for the compilation
// of Parser's sources.
// UN-comment the next using-declaration if you want to use
// int Parser's sources symbols from the namespace std without
// specifying std::
//using namespace std;