Closed kamisori closed 1 year ago
so, previously: emit-declaration and emit-block were emitting ";\n" emit-block uses emit-statement uses emit-declaration -> if you had no expression to assign to your declaration you would end up with a superfluous semicolon
here, i moved the ";\n" from emit-declaration to do-declare, the only other caller of emit-declaration, aside emit-statement.
i feel if this breaks do-declare, it should be fixed in do-declare... like adding a (print ";") there, but emit-statement is only called by emit-block which already emits a semicolon