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: ┃ T V

⟦317fefb5a⟧ TextFile

    Length: 2770 (0xad2)
    Types: TextFile
    Names: »V«

Derivation

└─⟦149519bd4⟧ Bits:30000546 8mm tape, Rational 1000, !projects 93-07-13
    └─ ⟦124ff5788⟧ »DATA« 
        └─⟦this⟧ 
└─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11
    └─ ⟦129cab021⟧ »DATA« 
        └─⟦this⟧ 
└─⟦f64eaa120⟧ Bits:30000752 8mm tape, Rational 1000, !projects 93 02 16
    └─ ⟦6f12a12be⟧ »DATA« 
        └─⟦this⟧ 
└─⟦2f6cfab89⟧ Bits:30000547 8mm tape, Rational 1000, !projects 94-01-04
    └─ ⟦d65440be7⟧ »DATA« 
        └─⟦this⟧ 
└─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11
    └─ ⟦129cab021⟧ »DATA« 
        └─⟦e24fb53b7⟧ 
            └─⟦this⟧ 

TextFile

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;