home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.ee.pdx.edu
/
2014.02.ftp.ee.pdx.edu.tar
/
ftp.ee.pdx.edu
/
pub
/
users
/
Harry
/
compilers
/
p6
/
tst
/
callErr.out.bak
< prev
next >
Wrap
Text File
|
2005-11-18
|
27KB
|
763 lines
#1: ---------- Body ----------
lineNumber=7
typeDecls=
#2: ---------- TypeDecl ----------
lineNumber=7
id="ARR"
compoundType=
#3: ---------- ArrayType ----------
lineNumber=7
elementType=
#4: ---------- TypeName ----------
lineNumber=7
id="integer"
myDef=NULL
------------------------------
------------------------------
------------------------------
procDecls=
#5: ---------- ProcDecl ----------
lineNumber=9
id="f1"
lexLevel=1
formals=NULL
retType=
#6: ---------- TypeName ----------
lineNumber=9
id="integer"
myDef=NULL
------------------------------
body=
#7: ---------- Body ----------
lineNumber=10
typeDecls=NULL
procDecls=NULL
varDecls=NULL
stmts=
#8: ---------- ReturnStmt ----------
lineNumber=10
summary= 0
expr=
#9: ---------- IntegerConst ----------
lineNumber=10
iValue=0
------------------------------
myProc=
***** This node was printed earlier (#5: ProcDecl) *****
------------------------------
------------------------------
------------------------------
#10: ---------- ProcDecl ----------
lineNumber=11
id="f2"
lexLevel=1
formals=NULL
retType=NULL
body=
#11: ---------- Body ----------
lineNumber=12
typeDecls=NULL
procDecls=NULL
varDecls=NULL
stmts=
#12: ---------- ReturnStmt ----------
lineNumber=12
summary= NULL
expr=NULL
myProc=
***** This node was printed earlier (#10: ProcDecl) *****
------------------------------
------------------------------
------------------------------
#13: ---------- ProcDecl ----------
lineNumber=13
id="f3"
lexLevel=1
formals=NULL
retType=
#14: ---------- TypeName ----------
lineNumber=13
id="real"
myDef=NULL
------------------------------
body=
#15: ---------- Body ----------
lineNumber=14
typeDecls=NULL
procDecls=NULL
varDecls=NULL
stmts=
#16: ---------- ReturnStmt ----------
lineNumber=14
summary= 0.0
expr=
#17: ---------- RealConst ----------
lineNumber=14
rValue=0.0
------------------------------
myProc=
***** This node was printed earlier (#13: ProcDecl) *****
------------------------------
------------------------------
------------------------------
#18: ---------- ProcDecl ----------
lineNumber=15
id="f4"
lexLevel=1
formals=
#19: ---------- Formal ----------
lineNumber=15
id="w"
typeName=
#20: ---------- TypeName ----------
lineNumber=15
id="integer"
myDef=NULL
------------------------------
lexLevel=1
------------------------------
#21: ---------- Formal ----------
lineNumber=15
id="x"
typeName=
***** This node was printed earlier (#20: TypeName) *****
lexLevel=1
------------------------------
#22: ---------- Formal ----------
lineNumber=15
id="y"
typeName=
***** This node was printed earlier (#20: TypeName) *****
lexLevel=1
------------------------------
#23: ---------- Formal ----------
lineNumber=15
id="z"
typeName=
***** This node was printed earlier (#20: TypeName) *****
lexLevel=1
------------------------------
retType=NULL
body=
#24: ---------- Body ----------
lineNumber=16
typeDecls=NULL
procDecls=NULL
varDecls=NULL
stmts=
#25: ---------- ReturnStmt ----------
lineNumber=16
summary= NULL
expr=NULL
myProc=
***** This node was printed earlier (#18: ProcDecl) *****
------------------------------
------------------------------
------------------------------
#26: ---------- ProcDecl ----------
lineNumber=17
id="f5"
lexLevel=1
formals=
#27: ---------- Formal ----------
lineNumber=17
id="w"
typeName=
#28: ---------- TypeName ----------
lineNumber=17
id="integer"
myDef=NULL
------------------------------
lexLevel=1
------------------------------
#29: ---------- Formal ----------
lineNumber=17
id="x"
typeName=
***** This node was printed earlier (#28: TypeName) *****
lexLevel=1
------------------------------
#30: ---------- Formal ----------
lineNumber=17
id="y"
typeName=
***** This node was printed earlier (#28: TypeName) *****
lexLevel=1
------------------------------
#31: ---------- Formal ----------
lineNumber=17
id="z"
typeName=
***** This node was printed earlier (#28: TypeName) *****
lexLevel=1
------------------------------
retType=
#32: ---------- TypeName ----------
lineNumber=17
id="integer"
myDef=NULL
------------------------------
body=
#33: ---------- Body ----------
lineNumber=18
typeDecls=NULL
procDecls=NULL
varDecls=NULL
stmts=
#34: ---------- ReturnStmt ----------
lineNumber=18
summary= 0
expr=
#35: ---------- IntegerConst ----------
lineNumber=18
iValue=0
------------------------------
myProc=
***** This node was printed earlier (#26: ProcDecl) *****
------------------------------
------------------------------
------------------------------
#36: ---------- ProcDecl ----------
lineNumber=19
id="f6"
lexLevel=1
formals=
#37: ---------- Formal ----------
lineNumber=19
id="x"
typeName=
#38: ---------- TypeName ----------
lineNumber=19
id="real"
myDef=NULL
------------------------------
lexLevel=1
------------------------------
#39: ---------- Formal ----------
lineNumber=19
id="i"
typeName=
#40: ---------- TypeName ----------
lineNumber=19
id="integer"
myDef=NULL
------------------------------
lexLevel=1
------------------------------
#41: ---------- Formal ----------
lineNumber=19
id="b"
typeName=
#42: ---------- TypeName ----------
lineNumber=19
id="boolean"
myDef=NULL
------------------------------
lexLevel=1
------------------------------
#43: ---------- Formal ----------
lineNumber=19
id="a"
typeName=
#44: ---------- TypeName ----------
lineNumber=19
id="ARR"
myDef=
***** This node was printed earlier (#3: ArrayType) *****
------------------------------
lexLevel=1
------------------------------
retType=NULL
body=
#45: ---------- Body ----------
lineNumber=20
typeDecls=NULL
procDecls=NULL
varDecls=NULL
stmts=
#46: ---------- ReturnStmt ----------
lineNumber=20
summary= NULL
expr=NULL
myProc=
***** This node was printed earlier (#36: ProcDecl) *****
------------------------------
------------------------------
------------------------------
#47: ---------- ProcDecl ----------
lineNumber=21
id="f7"
lexLevel=1
formals=
#48: ---------- Formal ----------
lineNumber=21
id="x"
typeName=
#49: ---------- TypeName ----------
lineNumber=21
id="real"
myDef=NULL
------------------------------
lexLevel=1
------------------------------
#50: ---------- Formal ----------
lineNumber=21
id="i"
typeName=
#51: ---------- TypeName ----------
lineNumber=21
id="integer"
myDef=NULL
------------------------------
lexLevel=1
------------------------------
#52: ---------- Formal ----------
lineNumber=21
id="b"
typeName=
#53: ---------- TypeName ----------
lineNumber=21
id="boolean"
myDef=NULL
------------------------------
lexLevel=1
------------------------------
#54: ---------- Formal ----------
lineNumber=21
id="a"
typeName=
#55: ---------- TypeName ----------
lineNumber=21
id="ARR"
myDef=
***** This node was printed earlier (#3: ArrayType) *****
------------------------------
lexLevel=1
------------------------------
retType=
#56: ---------- TypeName ----------
lineNumber=21
id="integer"
myDef=NULL
------------------------------
body=
#57: ---------- Body ----------
lineNumber=22
typeDecls=NULL
procDecls=NULL
varDecls=NULL
stmts=
#58: ---------- ReturnStmt ----------
lineNumber=22
summary= 0
expr=
#59: ---------- IntegerConst ----------
lineNumber=22
iValue=0
------------------------------
myProc=
***** This node was printed earlier (#47: ProcDecl) *****
------------------------------
------------------------------
------------------------------
varDecls=
#60: ---------- VarDecl ----------
lineNumber=8
id="i"
typeName=
#61: ---------- TypeName ----------
lineNumber=8
id="integer"
myDef=NULL
------------------------------
expr=
#62: ---------- IntegerConst ----------
lineNumber=8
iValue=0
------------------------------
lexLevel=0
------------------------------
stmts=
#63: ---------- CallStmt ----------
lineNumber=25
id="f1"
args=NULL
myDef=
***** This node was printed earlier (#5: ProcDecl) *****
------------------------------
#64: ---------- AssignStmt ----------
lineNumber=26
lValue=
#65: ---------- Variable ----------
lineNumber=26
id="i"
myDef=
***** This node was printed earlier (#60: VarDecl) *****
currentLevel=0
------------------------------
expr=
#66: ---------- FunctionCall ----------
lineNumber=26
id="f2"
args=NULL
myDef=
***** This node was printed earlier (#10: ProcDecl) *****
------------------------------
------------------------------
#67: ---------- AssignStmt ----------
lineNumber=27
lValue=
#68: ---------- Variable ----------
lineNumber=27
id="i"
myDef=
***** This node was printed earlier (#60: VarDecl) *****
currentLevel=0
------------------------------
expr=
#69: ---------- FunctionCall ----------
lineNumber=27
id="f3"
args=NULL
myDef=
***** This node was printed earlier (#13: ProcDecl) *****
------------------------------
------------------------------
#70: ---------- CallStmt ----------
lineNumber=28
id="f4"
args=
#71: ---------- Argument ----------
lineNumber=28
expr=
#72: ---------- IntegerConst ----------
lineNumber=28
iValue=1
------------------------------
mode=0
------------------------------
#73: ---------- Argument ----------
lineNumber=28
expr=
#74: ---------- IntegerConst ----------
lineNumber=28
iValue=2
------------------------------
mode=0
------------------------------
#75: ---------- Argument ----------
lineNumber=28
expr=
#76: ---------- IntegerConst ----------
lineNumber=28
iValue=3
------------------------------
mode=0
------------------------------
myDef=
***** This node was printed earlier (#18: ProcDecl) *****
------------------------------
#77: ---------- CallStmt ----------
lineNumber=29
id="f4"
args=
#78: ---------- Argument ----------
lineNumber=29
expr=
#79: ---------- IntegerConst ----------
lineNumber=29
iValue=1
------------------------------
mode=0
------------------------------
#80: ---------- Argument ----------
lineNumber=29
expr=
#81: ---------- IntegerConst ----------
lineNumber=29
iValue=2
------------------------------
mode=0
------------------------------
#82: ---------- Argument ----------
lineNumber=29
expr=
#83: ---------- IntegerConst ----------
lineNumber=29
iValue=3
------------------------------
mode=0
------------------------------
#84: ---------- Argument ----------
lineNumber=29
expr=
#85: ---------- IntegerConst ----------
lineNumber=29
iValue=4
------------------------------
mode=0
------------------------------
#86: ---------- Argument ----------
lineNumber=29
expr=
#87: ---------- IntegerConst ----------
lineNumber=29
iValue=5
------------------------------
mode=0
------------------------------
myDef=
***** This node was printed earlier (#18: ProcDecl) *****
------------------------------
#88: ---------- AssignStmt ----------
lineNumber=30
lValue=
#89: ---------- Variable ----------
lineNumber=30
id="i"
myDef=
***** This node was printed earlier (#60: VarDecl) *****
currentLevel=0
------------------------------
expr=
#90: ---------- FunctionCall ----------
lineNumber=30
id="f5"
args=
#91: ---------- Argument ----------
lineNumber=30
expr=
#92: ---------- IntegerConst ----------
lineNumber=30
iValue=1
------------------------------
mode=0
------------------------------
#93: ---------- Argument ----------
lineNumber=30
expr=
#94: ---------- IntegerConst ----------
lineNumber=30
iValue=2
------------------------------
mode=0
------------------------------
#95: ---------- Argument ----------
lineNumber=30
expr=
#96: ---------- IntegerConst ----------
lineNumber=30
iValue=3
------------------------------
mode=0
------------------------------
myDef=
***** This node was printed earlier (#26: ProcDecl) *****
------------------------------
------------------------------
#97: ---------- AssignStmt ----------
lineNumber=31
lValue=
#98: ---------- Variable ----------
lineNumber=31
id="i"
myDef=
***** This node was printed earlier (#60: VarDecl) *****
currentLevel=0
------------------------------
expr=
#99: ---------- FunctionCall ----------
lineNumber=31
id="f5"
args=
#100: ---------- Argument ----------
lineNumber=31
expr=
#101: ---------- IntegerConst ----------
lineNumber=31
iValue=1
------------------------------
mode=0
------------------------------
#102: ---------- Argument ----------
lineNumber=31
expr=
#103: ---------- IntegerConst ----------
lineNumber=31
iValue=2
------------------------------
mode=0
------------------------------
#104: ---------- Argument ----------
lineNumber=31
expr=
#105: ---------- IntegerConst ----------
lineNumber=31
iValue=3
------------------------------
mode=0
------------------------------
#106: ---------- Argument ----------
lineNumber=31
expr=
#107: ---------- IntegerConst ----------
lineNumber=31
iValue=4
------------------------------
mode=0
------------------------------
#108: ---------- Argument ----------
lineNumber=31
expr=
#109: ---------- IntegerConst ----------
lineNumber=31
iValue=5
------------------------------
mode=0
------------------------------
myDef=
***** This node was printed earlier (#26: ProcDecl) *****
------------------------------
------------------------------
#110: ---------- CallStmt ----------
lineNumber=32
id="f6"
args=
#111: ---------- Argument ----------
lineNumber=32
expr=
#112: ---------- BooleanConst ----------
lineNumber=32
iValue=1
------------------------------
mode=0
------------------------------
#113: ---------- Argument ----------
lineNumber=32
expr=
#114: ---------- RealConst ----------
lineNumber=32
rValue=1.1
------------------------------
mode=0
------------------------------
#115: ---------- Argument ----------
lineNumber=32
expr=
#116: ---------- NilConst ----------
lineNumber=32
------------------------------
mode=0
------------------------------
#117: ---------- Argument ----------
lineNumber=32
expr=
#118: ---------- IntegerConst ----------
lineNumber=32
iValue=1
------------------------------
mode=0
------------------------------
myDef=
***** This node was printed earlier (#36: ProcDecl) *****
------------------------------
#119: ---------- AssignStmt ----------
lineNumber=33
lValue=
#120: ---------- Variable ----------
lineNumber=33
id="i"
myDef=
***** This node was printed earlier (#60: VarDecl) *****
currentLevel=0
------------------------------
expr=
#121: ---------- FunctionCall ----------
lineNumber=33
id="f7"
args=
#122: ---------- Argument ----------
lineNumber=33
expr=
#123: ---------- BooleanConst ----------
lineNumber=33
iValue=1
------------------------------
mode=0
------------------------------
#124: ---------- Argument ----------
lineNumber=33
expr=
#125: ---------- RealConst ----------
lineNumber=33
rValue=1.1
------------------------------
mode=0
------------------------------
#126: ---------- Argument ----------
lineNumber=33
expr=
#127: ---------- NilConst ----------
lineNumber=33
------------------------------
mode=0
------------------------------
#128: ---------- Argument ----------
lineNumber=33
expr=
#129: ---------- IntegerConst ----------
lineNumber=33
iValue=1
------------------------------
mode=0
------------------------------
myDef=
***** This node was printed earlier (#47: ProcDecl) *****
------------------------------
------------------------------
------------------------------
PROGRAM IS
TYPE
ARR IS ARRAY OF integer;
VAR
i: integer := 0;
PROCEDURE f1 () : integer IS
BEGIN
RETURN 0;
END;
PROCEDURE f2 () IS
BEGIN
RETURN;
END;
PROCEDURE f3 () : real IS
BEGIN
RETURN 0.0;
END;
PROCEDURE f4 (w: integer; x: integer; y: integer; z: integer) IS
BEGIN
RETURN;
END;
PROCEDURE f5 (w: integer; x: integer; y: integer; z: integer) : integer IS
BEGIN
RETURN 0;
END;
PROCEDURE f6 (x: real; i: integer; b: boolean; a: ARR) IS
BEGIN
RETURN;
END;
PROCEDURE f7 (x: real; i: integer; b: boolean; a: ARR) : integer IS
BEGIN
RETURN 0;
END;
BEGIN
f1 ();
i := f2 ();
i := f3 ();
f4 (1, 2, 3);
f4 (1, 2, 3, 4, 5);
i := f5 (1, 2, 3);
i := f5 (1, 2, 3, 4, 5);
f6 (TRUE, 1.1, NIL, 1);
i := f7 (TRUE, 1.1, NIL, 1);
END;