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
/
p5
/
tst
/
p6.out.bak
< prev
next >
Wrap
Text File
|
2005-11-01
|
11KB
|
273 lines
alreadyDefined called with 'foo1'
enter called with 'foo1'
alreadyDefined called with 'foo2'
enter called with 'foo2'
alreadyDefined called with 'x'
enter called with 'x'
openScope called: new level=1
closeScope called: new level=0
openScope called: new level=1
alreadyDefined called with 'foo3'
enter called with 'foo3'
openScope called: new level=2
alreadyDefined called with 'foo4'
enter called with 'foo4'
openScope called: new level=3
closeScope called: new level=2
find called with 'foo1'
find called with 'foo2'
find called with 'foo3'
find called with 'foo4'
find called with 'x'
find called with 'foo1'
find called with 'foo2'
find called with 'foo3'
find called with 'foo4'
closeScope called: new level=1
closeScope called: new level=0
find called with 'foo1'
find called with 'foo2'
find called with 'x'
find called with 'foo1'
find called with 'foo2'
#1: ---------- Body ----------
lineNumber=4
typeDecls=NULL
procDecls=
#2: ---------- ProcDecl ----------
lineNumber=5
id="foo1"
lexLevel=1
formals=NULL
retType=NULL
body=
#3: ---------- Body ----------
lineNumber=6
typeDecls=NULL
procDecls=NULL
varDecls=NULL
stmts=NULL
------------------------------
------------------------------
#4: ---------- ProcDecl ----------
lineNumber=8
id="foo2"
lexLevel=1
formals=NULL
retType=NULL
body=
#5: ---------- Body ----------
lineNumber=9
typeDecls=NULL
procDecls=
#6: ---------- ProcDecl ----------
lineNumber=9
id="foo3"
lexLevel=2
formals=NULL
retType=NULL
body=
#7: ---------- Body ----------
lineNumber=10
typeDecls=NULL
procDecls=
#8: ---------- ProcDecl ----------
lineNumber=10
id="foo4"
lexLevel=3
formals=NULL
retType=NULL
body=
#9: ---------- Body ----------
lineNumber=11
typeDecls=NULL
procDecls=NULL
varDecls=NULL
stmts=NULL
------------------------------
------------------------------
varDecls=NULL
stmts=
#10: ---------- CallStmt ----------
lineNumber=14
id="foo1"
args=NULL
myDef=
***** This node was printed earlier (#2: ProcDecl) *****
------------------------------
#11: ---------- CallStmt ----------
lineNumber=15
id="foo2"
args=NULL
myDef=
***** This node was printed earlier (#4: ProcDecl) *****
------------------------------
#12: ---------- CallStmt ----------
lineNumber=16
id="foo3"
args=NULL
myDef=
***** This node was printed earlier (#6: ProcDecl) *****
------------------------------
#13: ---------- CallStmt ----------
lineNumber=17
id="foo4"
args=NULL
myDef=
***** This node was printed earlier (#8: ProcDecl) *****
------------------------------
#14: ---------- AssignStmt ----------
lineNumber=18
lValue=
#15: ---------- Variable ----------
lineNumber=18
id="x"
myDef=
#16: ---------- VarDecl ----------
lineNumber=4
id="x"
typeName=
#17: ---------- TypeName ----------
lineNumber=4
id="integer"
myDef=NULL
------------------------------
expr=
#18: ---------- IntegerConst ----------
lineNumber=4
iValue=0
------------------------------
lexLevel=0
------------------------------
currentLevel=2
------------------------------
expr=
#19: ---------- BinaryOp ----------
lineNumber=18
op=PLUS
expr1=
#20: ---------- BinaryOp ----------
lineNumber=18
op=PLUS
expr1=
#21: ---------- BinaryOp ----------
lineNumber=18
op=PLUS
expr1=
#22: ---------- FunctionCall ----------
lineNumber=18
id="foo1"
args=NULL
myDef=
***** This node was printed earlier (#2: ProcDecl) *****
------------------------------
expr2=
#23: ---------- FunctionCall ----------
lineNumber=18
id="foo2"
args=NULL
myDef=
***** This node was printed earlier (#4: ProcDecl) *****
------------------------------
------------------------------
expr2=
#24: ---------- FunctionCall ----------
lineNumber=18
id="foo3"
args=NULL
myDef=
***** This node was printed earlier (#6: ProcDecl) *****
------------------------------
------------------------------
expr2=
#25: ---------- FunctionCall ----------
lineNumber=18
id="foo4"
args=NULL
myDef=
***** This node was printed earlier (#8: ProcDecl) *****
------------------------------
------------------------------
------------------------------
------------------------------
------------------------------
varDecls=NULL
stmts=NULL
------------------------------
------------------------------
varDecls=
***** This node was printed earlier (#16: VarDecl) *****
stmts=
#26: ---------- CallStmt ----------
lineNumber=23
id="foo1"
args=NULL
myDef=
***** This node was printed earlier (#2: ProcDecl) *****
------------------------------
#27: ---------- CallStmt ----------
lineNumber=24
id="foo2"
args=NULL
myDef=
***** This node was printed earlier (#4: ProcDecl) *****
------------------------------
#28: ---------- AssignStmt ----------
lineNumber=25
lValue=
#29: ---------- Variable ----------
lineNumber=25
id="x"
myDef=
***** This node was printed earlier (#16: VarDecl) *****
currentLevel=0
------------------------------
expr=
#30: ---------- BinaryOp ----------
lineNumber=25
op=PLUS
expr1=
#31: ---------- FunctionCall ----------
lineNumber=25
id="foo1"
args=NULL
myDef=
***** This node was printed earlier (#2: ProcDecl) *****
------------------------------
expr2=
#32: ---------- FunctionCall ----------
lineNumber=25
id="foo2"
args=NULL
myDef=
***** This node was printed earlier (#4: ProcDecl) *****
------------------------------
------------------------------
------------------------------
------------------------------
PROGRAM IS
VAR
x: integer := 0;
PROCEDURE foo1 () IS
BEGIN
END;
PROCEDURE foo2 () IS
PROCEDURE foo3 () IS
PROCEDURE foo4 () IS
BEGIN
END;
BEGIN
foo1 ();
foo2 ();
foo3 ();
foo4 ();
x := (((foo1 () + foo2 ()) + foo3 ()) + foo4 ());
END;
BEGIN
END;
BEGIN
foo1 ();
foo2 ();
x := (foo1 () + foo2 ());
END;