diff graal/com.oracle.truffle.sl.test/tests/String.sl @ 13821:b16ec83edc73

Documentation and more refactoring of Simple Language
author Christian Wimmer <christian.wimmer@oracle.com>
date Wed, 29 Jan 2014 20:45:43 -0800
parents
children ff3136ecb5a7
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/graal/com.oracle.truffle.sl.test/tests/String.sl	Wed Jan 29 20:45:43 2014 -0800
@@ -0,0 +1,18 @@
+function null() {
+}
+
+function foo() {
+  return "bar";
+}
+
+function main() {  
+  println("s" + null());  
+  println("s" + null);  
+  println("s" + foo());  
+  println("s" + foo);
+    
+  println(null() + "s");  
+  println(null() + "s");  
+  println(foo() + "s");  
+  println(foo + "s");
+}