forked from n3tael/labast
1.13
This commit is contained in:
parent
48b53dc991
commit
5accf66180
@ -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.
|
@ -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);
|
||||
}
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user