diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-09-21 13:38:27 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-09-21 13:38:27 -0400 |
| commit | 7204970fccd5f1903c38b97c9c0778892c44fdfe (patch) | |
| tree | db3e4afa89834c9387ac686f49ab5f777f63ed28 /src/ast.h | |
| parent | e419a527a1212123946e53adaaea01df0c5605c3 (diff) | |
Got inlne enums working in most places
Diffstat (limited to 'src/ast.h')
| -rw-r--r-- | src/ast.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -91,6 +91,7 @@ typedef enum { } type_ast_e; typedef struct tag_ast_s { + file_t *file; const char *start, *end; const char *name; arg_ast_t *fields; @@ -503,3 +504,5 @@ void visit_topologically(ast_list_t *ast, Closure_t fn); CONSTFUNC bool is_update_assignment(ast_t *ast); CONSTFUNC ast_e binop_tag(ast_e tag); CONSTFUNC bool is_binary_operation(ast_t *ast); +void ast_visit(ast_t *ast, void (*visitor)(ast_t *, void *), void *userdata); +void type_ast_visit(ast_t *ast, void (*visitor)(type_ast_t *, void *), void *userdata); |
