Skip to content

Commit 8a15600

Browse files
committed
Removing .class files
1 parent d866e0b commit 8a15600

File tree

166 files changed

+332
-1233
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

166 files changed

+332
-1233
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.class

ASTPrinter.class

-3.26 KB
Binary file not shown.

Block.class

-1.78 KB
Binary file not shown.

CodeGenerator.class

-7.93 KB
Binary file not shown.

GraphVisitor.class

-3.42 KB
Binary file not shown.

Liveness.class

-5.45 KB
Binary file not shown.

Nodes.class

-753 Bytes
Binary file not shown.

Pascal.class

-541 Bytes
Binary file not shown.

Pascal.j

+15-94
Original file line numberDiff line numberDiff line change
@@ -9,110 +9,31 @@
99
return
1010
.end method
1111
.method public static main([Ljava/lang/String;)V
12-
.limit stack 21
13-
.limit locals 6
14-
bipush 1
15-
istore 2
16-
bipush 1
17-
istore 3
18-
bipush 0
12+
.limit stack 4
13+
.limit locals 5
14+
ldc 1
1915
istore 1
20-
bipush 0
16+
ldc 1
17+
istore 2
18+
ldc 10
2119
istore 4
22-
bipush 42
23-
istore 5
20+
while:
2421
iload 1
25-
bipush 1
26-
isub
27-
ifeq LabelTrue0
28-
bipush 0
29-
goto LabelCompEnd0
30-
LabelTrue0:
31-
bipush 1
32-
LabelCompEnd0:
33-
ifeq LabelIfDown0
34-
iload 3
35-
iload 3
36-
iadd
37-
istore 5
38-
iload 5
39-
istore 4
40-
getstatic java/lang/System/out Ljava/io/PrintStream;
41-
iload 3
42-
invokevirtual java/io/PrintStream/println(I)V
43-
iload 1
44-
bipush 2
45-
isub
46-
iflt LabelTrue1
47-
bipush 0
48-
goto LabelCompEnd1
49-
LabelTrue1:
50-
bipush 1
51-
LabelCompEnd1:
52-
ifeq LabelIfDown1
53-
iload 3
54-
bipush 1
55-
iadd
56-
istore 3
57-
iload 5
58-
bipush 2
59-
iadd
60-
istore 5
61-
LabelIfDown1:
62-
LabelIfDown0:
63-
getstatic java/lang/System/out Ljava/io/PrintStream;
6422
iload 4
65-
invokevirtual java/io/PrintStream/println(I)V
66-
iload 1
67-
bipush 4
6823
isub
69-
ifgt LabelTrue2
70-
bipush 0
71-
goto LabelCompEnd2
72-
LabelTrue2:
73-
bipush 1
74-
LabelCompEnd2:
75-
ifeq LabelIfElse2
24+
ifge endLabel
7625
getstatic java/lang/System/out Ljava/io/PrintStream;
77-
iload 3
78-
invokevirtual java/io/PrintStream/println(I)V
79-
getstatic java/lang/System/out Ljava/io/PrintStream;
80-
iload 5
81-
invokevirtual java/io/PrintStream/println(I)V
82-
goto LabelIfElseEnd2
83-
LabelIfElse2:
84-
getstatic java/lang/System/out Ljava/io/PrintStream;
85-
iload 4
86-
invokevirtual java/io/PrintStream/println(I)V
87-
getstatic java/lang/System/out Ljava/io/PrintStream;
88-
iload 4
89-
invokevirtual java/io/PrintStream/println(I)V
90-
LabelIfElseEnd2:
91-
getstatic java/lang/System/out Ljava/io/PrintStream;
92-
iload 2
93-
invokevirtual java/io/PrintStream/println(Z)V
94-
bipush 0
95-
istore 1
96-
LabelWhileUp3:
9726
iload 1
98-
bipush 4
99-
isub
100-
iflt LabelTrue3
101-
bipush 0
102-
goto LabelCompEnd3
103-
LabelTrue3:
104-
bipush 1
105-
LabelCompEnd3:
106-
ifeq LabelWhileDown3
107-
getstatic java/lang/System/out Ljava/io/PrintStream;
108-
iload 3
10927
invokevirtual java/io/PrintStream/println(I)V
28+
iload 2
29+
istore 3
11030
iload 1
111-
bipush 1
31+
iload 2
11232
iadd
33+
istore 2
34+
iload 3
11335
istore 1
114-
goto LabelWhileUp3
115-
LabelWhileDown3:
116-
LabelBreakDown0:
36+
goto while
37+
endLabel:
11738
return
11839
.end method

Pascal.pas

+4-164
Original file line numberDiff line numberDiff line change
@@ -1,167 +1,7 @@
1-
program factorial;
2-
var fak, res, a, b, c, d, temp, n, i : integer;
3-
vAr f, x, y, z, endPointer, prim : boOlEAn;
1+
program testingIfThenElse;
42
begin
5-
fak := 5;
6-
res := 1;
7-
while fak > 0 do
8-
begin
9-
res := res * fak;
10-
fak := fak - 1;
11-
end;
12-
writeln(res);
13-
if (2=2) and not(2<>2) then writeln(334364336);
14-
if (2=2) and not(2<>3) then writeln(3334443);
15-
writeln(not false);
16-
writeln(not(true));
17-
writeln(not(true and false));
18-
writeln(1 - (3 - (2 + 1)));
19-
a := 1 ;
20-
b := 1 ;
21-
while a < 1000 do
22-
begin
23-
writeln ( a ) ;
24-
temp := b ;
25-
b := a + b ;
26-
a := temp ;
27-
end;
28-
a := 3;
29-
writeln(a);
30-
a := 10;
31-
c := ((a mod 3) * 3) div 2;
32-
writeln(c);
33-
b := 1;
34-
x := true;
35-
while a >= b do
36-
begin
37-
a := a - b;
38-
writeln(a);
39-
if a <= b + 1 then
40-
break
41-
else
42-
writeln(x);
43-
end;
44-
a := 1+(7*3);
45-
b := 7--(1+4);
46-
c := 2 + -+-+-+-+++-1;
47-
writeln(a);
48-
writeln(b);
49-
writeln(c);
50-
a := 1;
51-
b := a;
52-
c := b+a;
53-
54-
while a < 10 do
55-
begin
56-
a := a+1;
57-
while b < 10 do
58-
begin
59-
b := b+1;
60-
while c < 10 do
61-
begin
62-
writeln(c);
63-
break;
64-
writeln(111111);
65-
end;
66-
break;
67-
writeln(222222);
68-
end;
69-
break;
70-
writeln(333333);
71-
end;
72-
writeln(999999);
73-
a := 1;
74-
b := 1;
75-
while (True and (a < 100)) do
76-
begin
77-
writeln(a);
78-
temp := b;
79-
b := a + b;
80-
a := temp ;
81-
end;
82-
a := 4;
83-
b := 4;
84-
f := a > b;
85-
writeln( f );
86-
f := a >= b;
87-
writeln( f );
88-
f := a = b;
89-
writeln( f );
90-
f := a <= b;
91-
writeln( true );
92-
f := a < b;
93-
writeln( f );
94-
95-
if(f ) then
96-
begin
97-
writeln(3);
98-
end
3+
if 1 < 2 then
4+
writeln(1)
995
else
100-
writeln(1);
101-
if (2=2) and not(2<>2) then writeln ( 1 );
102-
a := 0;
103-
b := 6;
104-
f := a > b;
105-
while a < b do
106-
begin
107-
a := a -- (1+a);
108-
writeln(a);
109-
end;
110-
writeln(false);
111-
112-
endPointer := true;
113-
a := 1;
114-
d := 0;
115-
c := 0;
116-
b := 42;
117-
if d = 1 then
118-
begin
119-
b := a + a;
120-
c := b;
121-
writeln(a);
122-
if d < 2 then
123-
begin
124-
a := a+1;
125-
b := b+2;
126-
end;
127-
end;
128-
writeln(c);
129-
130-
if d > 4 then
131-
begin
132-
writeln(a);
133-
writeln(b);
134-
end
135-
else
136-
begin
137-
writeln(c);
138-
writeln(c);
139-
end;
140-
141-
writeln(endPointer);
142-
d := 0;
143-
while d < 4 do
144-
begin
145-
writeln(a);
146-
d := d+1;
147-
end;
148-
149-
n := 42;
150-
i := 2;
151-
prim := true;
152-
while true do
153-
BEGIN
154-
if (n mod i)=0 then
155-
BEGIN
156-
writeln(i);
157-
prim := false;
158-
break;
159-
END else
160-
i := i + 1;
161-
if i=(n-1) then
162-
BEGIN
163-
prim := true;
164-
break;
165-
END;
166-
END
6+
writeln(0)
1677
end.

StupsCompiler.class

-4.99 KB
Binary file not shown.

TypeChecker.class

-7.66 KB
Binary file not shown.

analysis/Analysis.class

-3.64 KB
Binary file not shown.

analysis/AnalysisAdapter.class

-7.61 KB
Binary file not shown.

analysis/DepthFirstAdapter.class

-13.4 KB
Binary file not shown.
-13.6 KB
Binary file not shown.

lexer/IPushbackReader.class

-220 Bytes
Binary file not shown.

lexer/Lexer$1.class

-764 Bytes
Binary file not shown.

lexer/Lexer$State.class

-469 Bytes
Binary file not shown.

lexer/Lexer.class

-10.3 KB
Binary file not shown.

lexer/LexerException.class

-419 Bytes
Binary file not shown.

node/AAndExpr.class

-1.79 KB
Binary file not shown.

node/AAssignmentExpr.class

-1.94 KB
Binary file not shown.

node/ABooleanExpr.class

-1.51 KB
Binary file not shown.

node/ABreakExpr.class

-1.49 KB
Binary file not shown.

node/AComparisonExpr.class

-2.15 KB
Binary file not shown.

node/ADeclarationExpr.class

-1.82 KB
Binary file not shown.

node/ADivExpr.class

-1.79 KB
Binary file not shown.

node/AEqExpr.class

-1.45 KB
Binary file not shown.

node/AFalseExpr.class

-1.49 KB
Binary file not shown.

node/AGeExpr.class

-1.45 KB
Binary file not shown.

node/AGtExpr.class

-1.45 KB
Binary file not shown.

node/AIdentifierExpr.class

-1.54 KB
Binary file not shown.

node/AIdentifierListExpr.class

-1.95 KB
Binary file not shown.

node/AIfThenElseExpr.class

-2.12 KB
Binary file not shown.

node/AIfThenExpr.class

-1.8 KB
Binary file not shown.

node/AIntegerExpr.class

-1.51 KB
Binary file not shown.

node/ALeExpr.class

-1.45 KB
Binary file not shown.

node/ALtExpr.class

-1.45 KB
Binary file not shown.

node/AMinusExpr.class

-1.8 KB
Binary file not shown.

node/AModExpr.class

-1.79 KB
Binary file not shown.

node/AMultExpr.class

-1.79 KB
Binary file not shown.

node/ANeExpr.class

-1.45 KB
Binary file not shown.

node/ANotExpr.class

-1.46 KB
Binary file not shown.

node/ANumberExpr.class

-1.5 KB
Binary file not shown.

node/AOrExpr.class

-1.79 KB
Binary file not shown.

node/APlusExpr.class

-1.79 KB
Binary file not shown.

node/APrintExpr.class

-1.46 KB
Binary file not shown.

node/ASemicolonExpr.class

-1.53 KB
Binary file not shown.

node/AStartExpr.class

-3.28 KB
Binary file not shown.

node/AStatementExpr.class

-2.28 KB
Binary file not shown.

node/AStatementListExpr.class

-2.81 KB
Binary file not shown.

node/ATrueExpr.class

-1.47 KB
Binary file not shown.

node/AUnaryMinusExpr.class

-1.48 KB
Binary file not shown.

node/AUnaryPlusExpr.class

-1.48 KB
Binary file not shown.

node/AWhileExpr.class

-1.8 KB
Binary file not shown.

node/AXorExpr.class

-1.79 KB
Binary file not shown.

node/EOF.class

-651 Bytes
Binary file not shown.

node/InvalidToken.class

-744 Bytes
Binary file not shown.

node/Node.class

-1.65 KB
Binary file not shown.

node/PExpr.class

-182 Bytes
Binary file not shown.

node/Start.class

-1.84 KB
Binary file not shown.

node/Switch.class

-98 Bytes
Binary file not shown.

node/Switchable.class

-141 Bytes
Binary file not shown.

node/TAnd.class

-712 Bytes
Binary file not shown.

node/TAssign.class

-792 Bytes
Binary file not shown.

node/TBegin.class

-720 Bytes
Binary file not shown.

node/TBlankOrComment.class

-756 Bytes
Binary file not shown.

node/TBoolean.class

-728 Bytes
Binary file not shown.

node/TBreak.class

-720 Bytes
Binary file not shown.

node/TColon.class

-786 Bytes
Binary file not shown.

node/TComma.class

-786 Bytes
Binary file not shown.

node/TDiv.class

-712 Bytes
Binary file not shown.

node/TDo.class

-708 Bytes
Binary file not shown.

node/TDot.class

-776 Bytes
Binary file not shown.

node/TElse.class

-716 Bytes
Binary file not shown.

node/TEnd.class

-712 Bytes
Binary file not shown.

node/TEq.class

-771 Bytes
Binary file not shown.

node/TFalse.class

-720 Bytes
Binary file not shown.

node/TGe.class

-772 Bytes
Binary file not shown.

node/TGt.class

-771 Bytes
Binary file not shown.

node/TIdentifier.class

-740 Bytes
Binary file not shown.

node/TIf.class

-708 Bytes
Binary file not shown.

node/TInteger.class

-728 Bytes
Binary file not shown.

node/TLPar.class

-781 Bytes
Binary file not shown.

node/TLe.class

-772 Bytes
Binary file not shown.

node/TLt.class

-771 Bytes
Binary file not shown.

node/TMinus.class

-786 Bytes
Binary file not shown.

node/TMod.class

-712 Bytes
Binary file not shown.

node/TMult.class

-781 Bytes
Binary file not shown.

node/TNe.class

-772 Bytes
Binary file not shown.

node/TNot.class

-712 Bytes
Binary file not shown.

node/TNumber.class

-724 Bytes
Binary file not shown.

node/TOr.class

-708 Bytes
Binary file not shown.

node/TPlus.class

-781 Bytes
Binary file not shown.

node/TProgram.class

-728 Bytes
Binary file not shown.

node/TRPar.class

-781 Bytes
Binary file not shown.

node/TSemicolon.class

-806 Bytes
Binary file not shown.

node/TThen.class

-716 Bytes
Binary file not shown.

node/TTrue.class

-716 Bytes
Binary file not shown.

node/TVar.class

-712 Bytes
Binary file not shown.

node/TWhile.class

-720 Bytes
Binary file not shown.

node/TWriteln.class

-728 Bytes
Binary file not shown.

node/TXor.class

-712 Bytes
Binary file not shown.

node/Token.class

-1.07 KB
Binary file not shown.

0 commit comments

Comments
 (0)