comparison examples/dump_ecl.rs @ 727:eea03c9ca604

dump_ecl: Add newlines between blocks.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 30 Oct 2019 16:27:20 +0100
parents 28e6332b088d
children 4d91790cf8ab
comparison
equal deleted inserted replaced
726:187359932584 727:eea03c9ca604
40 println!("Main {} {{", i); 40 println!("Main {} {{", i);
41 for call in main.instructions.iter() { 41 for call in main.instructions.iter() {
42 print_main_instruction(call); 42 print_main_instruction(call);
43 } 43 }
44 println!("}}"); 44 println!("}}");
45 println!();
45 } 46 }
46 47
47 for (i, sub) in ecl.subs.iter().enumerate() { 48 for (i, sub) in ecl.subs.iter().enumerate() {
48 println!("Sub {} {{", i); 49 println!("Sub {} {{", i);
49 for call in sub.instructions.iter() { 50 for call in sub.instructions.iter() {
50 print_sub_instruction(call); 51 print_sub_instruction(call);
51 } 52 }
52 println!("}}"); 53 println!("}}");
54 println!();
53 } 55 }
54 } 56 }