Skip to content

Commit

Permalink
Fixed FOR ast printing.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Nov 17, 2017
1 parent 61a3855 commit 04fba0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mojobasic_compiler.cpp
Expand Up @@ -367,9 +367,10 @@ class AstPrinterVisitor : public AstVisitor
printf(" STEP ");
node->step->accept(this);
}
printf("\n");
node->block->accept(this);
printIndent();
printf("END FOR\n");
printf("NEXT\n");
}

virtual void visit(AstCase *node) {
Expand Down

0 comments on commit 04fba0d

Please sign in to comment.