-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathci.c
More file actions
25 lines (23 loc) · 717 Bytes
/
Copy pathci.c
File metadata and controls
25 lines (23 loc) · 717 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
/**************************************************************************
* C S 429 EEL interpreter
*
* ci.c - The top-level loop of the interpreter.
*
* Copyright (c) 2021. S. Chatterjee, X. Shen, T. Byrd. All rights reserved.
* May not be used, modified, or copied without permission.
**************************************************************************/
#include "ci.h"
int main(int argc, char* argv[]) {
handle_args(argc, argv);
init();
while (! terminate) {
ignore_input = false;
node_t *nptr = read_and_parse();
infer_and_eval(nptr);
format_and_print(nptr);
cleanup(nptr);
flush();
}
finalize();
return EXIT_SUCCESS;
}