feat: execute conditionals through typed IR
Use typed singleton arrays for braceless arm blocks: &[statement] compiled but trapped under the Bro bootstrap.
This commit is contained in:
@@ -144,6 +144,7 @@ print_result proc(output io.Writer, value ir.Value) void ! io.WriteError {
|
||||
match value.type {
|
||||
.int: try io.print("{}\n", output, {value.data.integer})
|
||||
.float: try io.print("{d}\n", output, {value.data.real})
|
||||
.bool: try io.print("{}\n", output, {value.data.boolean})
|
||||
.string: try io.print("{s}\n", output, {value.data.string})
|
||||
.void: {}
|
||||
else: unreachable
|
||||
|
||||
Reference in New Issue
Block a user