-
Notifications
You must be signed in to change notification settings - Fork 26
/
parser.ih
53 lines (40 loc) · 1.14 KB
/
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
45
46
47
48
49
50
51
52
53
// Generated by Bisonc++ V6.02.04 on Sun, 20 Oct 2019 22:27:51 +0200
// Include this file in the sources of the class Parser.
// $insert class.h
#include "parser.h"
#if ( BISONCPP_VERSION >= 60000LL )
inline void Parser::error()
#else
inline void Parser::error(char const *msg)
#endif
{
std::cerr << "Syntax error on line " << d_scanner.lineNr() << std::endl;
}
// $insert lex
inline int Parser::lex()
{
int res = d_scanner.lex();
#if ( BISONCPP_VERSION >= 60000LL )
d_val_ = STYPE_(d_scanner.matched());
#else
d_val__ = STYPE__(d_scanner.matched());
#endif
return res;
}
inline void Parser::print()
{
}
#if ( BISONCPP_VERSION >= 60000LL )
inline void Parser::exceptionHandler(std::exception const &exc)
#else
inline void Parser::exceptionHandler__(std::exception const &exc)
#endif
{
throw; // re-implement to handle exceptions thrown by actions
}
// 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;