COMPILATION LISTING OF SEGMENT declare_parse Compiled by: Multics PL/I Compiler, Release 33e, of October 6, 1992 Compiled at: CGI Compiled on: 2000-05-05_1824.94_Fri_mdt Options: optimize map 1 /* *********************************************************** 2* * * 3* * Copyright, (C) Honeywell Information Systems Inc., 1982 * 4* * * 5* * Copyright (c) 1972 by Massachusetts Institute of * 6* * Technology and Honeywell Information Systems, Inc. * 7* * * 8* *********************************************************** */ 9 10 11 /* 12*This procedure is called at entry point declare_parse to parse declare statements. 13*This procedure is called at entry point abort when a parse error occurs. 14* 15*The entry point declare_parse is called to parse declare statements. 16*It merely performs initialization and calls declare_parse_factored. 17*Upon return, it makes sure that the last token processed was a semicolon. 18* 19*The entry point abort is called when an error is detected. 20*It attempts to restart the parse at the first 21*comma after the error token not contained in parentheses. 22* 23*The internal procedure declare_parse_factored does most of the work 24*of parsing declare statements. It is called by declare_parse to 25*parse everything between the word "declare" and the semicolon. 26*It calls attribute_parse to process attributes, and 27*it calls itself recursively to process factored attribute lists 28*when it encounters a left parenthesis. 29**/ 30 31 declare_parse: proc(i,cur_block,labels); 32 33 dcl i fixed bin(15) parameter; 34 dcl (cur_block,labels) ptr parameter; 35 36 declare p ptr; 37 declare (cblock,previous_symbol) ptr internal static; 38 39 declare (n,j) fixed binary(15); 40 declare (k,l,factored_level) fixed binary(15) static internal; 41 42 dcl type bit(9); 43 44 dcl pl1_stat_$cur_statement ptr ext static; 45 dcl pl1_stat_$unwind label external static; 46 47 48 dcl (null,addr,string) builtin; 49 1 1 /* BEGIN INCLUDE FILE parse.incl.pl1 */ 1 2 1 3 1 4 /****^ HISTORY COMMENTS: 1 5* 1) change(91-01-09,Blackmore), approve(91-01-09,MCR8234), 1 6* audit(91-12-05,Huen), install(92-04-24,MR12.5-1011): 1 7* Change entry points for 'lex', 'lex$write_last_line', and 1 8* 'statement_type', for constant reference resolution fix. 1 9* END HISTORY COMMENTS */ 1 10 1 11 declare attribute_parse entry(ptr,ptr,fixed bin(15),bit(1) aligned); 1 12 /* parameter 1: (input) block node ptr */ 1 13 /* parameter 2: (input) symbol node ptr */ 1 14 /* parameter 3: (in/out) token index */ 1 15 /* parameter 4: (input) called while doing generic */ 1 16 1 17 declare context entry(ptr,ptr,fixed bin(15)); 1 18 /* parameter 1: (input) usually token node ptr */ 1 19 /* parameter 2: (input) block node ptr */ 1 20 /* parameter 3: (input) context type */ 1 21 1 22 declare data_list_parse entry(fixed bin(15),ptr,ptr) 1 23 returns(bit(1) aligned); 1 24 /* parameter 1: (in/out) token index */ 1 25 /* parameter 2: (input) block node ptr */ 1 26 /* parameter 3: (output) data list parse tree ptr */ 1 27 /* return: (output) valid parse bit */ 1 28 1 29 declare declare_label entry(ptr,ptr,ptr,bit(3) aligned); 1 30 /* parameter 1: (input) block node ptr */ 1 31 /* parameter 2: (input) statement node ptr */ 1 32 /* parameter 3: (input) label list ptr or null */ 1 33 /* parameter 4: (input) declare type */ 1 34 1 35 declare declare_parse entry(fixed bin(15),ptr,ptr); 1 36 /* parameter 1: (input) token index */ 1 37 /* parameter 2: (input) block node ptr */ 1 38 /* parameter 3: (input) label list ptr or null */ 1 39 1 40 declare declare_parse$abort entry(fixed bin(15),ptr); 1 41 /* parameter 1: (input) error number */ 1 42 /* parameter 2: (input) any node ptr */ 1 43 1 44 declare default_parse entry(fixed bin(15),ptr,ptr); 1 45 /* parameter 1: (input) token index */ 1 46 /* parameter 2: (input) block node ptr */ 1 47 /* parameter 3: (input) label list ptr or null */ 1 48 1 49 declare descriptor_parse entry(ptr,ptr,fixed bin(15)) 1 50 returns(ptr); 1 51 /* parameter 1: (input) block node ptr */ 1 52 /* parameter 2: (input) token node ptr or null */ 1 53 /* parameter 3: (in/out) token index */ 1 54 /* return: (output) symbol node ptr */ 1 55 1 56 declare do_parse entry(fixed bin(15),ptr,bit(12) aligned,ptr,ptr, 1 57 bit(1) aligned,bit(1) aligned,bit(1) aligned); 1 58 /* parameter 1: (in/out) token index */ 1 59 /* parameter 2: (input) label list ptr or null */ 1 60 /* parameter 3: (input) conditions */ 1 61 /* parameter 4: (input) father block node ptr */ 1 62 /* parameter 5: (output) end ptr */ 1 63 /* parameter 6: (input) entry bit */ 1 64 /* parameter 7: (input) return bit */ 1 65 /* parameter 8: (input) iterative do bit */ 1 66 1 67 declare evaluate entry(bit(9) aligned,ptr,ptr) returns(ptr); 1 68 /* parameter 1: (input) opcode */ 1 69 /* parameter 2: (input) left operand (token ptr) */ 1 70 /* parameter 3: (input) right operand (token ptr) */ 1 71 /* return: (output) ptr to result node */ 1 72 1 73 declare expression_parse entry(fixed bin(15),ptr) 1 74 returns(ptr); 1 75 /* parameter 1: (in/out) token index */ 1 76 /* parameter 2: (input) block node ptr */ 1 77 /* return: (output) expression parse tree ptr */ 1 78 1 79 declare format_list_parse entry(fixed bin(15),ptr,ptr,ptr) 1 80 returns(bit(1) aligned); 1 81 /* parameter 1: (in/out) token index */ 1 82 /* parameter 2: (input) block node ptr */ 1 83 /* parameter 3: (input) statement node ptr */ 1 84 /* parameter 4: (output) format list parse tree ptr */ 1 85 /* return: (output) valid parse bit */ 1 86 1 87 declare if_parse entry(fixed bin(15),ptr,bit(12) aligned,ptr,ptr, 1 88 bit(1) aligned); 1 89 /* parameter 1: (in/out) token index */ 1 90 /* parameter 2: (input) label list ptr or null */ 1 91 /* parameter 3: (input) conditions */ 1 92 /* parameter 4: (input) father block node ptr */ 1 93 /* parameter 5: (input) end ptr */ 1 94 /* parameter 6: (output) valid parse bit */ 1 95 1 96 declare io_statement_parse entry(fixed bin(15),ptr,bit(12) aligned,ptr,ptr, 1 97 bit(1) aligned,bit(9) aligned); 1 98 /* parameter 1: (in/out) token index */ 1 99 /* parameter 2: (input) label list ptr or null */ 1 100 /* parameter 3: (input) conditions */ 1 101 /* parameter 4: (input) father block node ptr */ 1 102 /* parameter 5: (output) end ptr */ 1 103 /* parameter 6: (output) valid parse bit */ 1 104 /* parameter 7: (output) statement type */ 1 105 1 106 declare lex entry(ptr); 1 107 /* parameter 1: (input) block node ptr */ 1 108 1 109 declare lex$write_last_line entry(ptr); 1 110 /* parameter 1: (input) block node ptr */ 1 111 1 112 declare lex$initialize_lex entry(ptr,fixed bin(15)); 1 113 /* parameter 1: (input) ptr to source */ 1 114 /* parameter 2: (input) length of source (chars) */ 1 115 1 116 declare on_parse entry(fixed bin(15),ptr,bit(12) aligned,ptr,ptr); 1 117 /* parameter 1: (in/out) token index */ 1 118 /* parameter 2: (input) label list ptr or null */ 1 119 /* parameter 3: (input) conditions */ 1 120 /* parameter 4: (input) father block node ptr */ 1 121 /* parameter 5: (output) end ptr (set to null) */ 1 122 1 123 declare on_parse$revert entry(fixed bin(15),ptr,ptr); 1 124 /* parameter 1: (input) token index */ 1 125 /* parameter 2: (input) statement node ptr */ 1 126 /* parameter 3: (input) block node ptr */ 1 127 1 128 declare parse entry(ptr,ptr,fixed bin(15)); 1 129 /* parameter 1: (output) root ptr */ 1 130 /* parameter 2 (input) source ptr */ 1 131 /* parameter 3: (input) source length */ 1 132 1 133 declare procedure_parse entry(fixed bin(15),ptr,bit(12) aligned,ptr,ptr, 1 134 bit(9) aligned,bit(1) aligned); 1 135 /* parameter 1: (in/out) token index */ 1 136 /* parameter 2: (input) label list ptr or null */ 1 137 /* parameter 3: (input) conditions */ 1 138 /* parameter 4: (input) father block node ptr */ 1 139 /* parameter 5: (output) end ptr */ 1 140 /* parameter 6: (input) block type */ 1 141 /* parameter 7: (input) no return statement bit */ 1 142 1 143 declare process_entry entry(fixed bin(15),bit(9) aligned,ptr,ptr,bit(12) aligned); 1 144 /* parameter 1: (in/out) token index */ 1 145 /* parameter 2: (input) statement type */ 1 146 /* parameter 3: (input) block node ptr */ 1 147 /* parameter 4: (input) label list ptr or null */ 1 148 /* parameter 5: (input) conditions */ 1 149 1 150 declare reference_parse entry(fixed bin(15),ptr) 1 151 returns(ptr); 1 152 /* parameter 1: (in/out) token index */ 1 153 /* parameter 2: (input) block node ptr */ 1 154 /* return: (output) reference parse tree ptr */ 1 155 1 156 declare reserve$rename_parse entry(fixed bin(15)) returns(bit(1) aligned); 1 157 /* parameter 1: (in/out) token index */ 1 158 /* return: (output) success bit */ 1 159 1 160 declare statement_parse entry(fixed bin(15),ptr,bit(12) aligned,ptr,fixed bin(15)); 1 161 /* parameter 1: (in/out) token index */ 1 162 /* parameter 2: (input) label list ptr or null */ 1 163 /* parameter 3: (input) conditions */ 1 164 /* parameter 4: (input) block node ptr */ 1 165 /* parameter 5: (input) statement type */ 1 166 1 167 declare statement_type entry(ptr,fixed bin(15),ptr,bit(12) aligned) 1 168 returns(fixed bin(15)); 1 169 /* parameter 1: (input) block node ptr */ 1 170 /* parameter 2: (in/out) token index */ 1 171 /* parameter 3: (output) label list ptr or null */ 1 172 /* parameter 4: (output) conditions */ 1 173 /* return: (output) statement type */ 1 174 2 1 /****^ ********************************************************* 2 2* * * 2 3* * Copyright, (C) BULL HN Information Systems Inc., 1989 * 2 4* * * 2 5* ********************************************************* */ 2 6 2 7 /* BEGIN INCLUDE FILE ... language_utility.incl.pl1 */ 2 8 2 9 2 10 /****^ HISTORY COMMENTS: 2 11* 1) change(89-07-10,RWaters), approve(89-07-10,MCR8118), audit(89-07-19,Vu), 2 12* install(89-07-31,MR12.3-1066): 2 13* Removed the obsolete parameter source_line from the dcl of error_(). 2 14* END HISTORY COMMENTS */ 2 15 2 16 /* Modified: 6 Jun 1979 by PG to add rank and byte 2 17* * Modified: 9 Jul 1989 by RW updated the declaration of error_ 2 18* */ 2 19 2 20 declare adjust_count entry(pointer); 2 21 /* parameter 1: (input) any node pointer */ 2 22 2 23 declare bindec entry(fixed bin(31)) reducible 2 24 returns(character(12) aligned); 2 25 /* parameter 1: (input) bin value */ 2 26 /* return: (output) character value with blanks */ 2 27 2 28 declare bindec$vs entry(fixed bin(31)) reducible 2 29 returns(character(12) aligned varying); 2 30 /* parameter 1: (input) binary value */ 2 31 /* return: (output) char value without blanks */ 2 32 2 33 declare binoct entry(fixed bin(31)) reducible 2 34 returns(char(12) aligned); 2 35 /* parameter 1: (input) binary value */ 2 36 /* return: (output) char value with blanks */ 2 37 2 38 declare binary_to_octal_string entry(fixed bin(31)) reducible 2 39 returns(char(12) aligned); 2 40 /* parameter 1: (input) binary value */ 2 41 /* return: (output) right-aligned char value */ 2 42 2 43 declare binary_to_octal_var_string entry(fixed bin(31)) reducible 2 44 returns(char(12) varying aligned); 2 45 /* parameter 1: (input) binary value */ 2 46 /* returns: (output) char value without blanks */ 2 47 2 48 declare compare_expression entry(pointer,pointer) reducible 2 49 returns(bit(1) aligned); 2 50 /* parameter 1: (input) any node pointer */ 2 51 /* parameter 2: (input) any node pointer */ 2 52 /* return: (output) compare bit */ 2 53 2 54 declare constant_length entry (pointer, fixed bin (71)) 2 55 returns (bit (1) aligned); 2 56 /* parameter 1: (input) reference node pointer */ 2 57 /* parameter 2: (input) value of constant length */ 2 58 /* return: (output) "1"b if constant length */ 2 59 2 60 declare convert entry(pointer,bit(36) aligned) 2 61 returns(pointer); 2 62 /* parameter 1: (input) any node pointer */ 2 63 /* parameter 2: (input) target type */ 2 64 /* return: (output) target value tree pointer */ 2 65 2 66 declare convert$to_integer entry(pointer,bit(36)aligned) 2 67 returns(pointer); 2 68 /* parameter 1: (input) any node pointer */ 2 69 /* parameter 2: (input) target type */ 2 70 /* return: (output) target value tree pointer */ 2 71 2 72 declare convert$from_builtin entry(pointer,bit(36) aligned) 2 73 returns(pointer); 2 74 /* parameter 1: (input) any node pointer */ 2 75 /* parameter 2: (input) target type */ 2 76 /* return: (output) target value tree pointer */ 2 77 2 78 declare convert$validate entry(pointer,pointer); 2 79 /* parameter 1: (input) source value tree pointer */ 2 80 /* parameter 2: (input) target reference node pointer */ 2 81 2 82 declare convert$to_target_fb entry(pointer,pointer) 2 83 returns(pointer); 2 84 /* parameter 1: (input) source value tree pointer */ 2 85 /* parameter 2: (input) target reference node pointer */ 2 86 /* return: (output) target value tree pointer */ 2 87 2 88 declare convert$to_target entry(pointer,pointer) 2 89 returns(pointer); 2 90 /* parameter 1: (input) source value tree pointer */ 2 91 /* parameter 2: (input) target reference node pointer */ 2 92 /* return: (output) target value tree pointer */ 2 93 2 94 declare copy_expression entry(pointer unaligned) 2 95 returns(pointer); 2 96 /* parameter 1: (input) any node pointer */ 2 97 /* return: (output) any node pointer */ 2 98 2 99 declare copy_expression$copy_sons entry(pointer,pointer); 2 100 /* parameter 1: (input) father symbol node pointer */ 2 101 /* parameter 2: (input) stepfather symbol node ptr */ 2 102 2 103 declare copy_unique_expression entry(pointer) 2 104 returns(pointer); 2 105 /* parameter 1: (input) any node pointer */ 2 106 /* return: (output) any node pointer */ 2 107 2 108 declare create_array entry() 2 109 returns(pointer); 2 110 /* return: (output) array node pointer */ 2 111 2 112 declare create_block entry(bit(9) aligned,pointer) 2 113 returns(pointer); 2 114 /* parameter 1: (input) block type */ 2 115 /* parameter 2: (input) father block node pointer */ 2 116 /* return: (output) block node pointer */ 2 117 2 118 declare create_bound entry() 2 119 returns(pointer); 2 120 /* return: (output) bound node pointer */ 2 121 2 122 declare create_context entry(pointer,pointer) 2 123 returns(pointer); 2 124 /* parameter 1: (input) block node pointer */ 2 125 /* parameter 2: (input) token pointer */ 2 126 /* return: (output) context node pointer */ 2 127 2 128 declare create_cross_reference entry() 2 129 returns(pointer); 2 130 /* return: (output) cross reference node pointer */ 2 131 2 132 declare create_default entry 2 133 returns(pointer); 2 134 /* return: (output) default node pointer */ 2 135 2 136 declare create_identifier entry() 2 137 returns(pointer); 2 138 /* return: (output) token node pointer */ 2 139 2 140 declare create_label entry(pointer,pointer,bit(3) aligned) 2 141 returns(pointer); 2 142 /* parameter 1: (input) block node pointer */ 2 143 /* parameter 2: (input) token node pointer */ 2 144 /* parameter 3: (input) declare type */ 2 145 /* return: (output) label node pointer */ 2 146 2 147 declare create_list entry(fixed bin(15)) 2 148 returns(pointer); 2 149 /* parameter 1: (input) number of list elements */ 2 150 /* return: (output) list node pointer */ 2 151 2 152 declare create_operator entry(bit(9) aligned,fixed bin(15)) 2 153 returns(pointer); 2 154 /* parameter 1: (input) operator type */ 2 155 /* parameter 2: (input) number of operands */ 2 156 /* return: (output) operator node pointer */ 2 157 2 158 declare create_reference entry(pointer) 2 159 returns(pointer); 2 160 /* parameter 1: (input) symbol node pointer */ 2 161 /* return: (output) reference node pointer */ 2 162 2 163 declare create_statement entry(bit(9) aligned,pointer,pointer,bit(12) aligned) 2 164 returns(pointer); 2 165 /* parameter 1: (input) statement type */ 2 166 /* parameter 2: (input) block node pointer */ 2 167 /* parameter 3: (input) label node pointer */ 2 168 /* parameter 4: (input) conditions */ 2 169 /* return: (output) statement node pointer */ 2 170 2 171 declare create_statement$prologue entry(bit(9) aligned,pointer,pointer,bit(12) aligned) 2 172 returns(pointer); 2 173 /* parameter 1: (input) statement type */ 2 174 /* parameter 2: (input) block node pointer */ 2 175 /* parameter 3: (input) label node pointer */ 2 176 /* parameter 4: (input) conditions */ 2 177 /* return: (output) statement node pointer */ 2 178 2 179 declare create_storage entry(fixed bin(15)) 2 180 returns(pointer); 2 181 /* parameter 1: (input) number of words */ 2 182 /* return: (output) storage block pointer */ 2 183 2 184 declare create_symbol entry(pointer,pointer,bit(3) aligned) 2 185 returns(pointer); 2 186 /* parameter 1: (input) block node pointer */ 2 187 /* parameter 2: (input) token node pointer */ 2 188 /* parameter 3: (input) declare type */ 2 189 /* return: (output) symbol node pointer */ 2 190 2 191 declare create_token entry (character (*), bit (9) aligned) 2 192 returns (ptr); 2 193 /* parameter 1: (input) token string */ 2 194 /* parameter 2: (input) token type */ 2 195 /* return: (output) token node ptr */ 2 196 2 197 declare create_token$init_hash_table entry (); 2 198 2 199 declare create_token$protected entry (char (*), bit (9) aligned, bit (18) aligned) 2 200 returns (ptr); 2 201 /* parameter 1: (input) token string */ 2 202 /* parameter 2: (input) token type */ 2 203 /* parameter 3: (input) protected flag */ 2 204 /* return: (output) token node ptr */ 2 205 2 206 declare decbin entry(character(*) aligned) reducible 2 207 returns(fixed bin(31)); 2 208 /* parameter 1: (input) decimal character string */ 2 209 /* return: (output) binary value */ 2 210 2 211 declare declare_constant entry(bit(*) aligned,bit(36) aligned,fixed bin(31),fixed bin(15)) 2 212 returns(pointer); 2 213 /* parameter 1: (input) value */ 2 214 /* parameter 2: (input) type */ 2 215 /* parameter 3: (input) size */ 2 216 /* parameter 4: (input) scale */ 2 217 /* return: (output) reference node pointer */ 2 218 2 219 declare declare_constant$bit entry(bit(*) aligned) 2 220 returns(pointer); 2 221 /* parameter 1: (input) bit */ 2 222 /* return: (output) reference node pointer */ 2 223 2 224 declare declare_constant$char entry(character(*) aligned) 2 225 returns(pointer); 2 226 /* parameter 1: (input) character */ 2 227 /* return: (output) reference node pointer */ 2 228 2 229 declare declare_constant$desc entry(bit(*) aligned) 2 230 returns(pointer); 2 231 /* parameter 1: (input) descriptor bit value */ 2 232 /* return: (output) reference node pointer */ 2 233 2 234 declare declare_constant$integer entry(fixed bin(31)) /* note...should really be fixed bin(24) */ 2 235 returns(pointer); 2 236 /* parameter 1: (input) integer */ 2 237 /* return: (output) reference node pointer */ 2 238 2 239 declare declare_descriptor entry(pointer,pointer,pointer,pointer,bit(2) aligned) 2 240 returns(pointer); 2 241 /* parameter 1: (input) block node pointer */ 2 242 /* parameter 2: (input) statement node pointer */ 2 243 /* parameter 3: (input) symbol node pointer */ 2 244 /* parameter 4: (input) loc pointer */ 2 245 /* parameter 5: (input) array descriptor bit 2 246* cross_section bit */ 2 247 /* return: (output) reference node pointer */ 2 248 2 249 declare declare_descriptor$ctl entry(pointer,pointer,pointer,pointer,bit(2) aligned) 2 250 returns(pointer); 2 251 /* parameter 1: (input) block node pointer */ 2 252 /* parameter 2: (input) statement node pointer */ 2 253 /* parameter 3: (input) symbol node pointer */ 2 254 /* parameter 4: (input) loc pointer */ 2 255 /* parameter 5: (input) array descriptor bit 2 256* cross_section bit */ 2 257 /* return: (output) reference node pointer */ 2 258 2 259 declare declare_descriptor$param entry(pointer,pointer,pointer,pointer,bit(2) aligned) 2 260 returns(pointer); 2 261 /* parameter 1: (input) block node pointer */ 2 262 /* parameter 2: (input) statement node pointer */ 2 263 /* parameter 3: (input) symbol node pointer */ 2 264 /* parameter 4: (input) loc pointer */ 2 265 /* parameter 5: (input) array descriptor bit 2 266* cross_section bit */ 2 267 /* return: (output) reference node pointer */ 2 268 2 269 declare declare_integer entry(pointer) 2 270 returns(pointer); 2 271 /* parameter 1: (input) block node pointer */ 2 272 /* return: (output) reference node pointer */ 2 273 2 274 declare declare_picture entry(char(*)aligned,pointer,fixed bin(15)); 2 275 /* parameter 1: (input) picture string */ 2 276 /* parameter 2: (input) symbol node pointer */ 2 277 /* parameter 3: (output) error code, if any */ 2 278 2 279 declare declare_picture_temp entry(char(*) aligned,fixed bin(31),bit(1) aligned,bit(1) aligned) 2 280 returns(pointer); 2 281 /* parameter 1: (input) picture string */ 2 282 /* parameter 2: (input) scalefactor of picture */ 2 283 /* parameter 3: (input) ="1"b => complex picture */ 2 284 /* parameter 4: (input) ="1"b => unaligned temp */ 2 285 /* return: (output) reference node pointer */ 2 286 2 287 declare declare_pointer entry(pointer) 2 288 returns(pointer); 2 289 /* parameter 1: (input) block node pointer */ 2 290 /* return: (output) reference node pointer */ 2 291 2 292 declare declare_temporary entry(bit(36) aligned,fixed bin(31),fixed bin(15),pointer) 2 293 returns(pointer); 2 294 /* parameter 1: (input) type */ 2 295 /* parameter 2: (input) precision */ 2 296 /* parameter 3: (input) scale */ 2 297 /* parameter 4: (input) length */ 2 298 /* return: (output) reference node pointer */ 2 299 2 300 declare decode_node_id entry(pointer,bit(1) aligned) 2 301 returns(char(120) varying); 2 302 /* parameter 1: (input) node pointer */ 2 303 /* parameter 2: (input) ="1"b => capitals */ 2 304 /* return: (output) source line id */ 2 305 2 306 declare decode_source_id entry( 3 1 1 structure unaligned, 3 2 2 /* file_number */ bit(8), 3 3 2 /* line_number */ bit(14), 3 4 2 /* stmt_number */ bit(5), 2 307 2 308 bit(1) aligned) 2 309 returns(char(120) varying); 2 310 /* parameter 1: (input) source id */ 2 311 /* parameter 2: (input) ="1"b => capitals */ 2 312 /* return: (output) source line id */ 2 313 2 314 declare error entry(fixed bin(15),pointer,pointer); 2 315 /* parameter 1: (input) error number */ 2 316 /* parameter 2: (input) statement node pointer or null*/ 2 317 /* parameter 3: (input) token node pointer */ 2 318 2 319 declare error$omit_text entry(fixed bin(15),pointer,pointer); 2 320 /* parameter 1: (input) error number */ 2 321 /* parameter 2: (input) statement node pointer or null*/ 2 322 /* parameter 3: (input) token node pointer */ 2 323 2 324 declare error_ entry(fixed bin(15), 4 1 1 structure unaligned, 4 2 2 /* file_number */ bit(8), 4 3 2 /* line_number */ bit(14), 4 4 2 /* stmt_number */ bit(5), 2 325 2 326 pointer,fixed bin(8),fixed bin(23),fixed bin(11)); 2 327 /* parameter 1: (input) error number */ 2 328 /* parameter 2: (input) statement id */ 2 329 /* parameter 3: (input) any node pointer */ 2 330 /* parameter 4: (input) source segment */ 2 331 /* parameter 5: (input) source starting character */ 2 332 /* parameter 6: (input) source length */ 2 333 2 334 declare error_$no_text entry(fixed bin(15), 5 1 1 structure unaligned, 5 2 2 /* file_number */ bit(8), 5 3 2 /* line_number */ bit(14), 5 4 2 /* stmt_number */ bit(5), 2 335 2 336 pointer); 2 337 /* parameter 1: (input) error number */ 2 338 /* parameter 2: (input) statement id */ 2 339 /* parameter 3: (input) any node pointer */ 2 340 2 341 declare error_$initialize_error entry(); 2 342 2 343 declare error_$finish entry(); 2 344 2 345 declare free_node entry(pointer); 2 346 /* parameter 1: any node pointer */ 2 347 2 348 declare get_array_size entry(pointer,fixed bin(3)); 2 349 /* parameter 1: (input) symbol node pointer */ 2 350 /* parameter 2: (input) units */ 2 351 2 352 declare get_size entry(pointer); 2 353 /* parameter 1: (input) symbol node pointer */ 2 354 2 355 declare merge_attributes external entry(pointer,pointer) 2 356 returns(bit(1) aligned); 2 357 /* parameter 1: (input) target symbol node pointer */ 2 358 /* parameter 2: (input) source symbol node pointer */ 2 359 /* return: (output) "1"b if merge was unsuccessful */ 2 360 2 361 declare optimizer entry(pointer); 2 362 /* parameter 1: (input) root pointer */ 2 363 2 364 declare parse_error entry(fixed bin(15),pointer); 2 365 /* parameter 1: (input) error number */ 2 366 /* parameter 2: (input) any node pointer */ 2 367 2 368 declare parse_error$no_text entry(fixed bin(15),pointer); 2 369 /* parameter 1: (input) error number */ 2 370 /* parameter 2: (input) any node pointer */ 2 371 2 372 declare pl1_error_print$write_out 2 373 entry(fixed bin(15), 6 1 1 structure unaligned, 6 2 2 /* file_number */ bit(8), 6 3 2 /* line_number */ bit(14), 6 4 2 /* stmt_number */ bit(5), 2 374 2 375 pointer,fixed bin(11),fixed bin(31),fixed bin(31),fixed bin(15)); 2 376 /* parameter 1: (input) error number */ 2 377 /* parameter 2: (input) statement identification */ 2 378 /* parameter 3: (input) any node pointer */ 2 379 /* parameter 4: (input) source segment */ 2 380 /* parameter 5: (input) source character index */ 2 381 /* parameter 6: (input) source length */ 2 382 /* parameter 7: (input) source line */ 2 383 2 384 declare pl1_error_print$listing_segment 2 385 entry(fixed bin(15), 7 1 1 structure unaligned, 7 2 2 /* file_number */ bit(8), 7 3 2 /* line_number */ bit(14), 7 4 2 /* stmt_number */ bit(5), 2 386 2 387 pointer); 2 388 /* parameter 1: (input) error number */ 2 389 /* parameter 2: (input) statement identification */ 2 390 /* parameter 3: (input) token node pointer */ 2 391 2 392 declare pl1_print$varying entry(character(*) aligned varying); 2 393 /* parameter 1: (input) string */ 2 394 2 395 declare pl1_print$varying_nl entry(character(*) aligned varying); 2 396 /* parameter 1: (input) string */ 2 397 2 398 declare pl1_print$non_varying entry(character(*) aligned,fixed bin(31)); 2 399 /* parameter 1: (input) string */ 2 400 /* parameter 2: (input) string length or 0 */ 2 401 2 402 declare pl1_print$non_varying_nl entry(character(*) aligned,fixed bin(31)); 2 403 /* parameter 1: (input) string */ 2 404 /* parameter 2: (input) string length or 0 */ 2 405 2 406 declare pl1_print$string_pointer entry(pointer,fixed bin(31)); 2 407 /* parameter 1: (input) string pointer */ 2 408 /* parameter 2: (input) string size */ 2 409 2 410 declare pl1_print$string_pointer_nl entry(pointer,fixed bin(31)); 2 411 /* parameter 1: (input) string pointer */ 2 412 /* parameter 2: (input) string length or 0 */ 2 413 2 414 declare pl1_print$unaligned_nl entry(character(*) unaligned,fixed bin(31)); 2 415 /* parameter 1: (input) string */ 2 416 /* parameter 2: (input) length */ 2 417 2 418 declare pl1_print$for_lex entry (ptr, fixed bin (14), fixed bin (21), fixed bin (21), bit (1) aligned, bit (1) aligned); 2 419 /* parameter 1: (input) ptr to base of source segment */ 2 420 /* parameter 2: (input) line number */ 2 421 /* parameter 3: (input) starting offset in source seg */ 2 422 /* parameter 4: (input) number of chars to copy */ 2 423 /* parameter 5: (input) ON iff shd print line number */ 2 424 /* parameter 6: (input) ON iff line begins in comment */ 2 425 2 426 declare refer_extent entry(pointer,pointer); 2 427 /* parameter 1: (input/output) null,ref node,op node pointer */ 2 428 /* parameter 2: (input) null,ref node,op node pointer */ 2 429 2 430 declare reserve$clear entry() 2 431 returns(pointer); 2 432 /* return: (output) pointer */ 2 433 2 434 declare reserve$declare_lib entry(fixed bin(15)) 2 435 returns(pointer); 2 436 /* parameter 1: (input) builtin function number */ 2 437 /* return: (output) pointer */ 2 438 2 439 declare reserve$read_lib entry(fixed bin(15)) 2 440 returns(pointer); 2 441 /* parameter 1: (input) builtin function number */ 2 442 /* return: (output) pointer */ 2 443 2 444 declare semantic_translator entry(); 2 445 2 446 declare semantic_translator$abort entry(fixed bin(15),pointer); 2 447 /* parameter 1: (input) error number */ 2 448 /* parameter 2: (input) any node pointer */ 2 449 2 450 declare semantic_translator$error entry(fixed bin(15),pointer); 2 451 /* parameter 1: (input) error number */ 2 452 /* parameter 2: (input) any node pointer */ 2 453 2 454 declare share_expression entry(ptr) 2 455 returns(ptr); 2 456 /* parameter 1: (input) usually operator node pointer */ 2 457 /* return: (output) tree pointer or null */ 2 458 2 459 declare token_to_binary entry(ptr) reducible 2 460 returns(fixed bin(31)); 2 461 /* parameter 1: (input) token node pointer */ 2 462 /* return: (output) converted binary value */ 2 463 2 464 /* END INCLUDE FILE ... language_utility.incl.pl1 */ 1 175 1 176 /* END INCLUDE FILE parse.incl.pl1 */ 50 8 1 /* BEGIN INCLUDE FILE ... block.incl.pl1 */ 8 2 /* Modified 22 Ocober 1980 by M. N. Davidoff to increase max block.number to 511 */ 8 3 /* format: style3,idind30 */ 8 4 8 5 declare 1 block aligned based, 8 6 2 node_type bit (9) unaligned, 8 7 2 source_id structure unaligned, 8 8 3 file_number bit (8), 8 9 3 line_number bit (14), 8 10 3 statement_number bit (5), 8 11 2 father ptr unaligned, 8 12 2 brother ptr unaligned, 8 13 2 son ptr unaligned, 8 14 2 declaration ptr unaligned, 8 15 2 end_declaration ptr unaligned, 8 16 2 default ptr unaligned, 8 17 2 end_default ptr unaligned, 8 18 2 context ptr unaligned, 8 19 2 prologue ptr unaligned, 8 20 2 end_prologue ptr unaligned, 8 21 2 main ptr unaligned, 8 22 2 end_main ptr unaligned, 8 23 2 return_values ptr unaligned, 8 24 2 return_count ptr unaligned, 8 25 2 plio_ps ptr unaligned, 8 26 2 plio_fa ptr unaligned, 8 27 2 plio_ffsb ptr unaligned, 8 28 2 plio_ssl ptr unaligned, 8 29 2 plio_fab2 ptr unaligned, 8 30 2 block_type bit (9) unaligned, 8 31 2 prefix bit (12) unaligned, 8 32 2 like_attribute bit (1) unaligned, 8 33 2 no_stack bit (1) unaligned, 8 34 2 get_data bit (1) unaligned, 8 35 2 flush_at_call bit (1) unaligned, 8 36 2 processed bit (1) unaligned, 8 37 2 text_displayed bit (1) unaligned, 8 38 2 number fixed bin (9) unsigned unaligned, 8 39 2 free_temps dimension (3) ptr, /* these fields are used by the code generator */ 8 40 2 temp_list ptr, 8 41 2 entry_list ptr, 8 42 2 o_and_s ptr, 8 43 2 why_nonquick aligned, 8 44 3 auto_adjustable_storage bit (1) unaligned, 8 45 3 returns_star_extents bit (1) unaligned, 8 46 3 stack_extended_by_args bit (1) unaligned, 8 47 3 invoked_by_format bit (1) unaligned, 8 48 3 format_statement bit (1) unaligned, 8 49 3 io_statements bit (1) unaligned, 8 50 3 assigned_to_entry_var bit (1) unaligned, 8 51 3 condition_statements bit (1) unaligned, 8 52 3 no_owner bit (1) unaligned, 8 53 3 recursive_call bit (1) unaligned, 8 54 3 options_non_quick bit (1) unaligned, 8 55 3 options_variable bit (1) unaligned, 8 56 3 never_referenced bit (1) unaligned, 8 57 3 pad_nonquick bit (5) unaligned, 8 58 2 prologue_flag bit (1) unaligned, 8 59 2 options_main bit (1) unaligned, 8 60 2 pad bit (16) unaligned, 8 61 2 number_of_entries fixed bin (17), 8 62 2 level fixed bin (17), 8 63 2 last_auto_loc fixed bin (17), 8 64 2 symbol_block fixed bin (17), 8 65 2 entry_info fixed bin (18), 8 66 2 enter structure unaligned, 8 67 3 start fixed bin (17), 8 68 3 end fixed bin (17), 8 69 2 leave structure unaligned, 8 70 3 start fixed bin (17), 8 71 3 end fixed bin (17), 8 72 2 owner ptr; 8 73 8 74 declare max_block_number fixed bin internal static options (constant) initial (511); 8 75 8 76 /* END INCLUDE FILE ... block.incl.pl1 */ 51 9 1 /* BEGIN INCLUDE FILE ... token_types.incl.pl1 */ 9 2 9 3 dcl ( no_token initial("000000000"b), /* token types */ 9 4 identifier initial("100000000"b), 9 5 isub initial("010000000"b), 9 6 plus initial("001000001"b), 9 7 minus initial("001000010"b), 9 8 asterisk initial("001000011"b), 9 9 slash initial("001000100"b), 9 10 expon initial("001000101"b), 9 11 not initial("001000110"b), 9 12 and initial("001000111"b), 9 13 or initial("001001000"b), 9 14 cat initial("001001001"b), 9 15 eq initial("001001010"b), 9 16 ne initial("001001011"b), 9 17 lt initial("001001100"b), 9 18 gt initial("001001101"b), 9 19 le initial("001001110"b), 9 20 ge initial("001001111"b), 9 21 ngt initial("001010000"b), 9 22 nlt initial("001010001"b), 9 23 assignment initial("001010010"b), 9 24 colon initial("001010011"b), 9 25 semi_colon initial("001010100"b), 9 26 comma initial("001010101"b), 9 27 period initial("001010110"b), 9 28 arrow initial("001010111"b), 9 29 left_parn initial("001011000"b), 9 30 right_parn initial("001011001"b), 9 31 percent initial("001011100"b), 9 32 bit_string initial("000100001"b), 9 33 char_string initial("000100010"b), 9 34 bin_integer initial("000110001"b), 9 35 dec_integer initial("000110011"b), 9 36 fixed_bin initial("000110000"b), 9 37 fixed_dec initial("000110010"b), 9 38 float_bin initial("000110100"b), 9 39 float_dec initial("000110110"b), 9 40 i_bin_integer initial("000111001"b), 9 41 i_dec_integer initial("000111011"b), 9 42 i_fixed_bin initial("000111000"b), 9 43 i_fixed_dec initial("000111010"b), 9 44 i_float_bin initial("000111100"b), 9 45 i_float_dec initial("000111110"b)) bit (9) aligned internal static options (constant); 9 46 9 47 dcl ( is_identifier initial ("100000000"b), /* token type masks */ 9 48 is_isub initial ("010000000"b), 9 49 is_delimiter initial ("001000000"b), 9 50 is_constant initial ("000100000"b), 9 51 is_arith_constant initial ("000010000"b), /* N.B. not really a mask...s/b "000110000"b */ 9 52 is_arithmetic_constant initial ("000110000"b), 9 53 is_imaginary_constant initial ("000111000"b), 9 54 is_float_constant initial ("000110100"b), 9 55 is_decimal_constant initial ("000110010"b), 9 56 is_integral_constant initial ("000110001"b) 9 57 ) bit(9) internal static aligned options(constant); 9 58 9 59 /* END INCLUDE FILE ... token_types.incl.pl1 */ 52 10 1 /* statement types */ 10 2 10 3 dcl ( unknown_statement initial("000000000"b), 10 4 allocate_statement initial("000000001"b), 10 5 assignment_statement initial("000000010"b), 10 6 begin_statement initial("000000011"b), 10 7 call_statement initial("000000100"b), 10 8 close_statement initial("000000101"b), 10 9 declare_statement initial("000000110"b), 10 10 lock_statement initial("000000111"b), 10 11 delete_statement initial("000001000"b), 10 12 display_statement initial("000001001"b), 10 13 do_statement initial("000001010"b), 10 14 else_clause initial("000001011"b), 10 15 end_statement initial("000001100"b), 10 16 entry_statement initial("000001101"b), 10 17 exit_statement initial("000001110"b), 10 18 format_statement initial("000001111"b), 10 19 free_statement initial("000010000"b), 10 20 get_statement initial("000010001"b), 10 21 goto_statement initial("000010010"b), 10 22 if_statement initial("000010011"b), 10 23 locate_statement initial("000010100"b), 10 24 null_statement initial("000010101"b), 10 25 on_statement initial("000010110"b), 10 26 open_statement initial("000010111"b), 10 27 procedure_statement initial("000011000"b), 10 28 put_statement initial("000011001"b), 10 29 read_statement initial("000011010"b), 10 30 return_statement initial("000011011"b), 10 31 revert_statement initial("000011100"b), 10 32 rewrite_statement initial("000011101"b), 10 33 signal_statement initial("000011110"b), 10 34 stop_statement initial("000011111"b), 10 35 system_on_unit initial("000100000"b), 10 36 unlock_statement initial("000100001"b), 10 37 wait_statement initial("000100010"b), 10 38 write_statement initial("000100011"b), 10 39 default_statement initial("000100100"b), 10 40 continue_statement initial("000100101"b)) bit(9) internal static aligned options(constant); 53 11 1 /* BEGIN INCLUDE FILE ... symbol.incl.pl1 */ 11 2 11 3 dcl 1 symbol based aligned, 11 4 2 node_type bit(9) unal, 11 5 2 source_id structure unal, 11 6 3 file_number bit(8), 11 7 3 line_number bit(14), 11 8 3 statement_number bit(5), 11 9 2 location fixed(18) unal unsigned, 11 10 2 allocated bit(1) unal, 11 11 2 dcl_type bit(3) unal, 11 12 2 reserved bit(6) unal, 11 13 2 pix unal, 11 14 3 pic_fixed bit(1) unal, 11 15 3 pic_float bit(1) unal, 11 16 3 pic_char bit(1) unal, 11 17 3 pic_scale fixed(7) unal, 11 18 3 pic_size fixed(7) unal, 11 19 2 level fixed(8) unal, 11 20 2 boundary fixed(3) unal, 11 21 2 size_units fixed(3) unal, 11 22 2 scale fixed(7) unal, 11 23 2 runtime bit(18) unal, 11 24 2 runtime_offset bit(18) unal, 11 25 2 block_node ptr unal, 11 26 2 token ptr unal, 11 27 2 next ptr unal, 11 28 2 multi_use ptr unal, 11 29 2 cross_references ptr unal, 11 30 2 initial ptr unal, 11 31 2 array ptr unal, 11 32 2 descriptor ptr unal, 11 33 2 equivalence ptr unal, 11 34 2 reference ptr unal, 11 35 2 general ptr unal, 11 36 2 father ptr unal, 11 37 2 brother ptr unal, 11 38 2 son ptr unal, 11 39 2 word_size ptr unal, 11 40 2 bit_size ptr unal, 11 41 2 dcl_size ptr unal, 11 42 2 symtab_size ptr unal, 11 43 2 c_word_size fixed(24), 11 44 2 c_bit_size fixed(24), 11 45 2 c_dcl_size fixed(24), 11 46 11 47 2 attributes structure aligned, 11 48 3 data_type structure unal, 11 49 4 structure bit(1) , 11 50 4 fixed bit(1), 11 51 4 float bit(1), 11 52 4 bit bit(1), 11 53 4 char bit(1), 11 54 4 ptr bit(1), 11 55 4 offset bit(1), 11 56 4 area bit(1), 11 57 4 label bit(1), 11 58 4 entry bit(1), 11 59 4 file bit(1), 11 60 4 arg_descriptor bit(1), 11 61 4 storage_block bit(1), 11 62 4 explicit_packed bit(1), /* options(packed) */ 11 63 4 condition bit(1), 11 64 4 format bit(1), 11 65 4 builtin bit(1), 11 66 4 generic bit(1), 11 67 4 picture bit(1), 11 68 11 69 3 misc_attributes structure unal, 11 70 4 dimensioned bit(1), 11 71 4 initialed bit(1), 11 72 4 aligned bit(1), 11 73 4 unaligned bit(1), 11 74 4 signed bit(1), 11 75 4 unsigned bit(1), 11 76 4 precision bit(1), 11 77 4 varying bit(1), 11 78 4 local bit(1), 11 79 4 decimal bit(1), 11 80 4 binary bit(1), 11 81 4 real bit(1), 11 82 4 complex bit(1), 11 83 4 variable bit(1), 11 84 4 reducible bit(1), 11 85 4 irreducible bit(1), 11 86 4 returns bit(1), 11 87 4 position bit(1), 11 88 4 internal bit(1), 11 89 4 external bit(1), 11 90 4 like bit(1), 11 91 4 member bit(1), 11 92 4 non_varying bit(1), 11 93 4 options bit(1), 11 94 4 variable_arg_list bit(1), /* options(variable) */ 11 95 4 alloc_in_text bit(1), /* options(constant) */ 11 96 11 97 3 storage_class structure unal, 11 98 4 auto bit(1), 11 99 4 based bit(1), 11 100 4 static bit(1), 11 101 4 controlled bit(1), 11 102 4 defined bit(1), 11 103 4 parameter bit(1), 11 104 4 param_desc bit(1), 11 105 4 constant bit(1), 11 106 4 temporary bit(1), 11 107 4 return_value bit(1), 11 108 11 109 3 file_attributes structure unal, 11 110 4 print bit(1), 11 111 4 input bit(1), 11 112 4 output bit(1), 11 113 4 update bit(1), 11 114 4 stream bit(1), 11 115 4 reserved_1 bit(1), 11 116 4 record bit(1), 11 117 4 sequential bit(1), 11 118 4 direct bit(1), 11 119 4 interactive bit(1), /* env(interactive) */ 11 120 4 reserved_2 bit(1), 11 121 4 reserved_3 bit(1), 11 122 4 stringvalue bit(1), /* env(stringvalue) */ 11 123 4 keyed bit(1), 11 124 4 reserved_4 bit(1), 11 125 4 environment bit(1), 11 126 11 127 3 compiler_developed structure unal, 11 128 4 aliasable bit(1), 11 129 4 packed bit(1), 11 130 4 passed_as_arg bit(1), 11 131 4 allocate bit(1), 11 132 4 set bit(1), 11 133 4 exp_extents bit(1), 11 134 4 refer_extents bit(1), 11 135 4 star_extents bit(1), 11 136 4 isub bit(1), 11 137 4 put_in_symtab bit(1), 11 138 4 contiguous bit(1), 11 139 4 put_data bit(1), 11 140 4 overlayed bit(1), 11 141 4 error bit(1), 11 142 4 symtab_processed bit(1), 11 143 4 overlayed_by_builtin bit(1), 11 144 4 defaulted bit(1), 11 145 4 connected bit(1); 11 146 11 147 /* END INCLUDE FILE ... symbol.incl.pl1 */ 54 12 1 dcl pl1_stat_$token_list_ptr ptr external static; /* pointer to token list */ 12 2 dcl token_list(token_list_length) ptr based(token_list_pointer); 12 3 dcl token_list_pointer ptr initial(pl1_stat_$token_list_ptr); /* for efficiency only */ 12 4 dcl token_list_length fixed(15) internal static initial(3000) options(constant); 12 5 12 6 dcl 1 pl1_stat_$statement_id external static, 12 7 2 file_number bit(8), 12 8 2 line_number bit(14), 12 9 2 statement_number bit(5); 12 10 12 11 dcl 1 t_table based(token_list(k)) aligned, 12 12 2 node_type bit(9) unaligned, 12 13 2 type bit(9) unaligned, 12 14 2 loc bit(18) unaligned, 12 15 2 declaration ptr unaligned, 12 16 2 next ptr unaligned, 12 17 2 size fixed(9), 12 18 2 string char(n refer(t_table.size)); 55 13 1 /* BEGIN INCLUDE FILE ... token.incl.pl1 */ 13 2 13 3 dcl 1 token based aligned, 13 4 2 node_type bit(9) unaligned, 13 5 2 type bit(9) unaligned, 13 6 2 loc bit(18) unaligned, /* symtab offset for identifiers, "p" flag for constants */ 13 7 2 declaration ptr unaligned, 13 8 2 next ptr unaligned, 13 9 2 size fixed(9), 13 10 2 string char(n refer(token.size)); 13 11 13 12 /* END INCLUDE FILE ... token.incl.pl1 */ 56 14 1 /* BEGIN INCLUDE FILE ... declare_type.incl.pl1 */ 14 2 14 3 /* Modified: 25 Apr 1979 by PCK to implement 4-bit decimal */ 14 4 14 5 dcl ( by_declare initial("001"b), 14 6 by_explicit_context initial("010"b), 14 7 by_context initial("011"b), 14 8 by_implication initial("100"b), 14 9 by_compiler initial("101"b)) int static bit(3) aligned options(constant); 14 10 14 11 /* END INCLUDE FILE ... declare_type.incl.pl1 */ 57 15 1 /* BEGIN INCLUDE FILE ... reference.incl.pl1 */ 15 2 15 3 dcl 1 reference based aligned, 15 4 2 node_type bit(9) unaligned, 15 5 2 array_ref bit(1) unaligned, 15 6 2 varying_ref bit(1) unaligned, 15 7 2 shared bit(1) unaligned, 15 8 2 put_data_sw bit(1) unaligned, 15 9 2 processed bit(1) unaligned, 15 10 2 units fixed(3) unaligned, 15 11 2 ref_count fixed(17) unaligned, 15 12 2 c_offset fixed(24), 15 13 2 c_length fixed(24), 15 14 2 symbol ptr unaligned, 15 15 2 qualifier ptr unaligned, 15 16 2 offset ptr unaligned, 15 17 2 length ptr unaligned, 15 18 2 subscript_list ptr unaligned, 15 19 /* these fields are used by the 645 code generator */ 15 20 2 address structure unaligned, 15 21 3 base bit(3), 15 22 3 offset bit(15), 15 23 3 op bit(9), 15 24 3 no_address bit(1), 15 25 3 inhibit bit(1), 15 26 3 ext_base bit(1), 15 27 3 tag bit(6), 15 28 2 info structure unaligned, 15 29 3 address_in structure, 15 30 4 b dimension(0:7) bit(1), 15 31 4 storage bit(1), 15 32 3 value_in structure, 15 33 4 a bit(1), 15 34 4 q bit(1), 15 35 4 aq bit(1), 15 36 4 string_aq bit(1), 15 37 4 complex_aq bit(1), 15 38 4 decimal_aq bit(1), 15 39 4 b dimension(0:7) bit(1), 15 40 4 storage bit(1), 15 41 4 indicators bit(1), 15 42 4 x dimension(0:7) bit(1), 15 43 3 other structure, 15 44 4 big_offset bit(1), 15 45 4 big_length bit(1), 15 46 4 modword_in_offset bit(1), 15 47 2 data_type fixed(5) unaligned, 15 48 2 bits structure unaligned, 15 49 3 padded_ref bit(1), 15 50 3 aligned_ref bit(1), 15 51 3 long_ref bit(1), 15 52 3 forward_ref bit(1), 15 53 3 ic_ref bit(1), 15 54 3 temp_ref bit(1), 15 55 3 defined_ref bit(1), 15 56 3 evaluated bit(1), 15 57 3 allocate bit(1), 15 58 3 allocated bit(1), 15 59 3 aliasable bit(1), 15 60 3 even bit(1), 15 61 3 perm_address bit(1), 15 62 3 aggregate bit(1), 15 63 3 hit_zero bit(1), 15 64 3 dont_save bit(1), 15 65 3 fo_in_qual bit(1), 15 66 3 hard_to_load bit(1), 15 67 2 relocation bit(12) unaligned, 15 68 2 more_bits structure unaligned, 15 69 3 substr bit(1), 15 70 3 padded_for_store_ref bit(1), 15 71 3 aligned_for_store_ref bit(1), 15 72 3 mbz bit(15), 15 73 2 store_ins bit(18) unaligned; 15 74 15 75 /* END INCLUDE FILE ... reference.incl.pl1 */ 58 59 60 61 begin: 62 k,l=i; /* move the parameters into local static storage */ 63 cblock=cur_block; /* to eliminate argument passing to declare_parse_factored */ 64 /* and so that abort can access k and l */ 65 66 if labels ^= null 67 then do; 68 pl1_stat_$cur_statement , 69 p = create_statement(null_statement,cblock,labels,(cblock -> block.prefix)); 70 call declare_label(cblock,p,labels,by_explicit_context); 71 end; 72 73 pl1_stat_$unwind=error_restart; 74 previous_symbol = null; 75 76 error_restart: 77 if t_table.type = semi_colon then return; 78 factored_level = 0; /* initial factored level is 0 */ 79 call declare_parse_factored; 80 if t_table.type = semi_colon then return; 81 call parse_error(1,null); 82 return; 83 84 declare_parse$abort: entry(m,bad_node); 85 86 dcl m fixed bin(15) parameter; 87 dcl bad_node pointer; 88 89 call parse_error(m,bad_node); 90 n=0; 91 j=k; 92 do k=l by 1; 93 type = t_table.type; 94 if type=left_parn then n=n+1; 95 if type=right_parn then n=n-1; 96 if type=semi_colon then go to pl1_stat_$unwind; 97 if type=comma then if n=0 then if k>j then go to pl1_stat_$unwind; 98 end; 99 100 declare_parse_factored: procedure; 101 102 dcl (last_dcl,s) ptr; 103 dcl (current_level,level) fixed bin(15); 104 105 current_level = factored_level; /* copy from static "parameter" */ 106 107 do while("1"b); 108 k=k+1; 109 110 level = current_level; 111 if t_table.type = dec_integer 112 then do; 113 if current_level = 0 114 then level = token_to_binary(token_list(k)); 115 else call parse_error(1,null); /* ignore level number inside factored level number */ 116 k=k+1; 117 end; 118 119 if t_table.type=left_parn 120 then do; 121 l=k-1; 122 last_dcl = cblock->block.end_declaration; 123 factored_level = level; /* copy to static "parameter" */ 124 call declare_parse_factored; 125 s = create_symbol(null,create_token("a factored attribute list",(identifier)),by_compiler); 126 if t_table.type^=right_parn then call declare_parse$abort(3,null); 127 call attribute_parse(cblock,s,k,"0"b); 128 if last_dcl = null 129 then last_dcl = cblock->block.declaration; 130 else last_dcl = last_dcl->symbol.next; 131 do last_dcl = last_dcl repeat last_dcl->symbol.next while(last_dcl^=null); 132 if last_dcl->symbol.dcl_type = by_declare 133 then if merge_attributes(last_dcl,s) then call parse_error(27,null); 134 end; 135 call free_node(s); 136 end; 137 else do; 138 if t_table.type ^= identifier then call declare_parse$abort(3,null); 139 s = create_symbol(cblock,token_list(k),by_declare); 140 string(s->symbol.source_id) = string(pl1_stat_$statement_id); 141 s->symbol.level = level; 142 call link_symbol(previous_symbol,s); /* perform appropriate structure linking */ 143 call attribute_parse(cblock,s,k,"0"b); 144 end; 145 if t_table.type ^= comma then return; 146 end; 147 end declare_parse_factored; 16 1 16 2 link_symbol: procedure(previous,s); 16 3 16 4 declare (previous,s) pointer parameter; 16 5 declare q pointer; 16 6 declare level fixed binary(15); 16 7 16 8 level = s->symbol.level; 16 9 if level > 1 16 10 then do; 16 11 s->symbol.member,s->symbol.internal = "1"b; 16 12 if previous = null then call declare_parse$abort(16,null); 16 13 else if previous->symbol.level = 0 then call declare_parse$abort(16,null); 16 14 else if level > previous->symbol.level 16 15 then do; 16 16 s->symbol.father = previous; 16 17 previous->symbol.son = s; 16 18 previous->symbol.structure = "1"b; 16 19 end; 16 20 else do; 16 21 /* loop is executed at least once */ 16 22 do while(level <= previous->symbol.level); 16 23 q = previous; /* remember possible brother */ 16 24 previous = previous->symbol.father; 16 25 end; 16 26 q->symbol.brother = s; 16 27 s->symbol.father = previous; 16 28 end; 16 29 end; 16 30 else if level = 1 then s->symbol.structure = "1"b; 16 31 previous = s; 16 32 end link_symbol; 148 149 150 end declare_parse; SOURCE FILES USED IN THIS COMPILATION. LINE NUMBER DATE MODIFIED NAME PATHNAME 0 05/05/00 1824.9 declare_parse.pl1 >udd>sm>ds>w>ml>declare_parse.pl1 50 1 07/31/99 1543.8 parse.incl.pl1 >ldd>incl>parse.incl.pl1 1-175 2 08/01/89 1339.9 language_utility.incl.pl1 >ldd>incl>language_utility.incl.pl1 2-307 3 05/06/74 1846.9 source_id_descriptor.incl.pl1 >ldd>incl>source_id_descriptor.incl.pl1 2-325 4 05/06/74 1846.9 source_id_descriptor.incl.pl1 >ldd>incl>source_id_descriptor.incl.pl1 2-335 5 05/06/74 1846.9 source_id_descriptor.incl.pl1 >ldd>incl>source_id_descriptor.incl.pl1 2-374 6 05/06/74 1846.9 source_id_descriptor.incl.pl1 >ldd>incl>source_id_descriptor.incl.pl1 2-386 7 05/06/74 1846.9 source_id_descriptor.incl.pl1 >ldd>incl>source_id_descriptor.incl.pl1 51 8 08/13/81 2143.5 block.incl.pl1 >ldd>incl>block.incl.pl1 52 9 11/30/78 1327.4 token_types.incl.pl1 >ldd>incl>token_types.incl.pl1 53 10 05/03/76 1420.4 statement_types.incl.pl1 >ldd>incl>statement_types.incl.pl1 54 11 12/07/83 1801.7 symbol.incl.pl1 >ldd>incl>symbol.incl.pl1 55 12 09/14/77 1805.7 token_list.incl.pl1 >ldd>incl>token_list.incl.pl1 56 13 09/14/77 1805.7 token.incl.pl1 >ldd>incl>token.incl.pl1 57 14 10/25/79 1745.8 declare_type.incl.pl1 >ldd>incl>declare_type.incl.pl1 58 15 07/21/80 1646.3 reference.incl.pl1 >ldd>incl>reference.incl.pl1 148 16 05/15/75 1835.3 link_symbol.incl.pl1 >ldd>incl>link_symbol.incl.pl1 NAMES DECLARED IN THIS COMPILATION. IDENTIFIER OFFSET LOC STORAGE CLASS DATA TYPE ATTRIBUTES AND REFERENCES (* indicates a set context) NAMES DECLARED BY DECLARE STATEMENT. attribute_parse 000024 constant entry external dcl 1-11 ref 127 143 attributes 31 based structure level 2 dcl 11-3 bad_node parameter pointer dcl 87 set ref 84 89* block based structure level 1 dcl 8-5 brother 20 based pointer level 2 packed packed unaligned dcl 11-3 set ref 16-26* by_compiler 000000 constant bit(3) initial dcl 14-5 set ref 125* by_declare 000002 constant bit(3) initial dcl 14-5 set ref 132 139* by_explicit_context 000001 constant bit(3) initial dcl 14-5 set ref 70* cblock 000010 internal static pointer dcl 37 set ref 63* 68* 68 70* 122 127* 128 139* 143* comma constant bit(9) initial dcl 9-3 ref 97 145 create_statement 000032 constant entry external dcl 2-163 ref 68 create_symbol 000034 constant entry external dcl 2-184 ref 125 139 create_token 000036 constant entry external dcl 2-191 ref 125 125 cur_block parameter pointer dcl 34 ref 31 63 current_level 000104 automatic fixed bin(15,0) dcl 103 set ref 105* 110 113 data_type 31 based structure level 3 packed packed unaligned dcl 11-3 dcl_type 1(19) based bit(3) level 2 packed packed unaligned dcl 11-3 ref 132 dec_integer constant bit(9) initial dcl 9-3 ref 111 declaration 4 based pointer level 2 packed packed unaligned dcl 8-5 ref 128 declare_label 000026 constant entry external dcl 1-29 ref 70 declare_parse$abort 000030 constant entry external dcl 1-40 ref 126 138 16-12 16-13 end_declaration 5 based pointer level 2 packed packed unaligned dcl 8-5 ref 122 factored_level 000016 internal static fixed bin(15,0) dcl 40 set ref 78* 105 123* father 17 based pointer level 2 packed packed unaligned dcl 11-3 set ref 16-16* 16-24 16-27* free_node 000040 constant entry external dcl 2-345 ref 135 i parameter fixed bin(15,0) dcl 33 ref 31 61 identifier constant bit(9) initial dcl 9-3 ref 125 125 138 internal 32(01) based bit(1) level 4 packed packed unaligned dcl 11-3 set ref 16-11* j 000103 automatic fixed bin(15,0) dcl 39 set ref 91* 97 k 000014 internal static fixed bin(15,0) dcl 40 set ref 61* 76 80 91 92* 93 97* 108* 108 111 113 116* 116 119 121 126 127* 138 139 143* 145 l 000015 internal static fixed bin(15,0) dcl 40 set ref 61* 92 121* labels parameter pointer dcl 34 set ref 31 66 68* 70* last_dcl 000100 automatic pointer dcl 102 set ref 122* 128 128* 130* 130 131* 131 131* 132 132* 134 left_parn constant bit(9) initial dcl 9-3 ref 94 119 level 000116 automatic fixed bin(15,0) dcl 16-6 in procedure "link_symbol" set ref 16-8* 16-9 16-14 16-22 16-30 level 2(11) based fixed bin(8,0) level 2 in structure "symbol" packed packed unaligned dcl 11-3 in procedure "declare_parse" set ref 141* 16-8 16-13 16-14 16-22 level 000105 automatic fixed bin(15,0) dcl 103 in procedure "declare_parse_factored" set ref 110* 113* 123 141 m parameter fixed bin(15,0) dcl 86 set ref 84 89* member 32(04) based bit(1) level 4 packed packed unaligned dcl 11-3 set ref 16-11* merge_attributes 000042 constant entry external dcl 2-355 ref 132 misc_attributes 31(19) based structure level 3 packed packed unaligned dcl 11-3 n 000102 automatic fixed bin(15,0) dcl 39 set ref 90* 94* 94 95* 95 97 next 6 based pointer level 2 packed packed unaligned dcl 11-3 ref 130 134 null builtin function dcl 48 ref 66 74 81 81 115 115 125 125 126 126 128 131 132 132 138 138 16-12 16-12 16-12 16-13 16-13 null_statement 000003 constant bit(9) initial dcl 10-3 set ref 68* p 000100 automatic pointer dcl 36 set ref 68* 70* parse_error 000044 constant entry external dcl 2-364 ref 81 89 115 132 pl1_stat_$cur_statement 000020 external static pointer dcl 44 set ref 68* pl1_stat_$statement_id 000052 external static structure level 1 packed packed unaligned dcl 12-6 ref 140 pl1_stat_$token_list_ptr 000050 external static pointer dcl 12-1 ref 12-3 pl1_stat_$unwind 000022 external static label variable dcl 45 set ref 73* 96 97 prefix 24(09) based bit(12) level 2 packed packed unaligned dcl 8-5 ref 68 previous parameter pointer dcl 16-4 set ref 16-2 16-12 16-13 16-14 16-16 16-17 16-18 16-22 16-23 16-24* 16-24 16-27 16-31* previous_symbol 000012 internal static pointer dcl 37 set ref 74* 142* q 000114 automatic pointer dcl 16-5 set ref 16-23* 16-26 right_parn constant bit(9) initial dcl 9-3 ref 95 126 s 000102 automatic pointer dcl 102 in procedure "declare_parse_factored" set ref 125* 127* 132* 135* 139* 140 141 142* 143* s parameter pointer dcl 16-4 in procedure "link_symbol" ref 16-2 16-8 16-11 16-11 16-16 16-17 16-26 16-27 16-30 16-31 semi_colon constant bit(9) initial dcl 9-3 ref 76 80 96 son 21 based pointer level 2 packed packed unaligned dcl 11-3 set ref 16-17* source_id 0(09) based structure level 2 packed packed unaligned dcl 11-3 set ref 140* string builtin function dcl 48 set ref 140* 140 structure 31 based bit(1) level 4 packed packed unaligned dcl 11-3 set ref 16-18* 16-30* symbol based structure level 1 dcl 11-3 t_table based structure level 1 dcl 12-11 token_list based pointer array dcl 12-2 set ref 76 80 93 111 113* 119 126 138 139* 145 token_list_pointer 000106 automatic pointer initial dcl 12-3 set ref 76 80 93 12-3* 111 113 119 126 138 139 145 token_to_binary 000046 constant entry external dcl 2-459 ref 113 type 0(09) based bit(9) level 2 in structure "t_table" packed packed unaligned dcl 12-11 in procedure "declare_parse" ref 76 80 93 111 119 126 138 145 type 000104 automatic bit(9) packed unaligned dcl 42 in procedure "declare_parse" set ref 93* 94 95 96 97 NAMES DECLARED BY DECLARE STATEMENT AND NEVER REFERENCED. addr builtin function dcl 48 adjust_count 000000 constant entry external dcl 2-20 allocate_statement internal static bit(9) initial dcl 10-3 and internal static bit(9) initial dcl 9-3 arrow internal static bit(9) initial dcl 9-3 assignment internal static bit(9) initial dcl 9-3 assignment_statement internal static bit(9) initial dcl 10-3 asterisk internal static bit(9) initial dcl 9-3 begin_statement internal static bit(9) initial dcl 10-3 bin_integer internal static bit(9) initial dcl 9-3 binary_to_octal_string 000000 constant entry external dcl 2-38 binary_to_octal_var_string 000000 constant entry external dcl 2-43 bindec 000000 constant entry external dcl 2-23 bindec$vs 000000 constant entry external dcl 2-28 binoct 000000 constant entry external dcl 2-33 bit_string internal static bit(9) initial dcl 9-3 by_context internal static bit(3) initial dcl 14-5 by_implication internal static bit(3) initial dcl 14-5 call_statement internal static bit(9) initial dcl 10-3 cat internal static bit(9) initial dcl 9-3 char_string internal static bit(9) initial dcl 9-3 close_statement internal static bit(9) initial dcl 10-3 colon internal static bit(9) initial dcl 9-3 compare_expression 000000 constant entry external dcl 2-48 constant_length 000000 constant entry external dcl 2-54 context 000000 constant entry external dcl 1-17 continue_statement internal static bit(9) initial dcl 10-3 convert 000000 constant entry external dcl 2-60 convert$from_builtin 000000 constant entry external dcl 2-72 convert$to_integer 000000 constant entry external dcl 2-66 convert$to_target 000000 constant entry external dcl 2-88 convert$to_target_fb 000000 constant entry external dcl 2-82 convert$validate 000000 constant entry external dcl 2-78 copy_expression 000000 constant entry external dcl 2-94 copy_expression$copy_sons 000000 constant entry external dcl 2-99 copy_unique_expression 000000 constant entry external dcl 2-103 create_array 000000 constant entry external dcl 2-108 create_block 000000 constant entry external dcl 2-112 create_bound 000000 constant entry external dcl 2-118 create_context 000000 constant entry external dcl 2-122 create_cross_reference 000000 constant entry external dcl 2-128 create_default 000000 constant entry external dcl 2-132 create_identifier 000000 constant entry external dcl 2-136 create_label 000000 constant entry external dcl 2-140 create_list 000000 constant entry external dcl 2-147 create_operator 000000 constant entry external dcl 2-152 create_reference 000000 constant entry external dcl 2-158 create_statement$prologue 000000 constant entry external dcl 2-171 create_storage 000000 constant entry external dcl 2-179 create_token$init_hash_table 000000 constant entry external dcl 2-197 create_token$protected 000000 constant entry external dcl 2-199 data_list_parse 000000 constant entry external dcl 1-22 decbin 000000 constant entry external dcl 2-206 declare_constant 000000 constant entry external dcl 2-211 declare_constant$bit 000000 constant entry external dcl 2-219 declare_constant$char 000000 constant entry external dcl 2-224 declare_constant$desc 000000 constant entry external dcl 2-229 declare_constant$integer 000000 constant entry external dcl 2-234 declare_descriptor 000000 constant entry external dcl 2-239 declare_descriptor$ctl 000000 constant entry external dcl 2-249 declare_descriptor$param 000000 constant entry external dcl 2-259 declare_integer 000000 constant entry external dcl 2-269 declare_parse 000000 constant entry external dcl 1-35 declare_picture 000000 constant entry external dcl 2-274 declare_picture_temp 000000 constant entry external dcl 2-279 declare_pointer 000000 constant entry external dcl 2-287 declare_statement internal static bit(9) initial dcl 10-3 declare_temporary 000000 constant entry external dcl 2-292 decode_node_id 000000 constant entry external dcl 2-300 decode_source_id 000000 constant entry external dcl 2-306 default_parse 000000 constant entry external dcl 1-44 default_statement internal static bit(9) initial dcl 10-3 delete_statement internal static bit(9) initial dcl 10-3 descriptor_parse 000000 constant entry external dcl 1-49 display_statement internal static bit(9) initial dcl 10-3 do_parse 000000 constant entry external dcl 1-56 do_statement internal static bit(9) initial dcl 10-3 else_clause internal static bit(9) initial dcl 10-3 end_statement internal static bit(9) initial dcl 10-3 entry_statement internal static bit(9) initial dcl 10-3 eq internal static bit(9) initial dcl 9-3 error 000000 constant entry external dcl 2-314 error$omit_text 000000 constant entry external dcl 2-319 error_ 000000 constant entry external dcl 2-324 error_$finish 000000 constant entry external dcl 2-343 error_$initialize_error 000000 constant entry external dcl 2-341 error_$no_text 000000 constant entry external dcl 2-334 evaluate 000000 constant entry external dcl 1-67 exit_statement internal static bit(9) initial dcl 10-3 expon internal static bit(9) initial dcl 9-3 expression_parse 000000 constant entry external dcl 1-73 fixed_bin internal static bit(9) initial dcl 9-3 fixed_dec internal static bit(9) initial dcl 9-3 float_bin internal static bit(9) initial dcl 9-3 float_dec internal static bit(9) initial dcl 9-3 format_list_parse 000000 constant entry external dcl 1-79 format_statement internal static bit(9) initial dcl 10-3 free_statement internal static bit(9) initial dcl 10-3 ge internal static bit(9) initial dcl 9-3 get_array_size 000000 constant entry external dcl 2-348 get_size 000000 constant entry external dcl 2-352 get_statement internal static bit(9) initial dcl 10-3 goto_statement internal static bit(9) initial dcl 10-3 gt internal static bit(9) initial dcl 9-3 i_bin_integer internal static bit(9) initial dcl 9-3 i_dec_integer internal static bit(9) initial dcl 9-3 i_fixed_bin internal static bit(9) initial dcl 9-3 i_fixed_dec internal static bit(9) initial dcl 9-3 i_float_bin internal static bit(9) initial dcl 9-3 i_float_dec internal static bit(9) initial dcl 9-3 if_parse 000000 constant entry external dcl 1-87 if_statement internal static bit(9) initial dcl 10-3 io_statement_parse 000000 constant entry external dcl 1-96 is_arith_constant internal static bit(9) initial dcl 9-47 is_arithmetic_constant internal static bit(9) initial dcl 9-47 is_constant internal static bit(9) initial dcl 9-47 is_decimal_constant internal static bit(9) initial dcl 9-47 is_delimiter internal static bit(9) initial dcl 9-47 is_float_constant internal static bit(9) initial dcl 9-47 is_identifier internal static bit(9) initial dcl 9-47 is_imaginary_constant internal static bit(9) initial dcl 9-47 is_integral_constant internal static bit(9) initial dcl 9-47 is_isub internal static bit(9) initial dcl 9-47 isub internal static bit(9) initial dcl 9-3 le internal static bit(9) initial dcl 9-3 lex 000000 constant entry external dcl 1-106 lex$initialize_lex 000000 constant entry external dcl 1-112 lex$write_last_line 000000 constant entry external dcl 1-109 locate_statement internal static bit(9) initial dcl 10-3 lock_statement internal static bit(9) initial dcl 10-3 lt internal static bit(9) initial dcl 9-3 max_block_number internal static fixed bin(17,0) initial dcl 8-74 minus internal static bit(9) initial dcl 9-3 ne internal static bit(9) initial dcl 9-3 ngt internal static bit(9) initial dcl 9-3 nlt internal static bit(9) initial dcl 9-3 no_token internal static bit(9) initial dcl 9-3 not internal static bit(9) initial dcl 9-3 on_parse 000000 constant entry external dcl 1-116 on_parse$revert 000000 constant entry external dcl 1-123 on_statement internal static bit(9) initial dcl 10-3 open_statement internal static bit(9) initial dcl 10-3 optimizer 000000 constant entry external dcl 2-361 or internal static bit(9) initial dcl 9-3 parse 000000 constant entry external dcl 1-128 parse_error$no_text 000000 constant entry external dcl 2-368 percent internal static bit(9) initial dcl 9-3 period internal static bit(9) initial dcl 9-3 pl1_error_print$listing_segment 000000 constant entry external dcl 2-384 pl1_error_print$write_out 000000 constant entry external dcl 2-372 pl1_print$for_lex 000000 constant entry external dcl 2-418 pl1_print$non_varying 000000 constant entry external dcl 2-398 pl1_print$non_varying_nl 000000 constant entry external dcl 2-402 pl1_print$string_pointer 000000 constant entry external dcl 2-406 pl1_print$string_pointer_nl 000000 constant entry external dcl 2-410 pl1_print$unaligned_nl 000000 constant entry external dcl 2-414 pl1_print$varying 000000 constant entry external dcl 2-392 pl1_print$varying_nl 000000 constant entry external dcl 2-395 plus internal static bit(9) initial dcl 9-3 procedure_parse 000000 constant entry external dcl 1-133 procedure_statement internal static bit(9) initial dcl 10-3 process_entry 000000 constant entry external dcl 1-143 put_statement internal static bit(9) initial dcl 10-3 read_statement internal static bit(9) initial dcl 10-3 refer_extent 000000 constant entry external dcl 2-426 reference based structure level 1 dcl 15-3 reference_parse 000000 constant entry external dcl 1-150 reserve$clear 000000 constant entry external dcl 2-430 reserve$declare_lib 000000 constant entry external dcl 2-434 reserve$read_lib 000000 constant entry external dcl 2-439 reserve$rename_parse 000000 constant entry external dcl 1-156 return_statement internal static bit(9) initial dcl 10-3 revert_statement internal static bit(9) initial dcl 10-3 rewrite_statement internal static bit(9) initial dcl 10-3 semantic_translator 000000 constant entry external dcl 2-444 semantic_translator$abort 000000 constant entry external dcl 2-446 semantic_translator$error 000000 constant entry external dcl 2-450 share_expression 000000 constant entry external dcl 2-454 signal_statement internal static bit(9) initial dcl 10-3 slash internal static bit(9) initial dcl 9-3 statement_parse 000000 constant entry external dcl 1-160 statement_type 000000 constant entry external dcl 1-167 stop_statement internal static bit(9) initial dcl 10-3 system_on_unit internal static bit(9) initial dcl 10-3 token based structure level 1 dcl 13-3 token_list_length internal static fixed bin(15,0) initial dcl 12-4 unknown_statement internal static bit(9) initial dcl 10-3 unlock_statement internal static bit(9) initial dcl 10-3 wait_statement internal static bit(9) initial dcl 10-3 write_statement internal static bit(9) initial dcl 10-3 NAMES DECLARED BY EXPLICIT CONTEXT. begin 000050 constant label dcl 61 declare_parse 000042 constant entry external dcl 31 declare_parse$abort 000206 constant entry external dcl 84 declare_parse_factored 000302 constant entry internal dcl 100 ref 79 124 error_restart 000136 constant label dcl 76 ref 73 link_symbol 000742 constant entry internal dcl 16-2 ref 142 THERE WERE NO NAMES DECLARED BY CONTEXT OR IMPLICATION. STORAGE REQUIREMENTS FOR THIS PROGRAM. Object Text Link Symbol Defs Static Start 0 0 1304 1360 1071 1314 Length 2100 1071 54 503 212 10 BLOCK NAME STACK SIZE TYPE WHY NONQUICK/WHO SHARES STACK FRAME declare_parse 90 external procedure is an external procedure. declare_parse_factored 124 internal procedure calls itself recursively. link_symbol internal procedure shares stack frame of internal procedure declare_parse_factored. STORAGE FOR INTERNAL STATIC VARIABLES. LOC IDENTIFIER BLOCK NAME 000010 cblock declare_parse 000012 previous_symbol declare_parse 000014 k declare_parse 000015 l declare_parse 000016 factored_level declare_parse STORAGE FOR AUTOMATIC VARIABLES. STACK FRAME LOC IDENTIFIER BLOCK NAME declare_parse 000100 p declare_parse 000102 n declare_parse 000103 j declare_parse 000104 type declare_parse 000106 token_list_pointer declare_parse declare_parse_factored 000100 last_dcl declare_parse_factored 000102 s declare_parse_factored 000104 current_level declare_parse_factored 000105 level declare_parse_factored 000114 q link_symbol 000116 level link_symbol THE FOLLOWING EXTERNAL OPERATORS ARE USED BY THIS PROGRAM. call_ext_out_desc call_ext_out call_int_this call_int_other return_mac tra_ext_2 ext_entry int_entry THE FOLLOWING EXTERNAL ENTRIES ARE CALLED BY THIS PROGRAM. attribute_parse create_statement create_symbol create_token declare_label declare_parse$abort free_node merge_attributes parse_error token_to_binary THE FOLLOWING EXTERNAL VARIABLES ARE USED BY THIS PROGRAM. pl1_stat_$cur_statement pl1_stat_$statement_id pl1_stat_$token_list_ptr pl1_stat_$unwind LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC 12 3 000030 31 000036 61 000050 63 000055 66 000060 68 000064 70 000112 73 000127 74 000134 76 000136 78 000147 79 000150 80 000154 81 000165 82 000201 84 000202 89 000214 90 000226 91 000227 92 000232 93 000234 94 000244 95 000247 96 000253 97 000261 98 000275 150 000300 100 000301 105 000307 107 000311 108 000312 110 000314 111 000316 113 000330 115 000346 116 000362 119 000364 121 000377 122 000402 123 000405 124 000407 125 000414 126 000461 127 000507 128 000526 130 000537 131 000542 132 000550 134 000611 135 000615 136 000624 138 000625 139 000643 140 000664 141 000671 142 000677 143 000707 145 000726 146 000740 147 000741 16 2 000742 16 8 000744 16 9 000752 16 11 000754 16 12 000760 16 13 001002 16 14 001027 16 16 001031 16 17 001032 16 18 001033 16 19 001035 16 22 001036 16 23 001046 16 24 001047 16 25 001051 16 26 001052 16 27 001056 16 29 001057 16 30 001060 16 31 001063 16 32 001067 ----------------------------------------------------------- Historical Background This edition of the Multics software materials and documentation is provided and donated to Massachusetts Institute of Technology by Group BULL including BULL HN Information Systems Inc. as a contribution to computer science knowledge. This donation is made also to give evidence of the common contributions of Massachusetts Institute of Technology, Bell Laboratories, General Electric, Honeywell Information Systems Inc., Honeywell BULL Inc., Groupe BULL and BULL HN Information Systems Inc. to the development of this operating system. Multics development was initiated by Massachusetts Institute of Technology Project MAC (1963-1970), renamed the MIT Laboratory for Computer Science and Artificial Intelligence in the mid 1970s, under the leadership of Professor Fernando Jose Corbato. Users consider that Multics provided the best software architecture for managing computer hardware properly and for executing programs. Many subsequent operating systems incorporated Multics principles. Multics was distributed in 1975 to 2000 by Group Bull in Europe , and in the U.S. by Bull HN Information Systems Inc., as successor in interest by change in name only to Honeywell Bull Inc. and Honeywell Information Systems Inc. . ----------------------------------------------------------- Permission to use, copy, modify, and distribute these programs and their documentation for any purpose and without fee is hereby granted,provided that the below copyright notice and historical background appear in all copies and that both the copyright notice and historical background and this permission notice appear in supporting documentation, and that the names of MIT, HIS, BULL or BULL HN not be used in advertising or publicity pertaining to distribution of the programs without specific prior written permission. Copyright 1972 by Massachusetts Institute of Technology and Honeywell Information Systems Inc. Copyright 2006 by BULL HN Information Systems Inc. Copyright 2006 by Bull SAS All Rights Reserved