-
Notifications
You must be signed in to change notification settings - Fork 0
/
Parser.ih
44 lines (31 loc) · 1.01 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
// Generated by Bisonc++ V5.02.00 on Sun, 24 Nov 2019 21:11:07 +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 << std::endl;
}
// $insert lex
inline int Parser::lex()
{
int ret = lexer.yylex();
d_loc__.first_line = lexer.lineno();
if( ret == Parser::AZONOSITO )
d_val__.szoveg = new std::string(lexer.YYText());
return ret;
}
inline void Parser::print()
{
print__(); // displays tokens if --print was specified
}
inline void Parser::exceptionHandler__(std::exception const &exc)
{
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;