comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/SLMain.java @ 21481:bb51b9a142b3

Enforcing public, one parameter constructor for each TruffleLanguage by annotation processor and required call to super.
author Jaroslav Tulach <jaroslav.tulach@oracle.com>
date Mon, 25 May 2015 12:26:53 +0200
parents 286aef83a9a7
children 3286fb5fea4a b1530a6cce8c
comparison
equal deleted inserted replaced
21480:c2b006c5e15f 21481:bb51b9a142b3
132 */ 132 */
133 @TruffleLanguage.Registration(name = "sl", mimeType = "application/x-sl") 133 @TruffleLanguage.Registration(name = "sl", mimeType = "application/x-sl")
134 public class SLMain extends TruffleLanguage { 134 public class SLMain extends TruffleLanguage {
135 private final SLContext context; 135 private final SLContext context;
136 136
137 public SLMain() { 137 public SLMain(Env env) {
138 super(env);
138 this.context = SLContextFactory.create(new BufferedReader(new InputStreamReader(System.in)), new PrintWriter(System.out)); 139 this.context = SLContextFactory.create(new BufferedReader(new InputStreamReader(System.in)), new PrintWriter(System.out));
139 } 140 }
140 141
141 /* Demonstrate per-type tabulation of node execution counts */ 142 /* Demonstrate per-type tabulation of node execution counts */
142 private static boolean nodeExecCounts = false; 143 private static boolean nodeExecCounts = false;