diff --git a/src/main/php/lang/ast/Emitter.class.php b/src/main/php/lang/ast/Emitter.class.php index 78cb79d5..987a532f 100755 --- a/src/main/php/lang/ast/Emitter.class.php +++ b/src/main/php/lang/ast/Emitter.class.php @@ -148,9 +148,9 @@ public function emitOne($result, $node) { $this->{'emit'.$r->kind}($result, $r); return; } else if ($r) { - foreach ($r as $n) { + foreach ($r as $s => $n) { $this->{'emit'.$n->kind}($result, $n); - $result->out->write(';'); + null === $s || $result->out->write(';'); } return; }