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 / predefinedOK.out.bak < prev    next >
Text File  |  2005-11-18  |  10KB  |  278 lines

  1. #1:   ---------- Body ----------
  2.         lineNumber=6
  3.         typeDecls=
  4. #2:       ---------- TypeDecl ----------
  5.             lineNumber=6
  6.             id="MyArr"
  7.             compoundType=
  8. #3:           ---------- ArrayType ----------
  9.                 lineNumber=6
  10.                 elementType=
  11. #4:               ---------- TypeName ----------
  12.                     lineNumber=6
  13.                     id="integer"
  14.                     myDef=NULL
  15.                   ------------------------------
  16.               ------------------------------
  17.           ------------------------------
  18. #5:       ---------- TypeDecl ----------
  19.             lineNumber=7
  20.             id="MyRec"
  21.             compoundType=
  22. #6:           ---------- RecordType ----------
  23.                 lineNumber=7
  24.                 fieldDecls=
  25. #7:               ---------- FieldDecl ----------
  26.                     lineNumber=7
  27.                     id="f"
  28.                     typeName=
  29. #8:                   ---------- TypeName ----------
  30.                         lineNumber=7
  31.                         id="integer"
  32.                         myDef=NULL
  33.                       ------------------------------
  34.                   ------------------------------
  35.               ------------------------------
  36.           ------------------------------
  37.         procDecls=NULL
  38.         varDecls=
  39. #9:       ---------- VarDecl ----------
  40.             lineNumber=8
  41.             id="b"
  42.             typeName=
  43. #10:          ---------- TypeName ----------
  44.                 lineNumber=8
  45.                 id="boolean"
  46.                 myDef=NULL
  47.               ------------------------------
  48.             expr=
  49. #11:          ---------- BooleanConst ----------
  50.                 lineNumber=8
  51.                 iValue=0
  52.               ------------------------------
  53.             lexLevel=0
  54.           ------------------------------
  55. #12:      ---------- VarDecl ----------
  56.             lineNumber=9
  57.             id="r"
  58.             typeName=
  59. #13:          ---------- TypeName ----------
  60.                 lineNumber=9
  61.                 id="MyRec"
  62.                 myDef=
  63.                   *****  This node was printed earlier (#6: RecordType) *****
  64.               ------------------------------
  65.             expr=
  66. #14:          ---------- NilConst ----------
  67.                 lineNumber=9
  68.               ------------------------------
  69.             lexLevel=0
  70.           ------------------------------
  71. #15:      ---------- VarDecl ----------
  72.             lineNumber=10
  73.             id="a"
  74.             typeName=
  75. #16:          ---------- TypeName ----------
  76.                 lineNumber=10
  77.                 id="MyArr"
  78.                 myDef=
  79.                   *****  This node was printed earlier (#3: ArrayType) *****
  80.               ------------------------------
  81.             expr=
  82. #17:          ---------- NilConst ----------
  83.                 lineNumber=10
  84.               ------------------------------
  85.             lexLevel=0
  86.           ------------------------------
  87.         stmts=
  88. #18:      ---------- AssignStmt ----------
  89.             lineNumber=12
  90.             lValue=
  91. #19:          ---------- Variable ----------
  92.                 lineNumber=12
  93.                 id="b"
  94.                 myDef=
  95.                   *****  This node was printed earlier (#9: VarDecl) *****
  96.                 currentLevel=0
  97.               ------------------------------
  98.             expr=
  99. #20:          ---------- BooleanConst ----------
  100.                 lineNumber=12
  101.                 iValue=1
  102.               ------------------------------
  103.           ------------------------------
  104. #21:      ---------- AssignStmt ----------
  105.             lineNumber=13
  106.             lValue=
  107. #22:          ---------- Variable ----------
  108.                 lineNumber=13
  109.                 id="b"
  110.                 myDef=
  111.                   *****  This node was printed earlier (#9: VarDecl) *****
  112.                 currentLevel=0
  113.               ------------------------------
  114.             expr=
  115. #23:          ---------- BooleanConst ----------
  116.                 lineNumber=13
  117.                 iValue=0
  118.               ------------------------------
  119.           ------------------------------
  120. #24:      ---------- AssignStmt ----------
  121.             lineNumber=14
  122.             lValue=
  123. #25:          ---------- Variable ----------
  124.                 lineNumber=14
  125.                 id="b"
  126.                 myDef=
  127.                   *****  This node was printed earlier (#9: VarDecl) *****
  128.                 currentLevel=0
  129.               ------------------------------
  130.             expr=
  131. #26:          ---------- BinaryOp ----------
  132.                 lineNumber=14
  133.                 op=OR
  134.                 expr1=
  135. #27:              ---------- BooleanConst ----------
  136.                     lineNumber=14
  137.                     iValue=1
  138.                   ------------------------------
  139.                 expr2=
  140. #28:              ---------- BinaryOp ----------
  141.                     lineNumber=14
  142.                     op=AND
  143.                     expr1=
  144. #29:                  ---------- BooleanConst ----------
  145.                         lineNumber=14
  146.                         iValue=0
  147.                       ------------------------------
  148.                     expr2=
  149. #30:                  ---------- UnaryOp ----------
  150.                         lineNumber=14
  151.                         op=NOT
  152.                         expr=
  153. #31:                      ---------- BooleanConst ----------
  154.                             lineNumber=14
  155.                             iValue=1
  156.                           ------------------------------
  157.                         mode=INTEGER_MODE
  158.                       ------------------------------
  159.                     mode=INTEGER_MODE
  160.                   ------------------------------
  161.                 mode=INTEGER_MODE
  162.               ------------------------------
  163.           ------------------------------
  164. #32:      ---------- AssignStmt ----------
  165.             lineNumber=15
  166.             lValue=
  167. #33:          ---------- Variable ----------
  168.                 lineNumber=15
  169.                 id="r"
  170.                 myDef=
  171.                   *****  This node was printed earlier (#12: VarDecl) *****
  172.                 currentLevel=0
  173.               ------------------------------
  174.             expr=
  175. #34:          ---------- NilConst ----------
  176.                 lineNumber=15
  177.               ------------------------------
  178.           ------------------------------
  179. #35:      ---------- AssignStmt ----------
  180.             lineNumber=16
  181.             lValue=
  182. #36:          ---------- Variable ----------
  183.                 lineNumber=16
  184.                 id="a"
  185.                 myDef=
  186.                   *****  This node was printed earlier (#15: VarDecl) *****
  187.                 currentLevel=0
  188.               ------------------------------
  189.             expr=
  190. #37:          ---------- NilConst ----------
  191.                 lineNumber=16
  192.               ------------------------------
  193.           ------------------------------
  194. #38:      ---------- AssignStmt ----------
  195.             lineNumber=17
  196.             lValue=
  197. #39:          ---------- Variable ----------
  198.                 lineNumber=17
  199.                 id="b"
  200.                 myDef=
  201.                   *****  This node was printed earlier (#9: VarDecl) *****
  202.                 currentLevel=0
  203.               ------------------------------
  204.             expr=
  205. #40:          ---------- BinaryOp ----------
  206.                 lineNumber=17
  207.                 op=EQUAL
  208.                 expr1=
  209. #41:              ---------- NilConst ----------
  210.                     lineNumber=17
  211.                   ------------------------------
  212.                 expr2=
  213. #42:              ---------- ValueOf ----------
  214.                     lineNumber=17
  215.                     lValue=
  216. #43:                  ---------- Variable ----------
  217.                         lineNumber=17
  218.                         id="r"
  219.                         myDef=
  220.                           *****  This node was printed earlier (#12: VarDecl) *****
  221.                         currentLevel=0
  222.                       ------------------------------
  223.                   ------------------------------
  224.                 mode=INTEGER_MODE
  225.               ------------------------------
  226.           ------------------------------
  227. #44:      ---------- AssignStmt ----------
  228.             lineNumber=18
  229.             lValue=
  230. #45:          ---------- Variable ----------
  231.                 lineNumber=18
  232.                 id="b"
  233.                 myDef=
  234.                   *****  This node was printed earlier (#9: VarDecl) *****
  235.                 currentLevel=0
  236.               ------------------------------
  237.             expr=
  238. #46:          ---------- BinaryOp ----------
  239.                 lineNumber=18
  240.                 op=EQUAL
  241.                 expr1=
  242. #47:              ---------- ValueOf ----------
  243.                     lineNumber=18
  244.                     lValue=
  245. #48:                  ---------- Variable ----------
  246.                         lineNumber=18
  247.                         id="a"
  248.                         myDef=
  249.                           *****  This node was printed earlier (#15: VarDecl) *****
  250.                         currentLevel=0
  251.                       ------------------------------
  252.                   ------------------------------
  253.                 expr2=
  254. #49:              ---------- NilConst ----------
  255.                     lineNumber=18
  256.                   ------------------------------
  257.                 mode=INTEGER_MODE
  258.               ------------------------------
  259.           ------------------------------
  260.       ------------------------------
  261. PROGRAM IS
  262.     TYPE
  263.         MyArr IS ARRAY OF integer;
  264.         MyRec IS RECORD f: integer; END;
  265.     VAR
  266.         b: boolean := FALSE;
  267.         r: MyRec := NIL;
  268.         a: MyArr := NIL;
  269.     BEGIN
  270.         b := TRUE;
  271.         b := FALSE;
  272.         b := (TRUE OR (FALSE AND NOT TRUE));
  273.         r := NIL;
  274.         a := NIL;
  275.         b := (NIL = r);
  276.         b := (a = NIL);
  277.     END;
  278.