Match all instructions without arguments

This commit is contained in:
2021-12-30 22:47:16 +01:00
committed by Raymon Zutekouw
parent ea54bb404d
commit 764b2d17b9
2 changed files with 20 additions and 0 deletions
+12
View File
@@ -118,6 +118,18 @@ fn instruct(statement: Pair<Rule>, out: &mut Builder) {
println!("Copy to variable '{}'", variable_name);
out.append("copy\n");
}
Rule::setz => {
println!("Set current variable to zero");
out.append("setz\n");
}
Rule::getchr => {
println!("Reading char from user input into current variable");
out.append("getchr\n");
}
Rule::print => {
println!("Printing current variable");
out.append("print\n");
}
Rule::instruction => {
out.append("\n");
}