aboutsummaryrefslogtreecommitdiff
path: root/tools/driver/main.cc
blob: e83a408bb1ab8c1f0c1ae37ee66bdfc77bfdf8fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

#include "cps/Lexer.h"
#include "cps/Parser.h"
#include "cps/CodeGen.h"

int main() {
    cps::Lexer Lex;

    cps::Parser Parser(Lex);
    auto Statements = Parser.Parse();

    cps::CodeGen CG;
    CG.compile(Statements);

    CG.print();

    return 0;
}