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

⟦22aec3cae⟧ Ada Source

    Length: 5120 (0x1400)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Args, seg_038145, seg_038ab1

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 List;
with Msg_Report;
with Object;
with Scanner;
with Unparse_Report;

package body Args is
    type Node_Structure is
        record  
            Liste : List.Node := List.Empty_Node;
            Lign : Integer;
        end record;

    procedure Parse (N : in out Node; Error : out Boolean) is
        Failed : Boolean := False;
        use Scanner;
    begin
        Msg_Report.Information ("I enter in argument's parse");

        N := new Node_Structure;

        N.Lign := Scanner.Line_Number;

        if Scanner.Symbol = L_Avec then  
            Scanner.Next;
            if List.Is_First (Scanner.Symbol) then  
                List.Parse (N.Liste, Failed);
                if Scanner.Symbol = L_Dot then  
                    Scanner.Next;
                else
                    Failed := True;
                    Msg_Report.Syntax_Error (". expected, not");
                end if;
            else
                Failed := True;
                Msg_Report.Syntax_Error ("incorrect follow of AVEC : ");
            end if;  
        end if;
        Msg_Report.Information ("I leave argument's parse with failed = " &
                                Boolean'Image (Failed));
        Error := Failed;
    end Parse;


    procedure Unparse (N : Node) is

    begin  
        Unparse_Report.Write ("AVEC ");
        List.Unparse (N.Liste);
        Unparse_Report.Write (".");  
    end Unparse;


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

    begin
        return T = L_Avec;
    end Is_First;


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

        Result : Object.Reference;
    begin  
        Msg_Report.Information ("I enter in argument's interpret");

        Msg_Report.Set_Line_Number (N.Lign);

        Result := List.Interpret (N.Liste,
                                  A_Keyword_Mess => A_Keyword_Mess,
                                  A_List => A_List);

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

E3 Meta Data

    nblk1=4
    nid=2
    hdr6=6
        [0x00] rec0=24 rec1=00 rec2=01 rec3=032
        [0x01] rec0=22 rec1=00 rec2=04 rec3=034
        [0x02] rec0=11 rec1=00 rec2=03 rec3=000
        [0x03] rec0=07 rec1=00 rec2=02 rec3=000
    tail 0x215315b6e84e678ba050c 0x42a00088462060003
Free Block Chain:
  0x2: 0000  00 00 01 06 80 0e 74 68 20 72 65 73 75 6c 74 20  ┆      th result ┆