parse arithmetic binary expressions

This commit is contained in:
2026-08-10 23:35:10 +02:00
parent 891dc6516e
commit 8dd06afde2
10 changed files with 358 additions and 120 deletions
+1 -1
View File
@@ -217,7 +217,7 @@ parse_format proc($N usize, $format []u8, $Args type) [N]mut FormatToken {
token_count := 0
argument_count := 0
literal_start := 0
cursor usize := 0
cursor := 0
while cursor < format.len {
byte :: format[cursor]
if byte == '{' {
+2 -2
View File
@@ -73,10 +73,10 @@ expect_type proc($Expected, $Actual type, _ Actual, location SourceLocation) voi
run proc(name []u8, callback *proc() void ! Error) bool {
callback() catch |_| {
debug.print("{s}...[failed]\n", {name,})
debug.print("{s} ... [\x1b[91mfailed\x1b[0m]\n", {name})
return false
}
debug.print("{s}...[ok]\n", {name,})
debug.print("{s} ... [\x1b[92mok\x1b[0m]\n", {name})
return true
}