diff --git a/generator.v b/generator.v index af8b4ba..6df6577 100644 --- a/generator.v +++ b/generator.v @@ -176,24 +176,14 @@ fn (mut g Generator) gen_expr(expr Expr) { label := g.get_print_label(inner_expr); if g.symbols.lookup_class(expr_type) != none { class_name := mangle_struct(expr_type) - /*if label != "" { - g.out.write_string('${label}: ");') - }*/ g.out.write_string('print_${class_name}(') g.gen_expr(inner_expr) g.out.write_string(', 0);') } else { g.out.write_string('printf(\"') dump(label); - if label != "" { - g.out.write_string('(${label}') - g.out.write_string(': '); - } format := get_type_format(expr_type) g.out.write_string('%${format}') - if label != "" { - g.out.write_string(')') - } g.out.write_string('\", ') g.gen_expr(inner_expr) g.out.write_string(');') diff --git a/one b/one new file mode 100755 index 0000000..f14621c Binary files /dev/null and b/one differ