diff options
Diffstat (limited to '05/main.b')
-rw-r--r-- | 05/main.b | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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) |