Last active
March 17, 2021 19:23
-
-
Save marler8997/e6797e2ba28d7eb37c2934e040693438 to your computer and use it in GitHub Desktop.
Infinite semantic analysis loop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| *"formatType @TypeOf(value)=", StringTree, *" fmt=", "{any}" | |
| *"formatType @TypeOf(value)=", []const u8, *" fmt=", "any" | |
| *"formatType @TypeOf(value)=", []StringTree, *" fmt=", any | |
| *"formatType @TypeOf(value)=", u64, *" fmt=", d | |
| *"formatType @TypeOf(value)=", []const u8, *" fmt=", s | |
| *"formatType @TypeOf(value)=", u8, *" fmt=", any | |
| *"formatType @TypeOf(value)=", StringTree, *" fmt=", any | |
| *"formatType @TypeOf(value)=", []const u8, *" fmt=", s | |
| *"formatType @TypeOf(value)=", []const u8, *" fmt=", s | |
| *"formatType @TypeOf(value)=", []const u8, *" fmt=", any | |
| *"formatType @TypeOf(value)=", []StringTree, *" fmt=", any | |
| *"formatType @TypeOf(value)=", []const u8, *" fmt=", s | |
| *"formatType @TypeOf(value)=", u64, *" fmt=", d | |
| *"formatType @TypeOf(value)=", u64, *" fmt=", d | |
| *"formatType @TypeOf(value)=", usize, *" fmt=", x | |
| *"formatType @TypeOf(value)=", []const u8, *" fmt=", s | |
| *"formatType @TypeOf(value)=", []const u8, *" fmt=", s | |
| *"formatType @TypeOf(value)=", u8, *" fmt=", any | |
| *"formatType @TypeOf(value)=", StringTree, *" fmt=", any | |
| *"formatType @TypeOf(value)=", u12, *" fmt=", d | |
| *"formatType @TypeOf(value)=", []const u8, *" fmt=", any | |
| *"formatType @TypeOf(value)=", []StringTree, *" fmt=", any |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const std = @import("std"); | |
pub const StringTree = struct { | |
str: []const u8, | |
children: []StringTree, | |
}; | |
test { | |
const tree : StringTree = undefined; | |
std.fmt.formatType(tree, "{any}", .{}, std.io.getStdErr().writer(), 3); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment