|
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, package body More_Statements, seg_037d3e, seg_038ace
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000 └─⟦5a81ac88f⟧ »Space Info Vol 1« └─⟦this⟧ └─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000 └─⟦cfc2e13cd⟧ »Space Info Vol 2« └─⟦this⟧
with Msg_Report; with Object; with Scanner; with Statements; with Unparse_Report; package body More_Statements is type Node_Structure is record Rule : Natural range 0 .. 1 := 0; Stat : Statements.Node := Statements.Empty_Node; Lign : Integer; end record; procedure Parse (N : in out Node; Error : out Boolean) is use Scanner; Failed : Boolean := False; begin Msg_Report.Information ("I enter in more_statement's parse"); N := new Node_Structure; N.Lign := Scanner.Line_Number; if More_Statements.Is_First (Scanner.Symbol) then Scanner.Next; if Statements.Is_First (Scanner.Symbol) then N.Rule := 1; Statements.Parse (N.Stat, Failed); end if; end if; Msg_Report.Information ("I leave more_statement's parse with failed = " & Boolean'Image (Failed)); Error := Failed; end Parse; procedure Unparse (N : Node) is begin Unparse_Report.Write ("."); Unparse_Report.New_Line; if N.Rule = 1 then Statements.Unparse (N.Stat); end if; end Unparse; function Is_First (T : Scanner.Token) return Boolean is use Scanner; begin return T = L_Dot; end Is_First; function Interpret (N : Node; Inherited : Object.Reference := Object.Void_Reference) return Object.Reference is Result : Object.Reference; begin Msg_Report.Information ("I enter in more_statement's interpret"); Msg_Report.Set_Line_Number (N.Lign); case N.Rule is when 0 => Result := Inherited; when 1 => Result := Statements.Interpret (N.Stat); end case; Msg_Report.Information ("I leave more_statement's interpret with result :"); Msg_Report.Continue ("class = " & Object.Class'Image (Object.The_Class (Result)) & " ident = " & Integer'Image (Object.Identificator (Result))); return Result; end Interpret; end More_Statements;
nblk1=4 nid=3 hdr6=6 [0x00] rec0=22 rec1=00 rec2=01 rec3=07a [0x01] rec0=28 rec1=00 rec2=02 rec3=00c [0x02] rec0=0d rec1=00 rec2=04 rec3=000 [0x03] rec0=02 rec1=a5 rec2=1b rec3=742 tail 0x215311b6084e580ec2438 0x42a00088462060003 Free Block Chain: 0x3: 0000 00 00 00 3b 80 03 6c 74 3b 03 00 12 20 20 20 20 ┆ ; lt; ┆