This commit is contained in:
n3tael 2024-02-13 12:56:17 +02:00
parent 48b53dc991
commit 5accf66180
Signed by: n3tael
GPG Key ID: F305925762F035A8
2 changed files with 1 additions and 12 deletions

View File

@ -1,2 +1,2 @@
# Labast
A Labaski interpreter written in Rust. Fully supports Labashki specs 1.12.
A Labaski interpreter written in Rust. Fully supports Labashki specs 1.13.

View File

@ -34,17 +34,6 @@ fn find_prefix_operators(instruction: &mut Instruction, memory: &mut StackVec) {
instruction.name = instruction.name.chars().skip(1).collect();
instruction.data = memory.pop();
}
Some('^') => {
instruction.name = instruction.name.chars().skip(1).collect();
if instruction.name.chars().nth(0) != Some('#') {
println!("{0} {1}", instruction.name, instruction.data.to_string());
} else if instruction.arg.is_empty() {
println!("{}", instruction.name);
} else {
println!("{0} {1}", instruction.name, instruction.arg);
}
}
_ => {}
}
}