view graal/com.oracle.truffle.sl.test/tests/CalcShell.input @ 16067:915ebb306fcc

Truffle/Source: major API revision - All source-related classes now in com.oracle.truffle.api.source - SourceFactory replaced with factory methods on Source - Revision, renaming, and documentation to methods on Source and SourceSection - NullSourceSection is now a utility class
author Michael Van De Vanter <michael.van.de.vanter@oracle.com>
date Fri, 06 Jun 2014 17:51:47 -0700
parents b16ec83edc73
children
line wrap: on
line source

i
80
c
return cur + i;
r
c
if (i <= 2) { return 1; } else { return prev + cur; }
r
i
100
r
c
if (i == 0) { return 1; } else { return cur * i; }
r
x