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

⟦da09cfe41⟧ TextFile

    Length: 1625 (0x659)
    Types: TextFile
    Names: »B«

Derivation

└─⟦2f6cfab89⟧ Bits:30000547 8mm tape, Rational 1000, !projects 94-01-04
    └─ ⟦d65440be7⟧ »DATA« 
        └─⟦this⟧ 

TextFile

with Object, Binary, Message, Argument, Scanner, Text_Io;
package body More_Value is

    type Node_Structure is
        record  
            Rule : Natural range 0 .. 1 := 0;
            Bin : Binary.Node := Binary.Empty_Node;
            More : More_Value.Node := Empty_Node;
            Mess : Message.Tiny_String;
            Arg : Object.Reference;
        end record;

    procedure Parse (N : in out Node; Error : out Boolean) is
        Failed : Boolean := False;  
        use Scanner;
    begin  
        Text_Io.Put_Line ("I am in more_value.parse");
        N := new Node_Structure;
        N.Mess := Scanner.Get_Value;
        Scanner.Next;
        Binary.Parse (N.Bin, Failed);
        if not Failed and Is_First (Scanner.Get_Token) then
            N.Rule := 1;  
            Parse (N.More, Failed);
        end if;
        Error := Failed;
    end Parse;

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

    procedure Interpret (N : Node;
                         Messages : in out Message.List;
                         Arguments : in out Argument.List) is
        Result : Object.Reference;
    begin  
        Text_Io.Put_Line ("I am in more_value.interpret");
        Result := Binary.Interpret (N.Bin);
        Arguments := Argument.Put (Arguments, Result);
        Messages := Message.Put (Messages, N.Mess);
        case N.Rule is
            when 0 =>
                null;
            when 1 =>  
                Interpret (N.More, Messages, Arguments);
        end case;
    end Interpret;
end More_Value;