summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2019-09-27 23:34:29 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2019-09-27 23:34:29 -0400
commit991d739bb02b3506da5a0af0edd9a4fd505373a3 (patch)
tree75b32cd37e9a99f5609171f2a9156d2f2dc3f13f /main.c
parent685460f382e2e7039bd6ddf5c336abdb803a0372 (diff)
added converter from named arguments to non-named
Diffstat (limited to 'main.c')
-rw-r--r--main.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/main.c b/main.c
index 7375c89..6dc7f4d 100644
--- a/main.c
+++ b/main.c
@@ -2,8 +2,11 @@
TODO:
named args
optional params
+char type
+string constants are []char
evaluator (simplify compile time constant expressions)
re-do cgen
+any odd number of "s for a string
*/
#include "toc.c"
@@ -61,13 +64,16 @@ int main(int argc, char **argv) {
return EXIT_FAILURE;
}
+ fprint_parsed_file(stdout, &f);
+
+ printf("\n\n-----\n\n");
block_enter(NULL, &f.stmts); /* enter global scope */
if (!types_file(&f)) {
err_fprint(TEXT_IMPORTANT("Errors occured while determining types.\n"));
return EXIT_FAILURE;
}
-
+ parse_printing_after_types = true;
fprint_parsed_file(stdout, &f);
tokr_free(&t);