Print other Rules to stdout

- Entire parsed file in readable form to stdout
Raymon Zutekouw 4 years ago committed by Raymon Zutekouw
parent 974c6b8021
commit 29ed49b554
No known key found for this signature in database
GPG Key ID: E62222846283925
  1. 3
      src/main.rs

@ -89,12 +89,15 @@ fn instruct(statement: Pair<Rule>, out: &mut Builder) {
}
}
Rule::loopBlockStart => {
println!("Start of loopBlock");
out.append("loopBlockStart\n");
}
Rule::loopBlockEnd => {
println!("End of loopBlock");
out.append("loopBlockEnd\n");
}
Rule::EOI => {
println!("End of Input");
out.append("\n");
}
_ => unreachable!(),

Loading…
Cancel
Save