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

⟦92421c45c⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Primary_Predicate, seg_02cf83, seg_02d139, separate Generic_Predicate

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



separate (Generic_Predicate)
package body Primary_Predicate is
    function Make_Alias_Definition (The_Alias : Alias.Name) return Object is
    begin
        return Object'(Kind => Alias_Definition, The_Alias => The_Alias);
    end Make_Alias_Definition;


    function Make_Conjunction
                (Left, Right : Generic_Predicate.Object) return Object is
    begin
        return Object'(Kind                => Predicate_Conjunction,
                       The_Left_Predicate  => Left,
                       The_Right_Predicate => Right);
    end Make_Conjunction;


    procedure Put (The_Object : Object; Where : Output_Stream.Object) is
        use Output_Stream;
    begin
        case The_Object.Kind is
            when Alias_Definition =>
                Put ("Define_As(", Where);
                Alias.Put (The_Object.The_Alias, Where);
                Put (")", Where);
            when Predicate_Conjunction =>
                Put (The_Object.The_Left_Predicate, Where);
                Put (" and ", Where);
                Put (The_Object.The_Right_Predicate, Where);
        end case;
    end Put;


    function Match (Value : Slot.Object; Against : Object) return Boolean is
    begin  
        case Against.Kind is
            when Alias_Definition =>
                Alias.Set (Against.The_Alias, To => Value);
                return True;
            when Predicate_Conjunction =>
                return Match (Value, Against.The_Left_Predicate) and then
                          Match (Value, Against.The_Right_Predicate);
        end case;
    end Match;
end Primary_Predicate;


E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=1c rec1=00 rec2=01 rec3=042
        [0x01] rec0=14 rec1=00 rec2=02 rec3=001
    tail 0x21525d398841355abe0b1 0x42a00088462063c03