-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
34 lines (29 loc) · 1.29 KB
/
main.cpp
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
/*******************************************************************************
* *
* Filename : main.cpp *
* Project : Test Project *
* Version : 1.0 *
* Author : Spiros Dontas *
* Email : spirosdontas@gmail.com *
* *
* Description : ... *
* *
*******************************************************************************/
#include <iostream>
#include <memory>
#include <symbol/types.hpp>
#include <symbol/entry.hpp>
#include <symbol/scope.hpp>
#include <symbol/table.hpp>
#include <ast/ast.hpp>
#include <parser/parser.hpp>
using namespace std;
const char * filename;
extern ast::astPtr parse();
int main(int argc, char *argv[]) {
filename = argv[1];
auto root = parse();
ast::semantic(root);
ast::codegen(root);
return 0;
}