Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.sl.test/src/com/oracle/truffle/sl/test/LoopPrintTest.java @ 12752:71991b7a0f14
SL: Enhanced SimpleLanguage with support for if statements, function calls, function caching + inlining and builtins.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 11 Nov 2013 21:34:44 +0100 |
parents | 07f8d136a05e |
children |
comparison
equal
deleted
inserted
replaced
12712:882a0aadfed6 | 12752:71991b7a0f14 |
---|---|
31 "function main { ", | 31 "function main { ", |
32 " i = 0; ", | 32 " i = 0; ", |
33 " while (i < 1000) { ", | 33 " while (i < 1000) { ", |
34 " i = i + 1; ", | 34 " i = i + 1; ", |
35 " } ", | 35 " } ", |
36 " print i; ", | 36 " print(i); ", |
37 "} ", | 37 "} ", |
38 }; | 38 }; |
39 | 39 |
40 private static String[] OUTPUT = new String[] { | 40 private static String[] OUTPUT = new String[] { |
41 "1000", | 41 "1000", |