summaryrefslogtreecommitdiff
path: root/05/main.b
diff options
context:
space:
mode:
Diffstat (limited to '05/main.b')
-rw-r--r--05/main.b12
1 files changed, 6 insertions, 6 deletions
diff --git a/05/main.b b/05/main.b
index 4632338..c512e6d 100644
--- a/05/main.b
+++ b/05/main.b
@@ -95,14 +95,16 @@ global powers_of_10
global types
global types_bytes_used
+; ident list of type IDs
+global typedefs
#include util.b
+#include idents.b
#include constants.b
#include preprocess.b
#include tokenize.b
#include parse.b
-
function main
argument argv2
argument argv1
@@ -118,6 +120,8 @@ function main
local i
fill_in_powers_of_10()
+ typedefs = ident_list_create(100000)
+
dat_banned_objmacros = 255
dat_banned_fmacros = 255
@@ -170,11 +174,7 @@ function main
print_tokens(tokens, p)
; NOTE: do NOT free pptokens as identifiers still reference them.
- ast = malloc(56000000)
- p -= 16
- parse_expression(tokens, p, ast)
- print_expression(ast)
- putc(10)
+ parse_tokens(tokens)
exit(0)