Mercurial > hg > truffle
diff graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/SLMain.java @ 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 | 09ac9ac9c4fc |
children | abe7128ca473 |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/SLMain.java Fri Jun 06 21:36:56 2014 +0200 +++ b/graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/SLMain.java Fri Jun 06 17:51:47 2014 -0700 @@ -123,9 +123,9 @@ Source source; if (args.length == 0) { - source = SourceFactory.fromReader(new InputStreamReader(System.in), "stdin"); + source = Source.fromReader(new InputStreamReader(System.in), "stdin"); } else { - source = SourceFactory.fromFile(args[0]); + source = Source.fromFileName(args[0]); } int repeats = 1;