|
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 - download
Length: 5120 (0x1400) Types: Ada Source Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Unary, seg_037e21, seg_038ad8
└─⟦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 More_Unary; with Msg_Report; with Object; with Primary; with Scanner; package body Unary is type Node_Structure is record Info : Natural range 0 .. 1 := 0; Prim : Primary.Node := Primary.Empty_Node; Moun : More_Unary.Node := More_Unary.Empty_Node; Lign : Integer; end record; procedure Parse (N : in out Node; Error : out Boolean) is Failed : Boolean := False; begin Msg_Report.Information ("I enter in unary's parse"); N := new Node_Structure; N.Lign := Scanner.Line_Number; Primary.Parse (N.Prim, Failed); if not Failed then if More_Unary.Is_First (Scanner.Symbol) then N.Info := 1; More_Unary.Parse (N.Moun, Failed); end if; end if; Msg_Report.Information ("I leave unary's parse with failed = " & Boolean'Image (Failed)); Error := Failed; end Parse; procedure Unparse (N : Node) is begin Primary.Unparse (N.Prim); if N.Info = 1 then More_Unary.Unparse (N.Moun); end if; end Unparse; function Is_First (T : Scanner.Token) return Boolean is use Scanner; begin return Primary.Is_First (T); 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 unary's interpret"); Msg_Report.Set_Line_Number (N.Lign); Result := Primary.Interpret (N.Prim); if N.Info = 1 then Result := More_Unary.Interpret (N.Moun, Result); end if; Msg_Report.Information ("I leave unary'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 Unary;
nblk1=4 nid=3 hdr6=6 [0x00] rec0=23 rec1=00 rec2=01 rec3=07e [0x01] rec0=26 rec1=00 rec2=04 rec3=034 [0x02] rec0=0a rec1=00 rec2=02 rec3=000 [0x03] rec0=02 rec1=a5 rec2=1b rec3=742 tail 0x21531351684e59080c094 0x42a00088462060003 Free Block Chain: 0x3: 0000 00 00 00 06 00 00 00 00 00 00 00 b4 00 00 00 3a ┆ :┆