Skip to content
Snippets Groups Projects
Select Git revision
  • 068bb6df64bfb4e3d2cccd63e3bf6f46e4f6a54e
  • main default protected
2 results

system.flist

Blame
  • Forked from SoCLabs / Accelerator Project
    Source project has a limited visibility.
    IncrParser.java 384 B
    public class IncrParser extends Unary {
    
    
        public IncrParser() {
            super("incr");
        }
    
    
        @Override
        public void _execute() throws OperationError {
            setNewValue(getInterpreter().executeIncr(getVariable(0)));
        }
    
        @Override
        public String getChangeMessage() {
            return getVariableString(getVariable()) + "incremented to " + getNewValue();
        }
    }