diff --git a/generator.v b/generator.v index 27e34aa..af8b4ba 100644 --- a/generator.v +++ b/generator.v @@ -186,17 +186,21 @@ fn (mut g Generator) gen_expr(expr Expr) { g.out.write_string('printf(\"') dump(label); if label != "" { - g.out.write_string('${label}') + g.out.write_string('(${label}') g.out.write_string(': '); } format := get_type_format(expr_type) - g.out.write_string('%${format}\", ') + g.out.write_string('%${format}') + if label != "" { + g.out.write_string(')') + } + g.out.write_string('\", ') g.gen_expr(inner_expr) g.out.write_string(');') } i++; if i < expr.exprs.len { - g.out.write_string('printf(\", \");') + g.out.write_string('printf(\" \");') } } g.out.write_string('printf(\"\\n\");\n') diff --git a/one b/one deleted file mode 100755 index 6507480..0000000 Binary files a/one and /dev/null differ