-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathParser.h
37 lines (29 loc) · 996 Bytes
/
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
// Generated by Bisonc++ V4.09.02 on Wed, 28 Oct 2015 08:24:48 +0100
#ifndef Parser_h_included
#define Parser_h_included
// $insert baseclass
#include "Parserbase.h"
#include "FlexLexer.h"
#include <cstdlib>
#undef Parser
class Parser: public ParserBase
{
public:
Parser( std::istream & in ) : lexer( &in, &std::cerr ) {}
int parse();
private:
yyFlexLexer lexer;
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__();
void exceptionHandler__(std::exception const &exc);
std::map<std::string,kifejezes_leiro> szimbolumtabla;
};
#endif