File tree 1 file changed +12
-4
lines changed
1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -7,21 +7,29 @@ This Compiler takes a Pascal file and creates a *.class file for it, which can b
7
7
## Compiling a file and liveness analysis
8
8
9
9
1 . I attached a ``` build.xml ``` file to use sablecc automatically to use my specified grammar in Java. So just type in your shell:
10
+
10
11
``` > ant ```
12
+
11
13
or by hand:
14
+
12
15
``` > java -jar sablecc.jar sablecc.scc ```
13
16
14
17
2 . Compile all created classes
18
+
15
19
``` > javac *.java ```
16
20
17
- 3a. Start compiling with:
21
+ 3 . Start compiling with:
22
+
18
23
``` > java StupsCompiler -compile <Filename.pas> ```
19
24
20
- 3b. OR start a liveness analysis for all variables used in the Pascal file
25
+ 4 . OR start a liveness analysis for all variables used in the Pascal file
26
+
21
27
``` > java StupsCompiler -liveness <Filename.pas> ```
22
28
23
- 4 . Create Bytecode with jasmin
29
+ 5 . Create Bytecode with jasmin
30
+
24
31
``` > java -jar jasmin.jar <Filename.j> ```
25
32
26
- 5 . Execute compiled Pascal file
33
+ 6 . Execute compiled Pascal file
34
+
27
35
``` > java Filename ```
You can’t perform that action at this time.
0 commit comments