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

⟦5fc26b443⟧ Ada Source

    Length: 7168 (0x1c00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body More_Value, seg_038149, seg_038ad2

Derivation

└─⟦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⟧ 

E3 Source Code



with Arguments;  
with Message;
with Msg_Report;
with Object;
with Scanner;  
with String_Utilities;
with Unparse_Report;
with Value;

package body More_Value is
    type Node_Structure is
        record  
            Valu : Value.Node := Value.Empty_Node;  
            Keyw : Message.Selector := Message.Void_Selector;
            Lign : Integer;
        end record;

    function Su_Capitalize (A_String : String) return String
        renames String_Utilities.Capitalize;

    procedure Parse (N : in out Node; Error : out Boolean) is  
        use Scanner;
        Failed : Boolean := False;
    begin

        Msg_Report.Information ("I enter in more_value's parse");

        N := new Node_Structure;

        N.Lign := Scanner.Line_Number;

        Message.Copy (N.Keyw, Scanner.Value);

        Msg_Report.Continue ("Keyword is " & Message.Image (N.Keyw));

        Scanner.Next;
        if Value.Is_First (Scanner.Symbol) then
            Value.Parse (N.Valu, Failed);
        else
            Failed := True;
            Msg_Report.Syntax_Error ("incorrect first for more_value :");
        end if;

        Msg_Report.Information ("I leave more_value's parse with failed = " &
                                Boolean'Image (Failed));

        Error := Failed;
    end Parse;


    procedure Unparse (N : Node) is

    begin  
        Unparse_Report.Write (Su_Capitalize (Message.Image (N.Keyw)));
        Value.Unparse (N.Valu);
    end Unparse;


    function Is_First (T : Scanner.Token) return Boolean is
        use Scanner;
    begin
        return T = L_Key_Word;

    end Is_First;

    function Interpret (N : Node;
                        Inherited : Object.Reference := Object.Void_Reference;
                        A_Keyword_Mess : Message.Selector;
                        A_List : Arguments.List) return Object.Reference is
        Result : Object.Reference;  
        A_Modify_Keyword_Mess : Message.Selector;

    begin

        Msg_Report.Information ("I enter in more_value's interpret");

        Msg_Report.Set_Line_Number (N.Lign);

        A_Modify_Keyword_Mess := A_Keyword_Mess;
        Message.Cat (A_Modify_Keyword_Mess, N.Keyw);

        Result := Value.Interpret (N.Valu, Inherited,
                                   A_Modify_Keyword_Mess, A_List);

        Msg_Report.Information ("I leave more_value'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_Value;



E3 Meta Data

    nblk1=6
    nid=4
    hdr6=6
        [0x00] rec0=27 rec1=00 rec2=01 rec3=006
        [0x01] rec0=21 rec1=00 rec2=03 rec3=008
        [0x02] rec0=18 rec1=00 rec2=05 rec3=000
        [0x03] rec0=17 rec1=00 rec2=04 rec3=04a
        [0x04] rec0=1a rec1=00 rec2=05 rec3=000
        [0x05] rec0=42 rec1=61 rec2=3b rec3=1b6
    tail 0x215315c0084e6790cc942 0x42a00088462060003
Free Block Chain:
  0x4: 0000  00 06 00 ad 80 12 5f 43 6c 61 73 73 20 28 52 65  ┆      _Class (Re┆
  0x6: 0000  00 02 00 73 80 13 65 2e 55 6e 70 61 72 73 65 20  ┆   s  e.Unparse ┆
  0x2: 0000  00 00 00 65 80 13 20 20 20 20 20 20 20 20 20 20  ┆   e            ┆