blob: 4e029a91f0af7b2666c34d5356d48d28ff87fc45 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// synacor challenge ([email protected])
#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;
}
|