blob: 840c8dc3d1fc612429bb710551de13c92c381198 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// synacor challenge (@waffle87)
#include "vm.h"
Stack s;
Memory m;
int main(int argc, char **argv) {
if (argc < 2) {
fprintf(stderr, "usage: %s <challenge.bin>\n", argv[0]);
return EXIT_FAILURE;
}
stack_init(&s);
mem_init(&m);
int res = parse(argv[1]);
mem_free(&m);
stack_free(&s);
return res;
}
|