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

Method main

chapter19/src/test/java/com/seaofnodes/simple/Main.java:8–16  ·  view source on GitHub ↗
( String[] args )

Source from the content-addressed store, hash-verified

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

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