|
|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 5120 (0x1400)
Types: Ada Source
Notes: 03_class, FILE, R1k_Segment, e3_tag, procedure Declaration_Traversal, seg_004622
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦cfc2e13cd⟧ »Space Info Vol 2«
└─⟦this⟧
with Lrm_Renames;
use Lrm_Renames;
procedure Declaration_Traversal
(In_Decl_Or_Block : Ada_Program.Declaration;
State : in out State_Record;
Control : in out Ada_Program.Traversal_Control) is
Quit : exception;
Iter : Ada_Program.Element_Iterator;
procedure Traverse_Declaration (Decl : Ada_Program.Element);
procedure Traverse_Declarations (Decls : in out
Ada_Program.Element_Iterator) is
begin
while not Ada.Done (Decls) loop
Traverse_Declaration (Ada.Value (Decls));
case Control is
when Ada.Terminate_Immediately =>
raise Quit;
when Ada.Abandon_Siblings =>
exit;
when others =>
null;
end case;
Ada.Next (Decls);
end loop;
end Traverse_Declarations;
procedure Traverse_Declaration (Decl : Ada_Program.Element) is
Iter : Ada.Element_Iterator;
begin
Pre_Operation (Decl, State, Control);
case Control is
when Ada.Continue =>
case Decls.Kind (Decl) is
when Decls.A_Package_Declaration |
Decls.A_Generic_Package_Declaration =>
Iter := Decls.Visible_Part_Declarations (Decl);
Traverse_Declarations (Iter);
Iter := Decls.Private_Part_Declarations (Decl);
Traverse_Declarations (Iter);
when Decls.A_Package_Body_Declaration =>
Iter := Stmts.Declarative_Items
(Decls.Package_Body_Block (Decl));
Traverse_Declarations (Iter);
when Decls.A_Procedure_Body_Declaration |
Decls.A_Function_Body_Declaration =>
Iter := Stmts.Declarative_Items
(Decls.Subprogram_Block (Decl));
Traverse_Declarations (Iter);
when Decls.A_Task_Declaration =>
Iter := Decls.Entry_Declarations (Decl);
Traverse_Declarations (Iter);
when others =>
null;
end case;
when Ada.Terminate_Immediately =>
raise Quit;
when Ada.Abandon_Children | Ada.Abandon_Siblings =>
null;
end case;
Post_Operation (Decl, State, Control);
case Control is
when Ada.Terminate_Immediately =>
raise Quit;
when others =>
null;
end case;
end Traverse_Declaration;
begin
case Ada_Program.Kind (In_Decl_Or_Block) is
when Ada.A_Declaration =>
Traverse_Declaration (In_Decl_Or_Block);
when Ada.A_Statement =>
case Stmts.Kind (In_Decl_Or_Block) is
when Stmts.A_Block_Statement =>
Iter := Stmts.Declarative_Items (In_Decl_Or_Block);
Traverse_Declarations (Iter);
when others =>
raise Ada.Inappropriate_Program_Element;
end case;
when others =>
raise Ada.Inappropriate_Program_Element;
end case;
exception
when Quit =>
null;
end Declaration_Traversal;
nblk1=4
nid=0
hdr6=8
[0x00] rec0=1e rec1=00 rec2=01 rec3=03a
[0x01] rec0=1a rec1=00 rec2=02 rec3=02a
[0x02] rec0=21 rec1=00 rec2=03 rec3=044
[0x03] rec0=13 rec1=00 rec2=04 rec3=001
tail 0x217002468815c65d7f578 0x42a00088462061e03