summaryrefslogtreecommitdiff
path: root/Driver.hh
blob: 5f0d18da92433b2e207349828a37d3ecdff8ee3d (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
#ifndef PCC_DRIVER_H
#define PCC_DRIVER_H

#include <cstdio>

#include "Context.hh"
#include "Location.hh"

namespace pcc {
class Driver {
  public:
    Driver(Context* context);
    ~Driver();
    int StartLexer(std::string& filename);
    void StopLexer();
    void Parse(std::string& filename);
    llvm::Module* GetModule();
    llvm::IRBuilder<>* GetBuilder();
    Location location_;

    Context* context_;
};
} // namespace pcc

#endif