start typedefs

This commit is contained in:
pommicket 2022-01-18 16:29:48 -05:00
parent 857d5552fc
commit c4b15b98bb
4 changed files with 92 additions and 12 deletions

View file

@ -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)