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