Skip to content

Commit 5719f20

Browse files
committed
Update README.md
1 parent 4ada31d commit 5719f20

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

Diff for: README.md

+12-4
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,29 @@ This Compiler takes a Pascal file and creates a *.class file for it, which can b
77
## Compiling a file and liveness analysis
88

99
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+
1011
```> ant```
12+
1113
or by hand:
14+
1215
```> java -jar sablecc.jar sablecc.scc```
1316

1417
2. Compile all created classes
18+
1519
```> javac *.java```
1620

17-
3a. Start compiling with:
21+
3. Start compiling with:
22+
1823
```> java StupsCompiler -compile <Filename.pas>```
1924

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+
2127
```> java StupsCompiler -liveness <Filename.pas>```
2228

23-
4. Create Bytecode with jasmin
29+
5. Create Bytecode with jasmin
30+
2431
```> java -jar jasmin.jar <Filename.j>```
2532

26-
5. Execute compiled Pascal file
33+
6. Execute compiled Pascal file
34+
2735
```> java Filename```

0 commit comments

Comments
 (0)