( String[] args )
| 8 | public static final String PORTS = "com.seaofnodes.simple.node.cpus"; |
| 9 | // Compile and run a simple program |
| 10 | public static void main( String[] args ) throws Exception { |
| 11 | // First arg is file, 2nd+ args are program args |
| 12 | String src = Files.readString(Path.of(args[0])); |
| 13 | int arg = Integer.valueOf(args[1]); |
| 14 | CodeGen code = new CodeGen(src); |
| 15 | code.parse().opto().typeCheck().GCM().localSched(); |
| 16 | System.out.println(code._stop); |
| 17 | System.out.println(Eval2.eval(code,arg,100000)); |
| 18 | } |
| 19 | } |