-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.c
More file actions
35 lines (27 loc) · 645 Bytes
/
main.c
File metadata and controls
35 lines (27 loc) · 645 Bytes
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
/**
* @project IFJ17
* @file main.c
* @author Jan Bartosek (xbarto92)
* @author Petr Sopf (xsopfp00)
* @author Roman Bartl (xbartl06)
* @brief Main project file
*/
#include <stdio.h>
#include "scanner.h"
#include "error_codes.h"
#include "parser.h"
#include "garbage_collector.h"
#include "generator.h"
int main(int argc, char **argv) {
if (argc != 1) {
printErrAndExit(ERROR_INTERNAL, "Bad usage! Just call ./ifj2017 without arguments!");
return ERROR_INTERNAL;
}
gcInit();
(void) argv;
//initialization of symtable
btInit(&symtable);
program();
startGenerating();
return 0;
}