Static method in SET has been refactored

This commit is contained in:
Mike Cifelli 2017-02-28 15:04:40 -05:00
parent 05f75b627b
commit ab17d4c60e
1 changed files with 3 additions and 3 deletions

View File

@ -7,13 +7,13 @@ import table.*;
@FunctionNames({ "SET" }) @FunctionNames({ "SET" })
public class SET extends LispFunction { public class SET extends LispFunction {
private ArgumentValidator argumentValidator;
private ExecutionContext executionContext;
public static SExpression set(Cons argumentList) { public static SExpression set(Cons argumentList) {
return new SET().call(argumentList); return new SET().call(argumentList);
} }
private ArgumentValidator argumentValidator;
private ExecutionContext executionContext;
public SET() { public SET() {
this.argumentValidator = new ArgumentValidator("SET"); this.argumentValidator = new ArgumentValidator("SET");
this.argumentValidator.setExactNumberOfArguments(2); this.argumentValidator.setExactNumberOfArguments(2);