aboutsummaryrefslogtreecommitdiff
path: root/src/builder.h
blob: 9c146ea18251a3766420be36b8d10f25ae9c3780 (plain)
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
#ifndef BUILDER_H
#define BUILDER_H

#include <stdint.h>
#include <string>
#include "build.tab.h"

class Builder;

#define YY_DECL int yylex( YYSTYPE *yylval_param, YYLTYPE *yylloc_param, Builder &bld )
YY_DECL;

class Builder
{
public:
	Builder();
	virtual ~Builder();

	void error( YYLTYPE *locp, const char *msg );
	void error( const std::string &msg );

	void load( const std::string &sFile );

private:
	std::string file;
	void scanBegin();
	void scanEnd();

};

#endif