aboutsummaryrefslogtreecommitdiff
path: root/ast.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-03-06 18:37:08 -0500
committerBruce Hill <bruce@bruce-hill.com>2025-03-06 18:37:08 -0500
commit73e559fbe4182828742ac1b1d108bcdc42bc46d6 (patch)
tree22c4d6245114cf3ba72701dafe18b84ce72e3f66 /ast.h
parent09423f6d42d86c62beefa4607fba41e3698f1850 (diff)
Support 'when' for literal values with equality checking
Diffstat (limited to 'ast.h')
-rw-r--r--ast.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/ast.h b/ast.h
index dbc14ece..2e398125 100644
--- a/ast.h
+++ b/ast.h
@@ -52,9 +52,7 @@ typedef struct arg_ast_s {
} arg_ast_t;
typedef struct when_clause_s {
- ast_t *tag_name;
- ast_list_t *args;
- ast_t *body;
+ ast_t *pattern, *body;
struct when_clause_s *next;
} when_clause_t;