aboutsummaryrefslogtreecommitdiff
path: root/src/parse/numbers.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2026-01-11 20:06:45 -0500
committerBruce Hill <bruce@bruce-hill.com>2026-01-11 20:06:45 -0500
commitb97ea6b6ac3498b21321e1f93ccc1a2dd145e9d7 (patch)
tree834180f2c5a2ad29424279153d01c2bd52679823 /src/parse/numbers.c
parent573656fce2b7e1b0fc36944f60fd135117b6bbb6 (diff)
Rename AST nodes: Int -> Integer, Num -> Number
Diffstat (limited to 'src/parse/numbers.c')
-rw-r--r--src/parse/numbers.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/parse/numbers.c b/src/parse/numbers.c
index 4e746525..1ab774b4 100644
--- a/src/parse/numbers.c
+++ b/src/parse/numbers.c
@@ -40,13 +40,13 @@ ast_t *parse_int(parse_ctx_t *ctx, const char *pos) {
if (match(&pos, "%")) {
double n = strtod(str, NULL) / 100.;
- return NewAST(ctx->file, start, pos, Num, .n = n);
+ return NewAST(ctx->file, start, pos, Number, .n = n);
} else if (match(&pos, "deg")) {
double n = strtod(str, NULL) * RADIANS_PER_DEGREE;
- return NewAST(ctx->file, start, pos, Num, .n = n);
+ return NewAST(ctx->file, start, pos, Number, .n = n);
}
- return NewAST(ctx->file, start, pos, Int, .str = str);
+ return NewAST(ctx->file, start, pos, Integer, .str = str);
}
ast_t *parse_num(parse_ctx_t *ctx, const char *pos) {
@@ -77,5 +77,5 @@ ast_t *parse_num(parse_ctx_t *ctx, const char *pos) {
if (match(&pos, "%")) d /= 100.;
else if (match(&pos, "deg")) d *= RADIANS_PER_DEGREE;
- return NewAST(ctx->file, start, pos, Num, .n = d);
+ return NewAST(ctx->file, start, pos, Number, .n = d);
}