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

⟦5e318a519⟧ Ada Source

    Length: 5120 (0x1400)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package Condition, seg_02955d

Derivation

└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
    └─ ⟦cfc2e13cd⟧ »Space Info Vol 2« 
        └─⟦this⟧ 

E3 Source Code



package Condition is  
    Max_Term_Count : constant := 5;
    subtype Term_Count is Natural range 0 .. Max_Term_Count;

    type Object (Count : Term_Count := 0) is private;

    type Alias is (A, B, C, D, E, F, G, H, I, J, K, L, M,
                   N, O, P, Q, R, S, T, U, V, W, X, Y, Z);

    -- value condition

    function Is_Equal            (Value : Integer) return Condition.Object;
    function Is_Less             (Value : Integer) return Condition.Object;
    function Is_Less_Or_Equal    (Value : Integer) return Condition.Object;
    function Is_Greater          (Value : Integer) return Condition.Object;
    function Is_Greater_Or_Equal (Value : Integer) return Condition.Object;
    function Is_Different        (Value : Integer) return Condition.Object;

    -- alias condition

    function Is_Equal            (Value : Alias) return Condition.Object;
    function Is_Less             (Value : Alias) return Condition.Object;
    function Is_Less_Or_Equal    (Value : Alias) return Condition.Object;
    function Is_Greater          (Value : Alias) return Condition.Object;
    function Is_Greater_Or_Equal (Value : Alias) return Condition.Object;
    function Is_Different        (Value : Alias) return Condition.Object;

    -- miscellaneous condition

    function Is_Any                     return Condition.Object;
    function Say_It_Is (Object : Alias) return Condition.Object;

    -- others

    function "and" (Left, Right : Condition.Object) return Condition.Object;
    function Match (Value : Integer; Against : Condition.Object) return Boolean;
private  
    type Operators is (
                       -- value operators

                       Is_Equal, Is_Less, Is_Less_Or_Equal,
                       Is_Greater, Is_Greater_Or_Equal, Is_Different,

                       --  alias operators

                       Is_Equal_To_Alias, Is_Less_Than_Alias,
                       Is_Less_Or_Equal_Than_Alias, Is_Greater_Than_Alias,
                       Is_Greater_Or_Equal_Than_Alias, Is_Different_Than_Alias,

                       -- miscellaneous operators

                       Is_Any, Say_It_Is);

    subtype Value_Operators         is Operators range Is_Equal .. Is_Different;
    subtype Alias_Operators         is
       Operators range Is_Equal_To_Alias .. Is_Different_Than_Alias;
    subtype Miscellaneous_Operators is Operators range Is_Any .. Say_It_Is;

    type Condition_Element is
        record
            Operator : Operators;
            Operand  : Integer;
        end record;

    type Condition_Elements is array (Positive range <>) of Condition_Element;

    type Object (Count : Term_Count := 0) is
        record
            Value : Condition_Elements (1 .. Count);
        end record;
end Condition;

E3 Meta Data

    nblk1=4
    nid=0
    hdr6=8
        [0x00] rec0=18 rec1=00 rec2=01 rec3=02e
        [0x01] rec0=01 rec1=00 rec2=03 rec3=01e
        [0x02] rec0=18 rec1=00 rec2=02 rec3=048
        [0x03] rec0=18 rec1=00 rec2=04 rec3=000
    tail 0x21722d07c83cd8793fe0c 0x42a00088462063c03