Some formatting

This commit is contained in:
Windel Bouwman
2018-08-22 17:01:54 +02:00
parent 4897e10714
commit fb69804a30

View File

@@ -42,7 +42,8 @@ pub fn compile(
Mode::Single => match parser::parse_program(source) {
Ok(ast) => {
for statement in ast.statements {
if let &ast::StatementType::Expression { ref expression } = &statement.statement {
if let &ast::StatementType::Expression { ref expression } = &statement.statement
{
compiler.compile_expression(expression);
compiler.emit(Instruction::PrintExpr);
} else {