Print other Rules to stdout

- Entire parsed file in readable form to stdout
rewrite/grammar-implicit-whitespace
Raymon Zutekouw 2 years ago
parent 257942e5dc
commit c1adc81ab8
No known key found for this signature in database
GPG Key ID: 1E9BCC39EDD1DD53
  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