Mercurial > hg > graal-compiler
comparison 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 |
comparison
equal
deleted
inserted
replaced
13820:20e7727588e8 | 13821:b16ec83edc73 |
---|---|
1 function null() { | |
2 } | |
3 | |
4 function foo() { | |
5 return "bar"; | |
6 } | |
7 | |
8 function main() { | |
9 println("s" + null()); | |
10 println("s" + null); | |
11 println("s" + foo()); | |
12 println("s" + foo); | |
13 | |
14 println(null() + "s"); | |
15 println(null() + "s"); | |
16 println(foo() + "s"); | |
17 println(foo + "s"); | |
18 } |