diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-08-26 14:39:11 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-08-26 14:39:11 -0400 |
| commit | d25d5642392f93623d1eb4d11156d293fe6df546 (patch) | |
| tree | b14e5422d459a62ec086e06d23a81f93c478bd60 /src/parse | |
| parent | 4715487a4be9f03ad58cb3199e95573e262f6387 (diff) | |
Formatting for min/max and cleanup for ints/nums
Diffstat (limited to 'src/parse')
| -rw-r--r-- | src/parse/binops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse/binops.c b/src/parse/binops.c index 80bd7dd5..4676b249 100644 --- a/src/parse/binops.c +++ b/src/parse/binops.c @@ -67,7 +67,7 @@ ast_t *parse_infix_expr(parse_ctx_t *ctx, const char *pos, int min_tightness) { for (ast_e op; (op = match_binary_operator(&pos)) != Unknown && op_tightness[op] >= min_tightness; spaces(&pos)) { ast_t *key = NULL; if (op == Min || op == Max) { - key = NewAST(ctx->file, pos, pos, Var, .name = "$"); + key = NewAST(ctx->file, pos, pos, Var, .name = (op == Min ? "_min_" : "_max_")); for (bool progress = true; progress;) { ast_t *new_term; progress = |
