Some formatting

This commit is contained in:
Windel Bouwman committed 2018-08-22 17:01:54 +02:00
1 parent 4897e10714
commit fb69804a30
1 file changed
+2 -1
+2 -1
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 {