MCPcopy Create free account
hub / github.com/SeaOfNodes/Simple / main

Method main

chapter24/src/test/java/com/seaofnodes/simple/Main.java:9–17  ·  view source on GitHub ↗
( String[] args )

Source from the content-addressed store, hash-verified

7public 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}

Callers

nothing calls this directly

Calls 7

parseMethod · 0.95
evalMethod · 0.95
valueOfMethod · 0.45
localSchedMethod · 0.45
GCMMethod · 0.45
typeCheckMethod · 0.45
optoMethod · 0.45

Tested by

no test coverage detected