Skip to content
Browse files

Add nil to Ground, similar to true and false.

  • Loading branch information...
1 parent 0b8d22a commit f1e95124fb3518da8582d48041f8a47771035a26 @JoergWMittag committed Mar 4, 2011
Showing with 14 additions and 0 deletions.
  1. +3 −0 src/main/seph/lang/Ground.java
  2. +11 −0 src/main/seph/lang/Runtime_nil.java
View
3 src/main/seph/lang/Ground.java
@@ -39,6 +39,9 @@
@SephCell(name="false")
public final static SephObject Runtime_false = null;
+ @SephCell(name="nil")
+ public final static SephObject Runtime_nil = null;
+
@SephMethod
public final static SephObject asText(SephObject receiver) {
return new Text(receiver.toString());
View
11 src/main/seph/lang/Runtime_nil.java
@@ -0,0 +1,11 @@
+/*
+ * See LICENSE file in distribution for copyright and licensing information.
+ */
+package seph.lang;
+
+/**
+ * @author <a href="mailto:ola.bini@gmail.com">Ola Bini</a>
+ */
+public class Runtime_nil {
+ public final static SephObject instance = Runtime.NIL;
+}// Runtime_nil

0 comments on commit f1e9512

Please sign in to comment.
Something went wrong with that request. Please try again.