aboutsummaryrefslogtreecommitdiff
path: root/src/ast.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-08-25 19:11:17 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-08-25 19:11:17 -0400
commit247043eae0ad88b1833d6a64e7ded130605dd83a (patch)
treec7e6334ffd9aa71c9b5de7f8f23fc492f823f0c4 /src/ast.h
parente927a088be671a003b8e4816a4a963243c0b61aa (diff)
Better support for binops in formatter
Diffstat (limited to 'src/ast.h')
-rw-r--r--src/ast.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ast.h b/src/ast.h
index 8facc202..30c413ca 100644
--- a/src/ast.h
+++ b/src/ast.h
@@ -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);