From 748371f2ce25f269a4fafc74ca0bb19765448a05 Mon Sep 17 00:00:00 2001 From: Ian Johnson Date: Sun, 7 Apr 2024 14:14:27 -0400 Subject: [PATCH] feat: rename float32/64 to f32/64 See https://github.com/WebAssembly/component-model/pull/324 --- src/Ast.zig | 8 ++++---- src/Parser.zig | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Ast.zig b/src/Ast.zig index ae9cd0a..2dcf97b 100644 --- a/src/Ast.zig +++ b/src/Ast.zig @@ -73,8 +73,8 @@ pub const Token = struct { s16, s32, s64, - float32, - float64, + f32, + f64, char, bool, string, @@ -129,8 +129,8 @@ pub const Token = struct { .{ "s16", .s16 }, .{ "s32", .s32 }, .{ "s64", .s64 }, - .{ "float32", .float32 }, - .{ "float64", .float64 }, + .{ "f32", .f32 }, + .{ "f64", .f64 }, .{ "char", .char }, .{ "bool", .bool }, .{ "string", .string }, diff --git a/src/Parser.zig b/src/Parser.zig index 3246dac..228143d 100644 --- a/src/Parser.zig +++ b/src/Parser.zig @@ -739,8 +739,8 @@ fn parseType(p: *Parser) !Node.Index { .s16, .s32, .s64, - .float32, - .float64, + .f32, + .f64, .char, .bool, .string,