Commit 809d0ce8 authored by Benoît Simonneaux's avatar Benoît Simonneaux

compiler/parser: Export debug_decl().

parent 6dfa6f13
......@@ -694,7 +694,7 @@ int destroy_decl(struct bm_ast_decl *decl)
return 0;
}
static int debug_decl(const struct bm_ast_decl *decl, int indent_lvl)
int debug_decl(const struct bm_ast_decl *decl, int indent_lvl)
{
wprintf(L",\n%*ls\"name\": \"%ls\"", indent_lvl * 2, L"", decl->name);
wprintf(L",\n%*ls\"decl_type\": \"", indent_lvl * 2, L"");
......
......@@ -46,6 +46,7 @@ extern int debug_type(const struct bm_ast_type *type);
extern int parse_type(struct parser_ctx *ctx, unsigned long *cur_tok_id, struct bm_ast_type *out);
extern int parser_node_init_unknown(struct bm_ast_node *node);
extern int destroy_decl(struct bm_ast_decl *decl);
extern int debug_decl(const struct bm_ast_decl *decl, int indent_lvl);
extern int parse_decl(struct parser_ctx *ctx, unsigned long *cur_tok_id, struct bm_ast_decl *out);
extern int parse_block(struct parser_ctx *ctx, unsigned long *cur_tok_id, struct bm_ast_node *out);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment