-
Notifications
You must be signed in to change notification settings - Fork 1
/
driver.hh
44 lines (32 loc) · 937 Bytes
/
driver.hh
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
#ifndef DRIVER_HH_
# define DRIVER_HH_
#include <string>
#include <iostream>
#include <cstddef>
#include <fstream>
#include <sstream>
namespace kabsa {
class Parser;
class Scanner;
class location;
class Driver {
public:
Driver(std::string input_file, std::string output_directory, std::string filename);
~Driver();
void reset();
int parse();
int parse_file(const std::string& path);
bool write_outfile(const std::stringstream& ss);
void set_output_directory(const std::string directory);
private:
Scanner* scanner_;
Parser* parser_;
location* location_;
std::string output_directory;
std::string input_file;
std::string filename;
friend class Parser;
friend class Scanner;
};
}
#endif