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

⟦636d422f9⟧ TextFile

    Length: 2720 (0xaa0)
    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

with Output_Stream;
generic
package Generic_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 Object;
    function Is_Less             (Value : Integer) return Object;
    function Is_Less_Or_Equal    (Value : Integer) return Object;
    function Is_Greater          (Value : Integer) return Object;
    function Is_Greater_Or_Equal (Value : Integer) return Object;
    function Is_Different        (Value : Integer) return Object;

    -- alias condition

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

    -- miscellaneous condition

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

    -- others

    function  "and" (Left, Right : Object)              return Object;
    function  Match (Value : Integer; Against : Object) return Boolean;
    procedure Put   (The_Condition : Object; Where : Output_Stream.Object);

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 Term is
        record
            Operator : Operators;
            Operand  : Integer;
        end record;

    type Terms is array (Positive range <>) of Term;

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