mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
Some formatting
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user