diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-08-25 19:11:17 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-08-25 19:11:17 -0400 |
| commit | 247043eae0ad88b1833d6a64e7ded130605dd83a (patch) | |
| tree | c7e6334ffd9aa71c9b5de7f8f23fc492f823f0c4 /src/ast.h | |
| parent | e927a088be671a003b8e4816a4a963243c0b61aa (diff) | |
Better support for binops in formatter
Diffstat (limited to 'src/ast.h')
| -rw-r--r-- | src/ast.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -274,6 +274,7 @@ typedef enum { Extend, ExplicitlyTyped, } ast_e; +#define NUM_AST_TAGS (ExplicitlyTyped + 1) struct ast_s { ast_e tag; @@ -473,6 +474,8 @@ struct ast_s { } __data; }; +extern const int op_tightness[NUM_AST_TAGS]; + const char *ast_source(ast_t *ast); Text_t ast_to_sexp(ast_t *ast); |
