Print other Rules to stdout

- Entire parsed file in readable form to stdout
This commit is contained in:
2021-12-30 14:28:08 +01:00
committed by Raymon Zutekouw
parent 974c6b8021
commit 29ed49b554
+3
View File
@@ -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!(),