DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Rational R1000/400

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦e3e42c673⟧ Ada Source

    Length: 5120 (0x1400)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Value, seg_037e1d

Derivation

└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
    └─ ⟦5a81ac88f⟧ »Space Info Vol 1« 
        └─⟦this⟧ 

E3 Source Code



with Binary;
with Broker;
with Errors;
with Message;
with More_Value;
with Parameters;
with Trace;
with Unparser;

package body Value is

    type Node_Structure is
        record
            Line : Natural;
            Bin : Binary.Node := Binary.Empty_Node;
            More : More_Value.Node := More_Value.Empty_Node;
        end record;


    procedure Parse (N : in out Node) is
    begin
        Trace.Display ("parsing Value");
        N := new Node_Structure;
        N.Line := Scanner.Get_Line_Number;
        if Binary.Is_First (Scanner.Get_Token) then
            Binary.Parse (N.Bin);
            More_Value.Parse (N.More);
        else
            raise Errors.Expecting_Binary;
        end if;
    end Parse;

    procedure Unparse (N : Node) is
    begin
        Binary.Unparse (N.Bin);
        More_Value.Unparse (N.More);
        Trace.Display ("fin unparse value");
    end Unparse;

    function Is_First (T : Scanner.Token) return Boolean is
        use Scanner;
    begin
        return Binary.Is_First (T);
    end Is_First;

    function Interpret (N : Node) return Object.Reference is
        Back : Object.Reference;
        Result : Object.Reference;
        This_Selector : Message.Selector;
        This_Arg_List : Parameters.List;
    begin
        Errors.Save_Interpret_Line (N.Line);
        Result := Binary.Interpret (N.Bin);
        Message.Free (This_Selector);
        Parameters.Free (This_Arg_List);
        More_Value.Interpret (N.More, This_Selector, This_Arg_List);
        if not Message.Is_Empty (This_Selector) then
            Broker.Send (Result, This_Selector, This_Arg_List, Back);
            Result := Back;
        end if;
        Trace.Display ("fin interpretation Value");
        Trace.Display (Result);
        return Result;
    end Interpret;

end Value;



E3 Meta Data

    nblk1=4
    nid=2
    hdr6=4
        [0x00] rec0=29 rec1=00 rec2=01 rec3=044
        [0x01] rec0=1d rec1=00 rec2=03 rec3=000
        [0x02] rec0=05 rec1=00 rec2=02 rec3=000
        [0x03] rec0=02 rec1=a3 rec2=d6 rec3=142
    tail 0x21531348a84e59001bb99 0x42a00088462060003
Free Block Chain:
  0x2: 0000  00 04 00 03 00 00 00 00 00 00 00 00 00 00 00 00  ┆                ┆
  0x4: 0000  00 00 00 4b 80 13 29 20 72 65 74 75 72 6e 20 42  ┆   K  ) return B┆