2019-12-22 17:33:30 +00:00
|
|
|
package serene.simple.builtin;
|
|
|
|
|
|
|
|
import serene.simple.BaseScope;
|
|
|
|
|
|
|
|
|
|
|
|
public class QuitFn extends AFn {
|
|
|
|
public String fnName() {
|
2019-12-24 17:31:45 +00:00
|
|
|
return "quit";
|
2019-12-22 17:33:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
public Object eval(BaseScope scope) {
|
|
|
|
System.exit(0);
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|