DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400 Tapes

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 Tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: ┃ B T

⟦345e03975⟧ TextFile

    Length: 2177 (0x881)
    Types: TextFile
    Names: »B«

Derivation

└─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11
    └─ ⟦129cab021⟧ »DATA« 
        └─⟦this⟧ 

TextFile

with Scanner, Object, List, Msg_Report;
package body Args is
    type Node_Structure is
        record  
            Liste : List.Node := List.Empty_Node;  
        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;

        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;


    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");

        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;