Select Git revision
DecrParser.java
-
p9malino26 authoredp9malino26 authored
DecrParser.java 387 B
public class DecrParser extends Unary {
public DecrParser() {
super("decr");
}
@Override
public void _execute() throws OperationError {
setNewValue(getInterpreter().executeDecr(getVariable()));
}
@Override
public String getChangeMessage() {
return "Decremented " + getVariableString(getVariable()) + "to " + getNewValue();
}
}