|
|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 5120 (0x1400)
Types: Ada Source
Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Primary_Predicate, seg_03b952, seg_03c0d0, seg_03c53b, separate Generic_Predicate
└─⟦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⟧
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;
function Make_Collection
(Of_Objects : Generic_Predicate.Objects) return Object is
begin
return Object'(Kind => Predicate_Collection,
The_Collection =>
new Generic_Predicate.Objects'(Of_Objects));
end Make_Collection;
function Get (From_Object : Object) return Generic_Predicate.Objects is
begin
return From_Object.The_Collection.all;
end Get;
function Get (From_Object : Object) return Alias.Name is
begin
return From_Object.The_Alias;
end Get;
procedure Get (From_Object : Object;
Left, Right : out Generic_Predicate.Object) is
begin
Left := From_Object.The_Left_Predicate;
Right := From_Object.The_Right_Predicate;
end Get;
function Is_A_Collection (What : Object) return Boolean is
begin
return What.Kind = Predicate_Collection;
end Is_A_Collection;
function Is_A_Conjunction (What : Object) return Boolean is
begin
return What.Kind = Predicate_Conjunction;
end Is_A_Conjunction;
function Is_A_Define_As (What : Object) return Boolean is
begin
return What.Kind = Alias_Definition;
end Is_A_Define_As;
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);
when Predicate_Collection =>
Put ("Collection of predicates", 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);
when Predicate_Collection =>
return False;
end case;
end Match;
end Primary_Predicate;
nblk1=4
nid=0
hdr6=8
[0x00] rec0=1c rec1=00 rec2=01 rec3=092
[0x01] rec0=28 rec1=00 rec2=03 rec3=072
[0x02] rec0=06 rec1=00 rec2=04 rec3=02a
[0x03] rec0=1b rec1=00 rec2=02 rec3=000
tail 0x21738c33285258022cb48 0x42a00088462063c03