diff options
Diffstat (limited to 'include/parse.h')
-rw-r--r-- | include/parse.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/include/parse.h b/include/parse.h index d3cee83..8cc4985 100644 --- a/include/parse.h +++ b/include/parse.h @@ -49,6 +49,7 @@ struct ast_const_global { struct ast_path { const char **segments; + int len, cap; }; struct ast_import { @@ -71,14 +72,11 @@ struct ast_toplevel { } decl; }; -struct ast_subunit { - struct ast_import *imports; - struct ast_toplevel tops[]; -}; - struct ast_unit { - struct ast_subunit *root; - struct ast_subunit imports[]; + struct ast_import *imports; + struct ast_toplevel *tops; + int impsz, implen; + int topsz, toplen; }; void parse(struct lexer *lexer, struct ast_unit *ast); |