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

⟦86da8602d⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Primary_Expression, seg_02ccb2, seg_02cf07, separate Generic_Expression

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



separate (Generic_Expression)
package body Primary_Expression is
    function Value (For_Integer : Integer) return Object is
    begin
        return Object'(Kind => Immediate_Value, The_Value => For_Integer);
    end Value;


    function Value (For_Alias : Alias.Name) return Object is
    begin
        return Object'(Kind => Alias_Value, The_Alias => For_Alias);
    end Value;


    procedure Put (The_Object : Object; Where : Output_Stream.Object) is
        use Output_Stream;
    begin
        case The_Object.Kind is
            when Alias_Value =>
                Alias.Put (The_Object.The_Alias, Where);
            when Immediate_Value =>
                Put (The_Object.The_Value, Where);
        end case;
    end Put;


    function Evaluate (The_Object : Object) return Integer is
    begin
        case The_Object.Kind is
            when Alias_Value =>
                return Alias.Get (The_Object.The_Alias);
            when Immediate_Value =>
                return The_Object.The_Value;
        end case;
    end Evaluate;
end Primary_Expression;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=21 rec1=00 rec2=01 rec3=030
        [0x01] rec0=05 rec1=00 rec2=02 rec3=001
    tail 0x215255cb2840c7a2fab37 0x42a00088462063c03