-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMain.java
More file actions
37 lines (22 loc) · 980 Bytes
/
Main.java
File metadata and controls
37 lines (22 loc) · 980 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import java.io.File;
public class Main {
/**
* @param args
* @throws Exception
*/
public static void main(String[] args) throws Exception {
File f = new File("C:\\eclipse\\sample.txt");
Splitter spl = new Splitter(f);
Parse par = new Parse(spl);
// System.out.println ("***************************\n" +
// "Parsing is complete. Program will now go through the actual tree of Nodes and prinbt out their NodeCodes. \n" +
// "Each Node has a node code that corresponds to a a specific variable. For example Declaration's code is 20 ");
//System.out.println ("******* the tree ******");
//par.printTree();
System.out.println ("quads*******");
Quadrupler quad = new Quadrupler(par.returnRoot());
//Interpreter pc = new Interpreter(quad.getQuadArray());
Interpret pc = new Interpret(quad.getQuadArray());
System.out.println ("Hooray. Code has been compiled and interpreted! :)");
}
}