repo.or.cz
/
knight_shuffling_tower.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add license
[knight_shuffling_tower.git]
/
kst.c
blob
2261d28923d5fbd47df6d055a27593b4c8572623
1
#include <stdio.h>
2
#include <stdlib.h>
3
#include <time.h>
4
5
#include
"ast.h"
6
#include
"parser.h"
7
#include
"execute.h"
8
#include
"hashmap.h"
9
10
int
main
(
int
argc
,
char
**
argv
)
11
{
12
if
(
argc
!=
2
) {
13
fprintf
(
stderr
,
"Usage: %s INPUT_FILE
\n
"
,
argv
[
0
]);
14
return
-
1
;
15
}
16
17
srand
(
time
(
NULL
));
18
hashmap_initialize
();
19
tower_initialize
();
20
21
evaluate
(
build
(
fopen
(
argv
[
1
],
"r"
)));
22
23
return
0
;
24
}