Skip to content

Commit

Permalink
string type
Browse files Browse the repository at this point in the history
  • Loading branch information
yinwang0 committed Feb 4, 2014
1 parent d6bc6dc commit c677e9d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/java/org/yinwang/yin/Scope.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
package org.yinwang.yin;


import org.yinwang.yin.value.BoolType;
import org.yinwang.yin.value.BoolValue;
import org.yinwang.yin.value.IntType;
import org.yinwang.yin.value.Value;
import org.yinwang.yin.value.*;
import org.yinwang.yin.value.primitives.*;

import java.util.LinkedHashMap;
Expand Down Expand Up @@ -134,6 +131,7 @@ public static Scope buildInitScope() {

init.putValue("Int", new IntType());
init.putValue("Bool", new BoolType());
init.putValue("String", new StringType());

return init;
}
Expand Down
8 changes: 8 additions & 0 deletions src/main/java/org/yinwang/yin/value/StringType.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package org.yinwang.yin.value;


public class StringType extends Value {
public String toString() {
return "String";
}
}

0 comments on commit c677e9d

Please sign in to comment.