Mercurial > hg > truffle
comparison graal/com.oracle.truffle.sl.test/tests/DefineFunction.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 | e34d5cca7496 |
children |
comparison
equal
deleted
inserted
replaced
13820:20e7727588e8 | 13821:b16ec83edc73 |
---|---|
1 function foo() { | 1 function foo() { |
2 print(test(40, 2)); | 2 println(test(40, 2)); |
3 } | 3 } |
4 | 4 |
5 function main() { | 5 function main() { |
6 defineFunction("function test(a, b) { return a + b; }"); | 6 defineFunction("function test(a, b) { return a + b; }"); |
7 foo(); | 7 foo(); |