|
|
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: 4096 (0x1000)
Types: Ada Source
Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Binary_Expression, seg_02cf63, seg_02d12d, seg_0399f6, seg_03b945, seg_03c0bc, seg_03c527, seg_03c6ce, separate Generic_Expression
└─⟦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_Expression)
package body Binary_Expression is
function Make (The_Operator : System_Defined.Operators;
The_Left_Operand : Generic_Expression.Object;
The_Right_Operand : Generic_Expression.Object)
return Object is
begin
return Object'(Owner => System,
The_System_Operator => The_Operator,
The_Left_Operand => The_Left_Operand,
The_Right_Operand => The_Right_Operand);
end Make;
function Make (The_Operator : User_Defined_Operators;
The_Left_Operand : Generic_Expression.Object;
The_Right_Operand : Generic_Expression.Object)
return Object is
begin
return Object'(Owner => User,
The_User_Operator => The_Operator,
The_Left_Operand => The_Left_Operand,
The_Right_Operand => The_Right_Operand);
end Make;
procedure Put (The_Object : Object; Where : Output_Stream.Object) is
use Output_Stream;
begin
Put (The_Object.The_Left_Operand, Where);
case The_Object.Owner is
when System =>
Put (" " &
System_Defined.Image (The_Object.The_System_Operator) &
" ", Where);
when User =>
Put (" " & User_Defined_Image (The_Object.The_User_Operator) &
" ", Where);
end case;
Put (The_Object.The_Right_Operand, Where);
end Put;
function Evaluate (The_Object : Object) return Slot.Object is
The_Left_Value, The_Right_Value : Slot.Object;
begin
The_Left_Value := Evaluate (The_Object.The_Left_Operand);
The_Right_Value := Evaluate (The_Object.The_Right_Operand);
case The_Object.Owner is
when System =>
return System_Defined.Evaluate
(Using_Operator => The_Object.The_System_Operator,
Left => The_Left_Value,
Right => The_Right_Value);
when User =>
return User_Defined_Binary_Evaluate
(Using_Operator => The_Object.The_User_Operator,
Left => The_Left_Value,
Right => The_Right_Value);
end case;
end Evaluate;
end Binary_Expression;
nblk1=3
nid=0
hdr6=6
[0x00] rec0=16 rec1=00 rec2=01 rec3=07a
[0x01] rec0=1b rec1=00 rec2=02 rec3=040
[0x02] rec0=0e rec1=00 rec2=03 rec3=000
tail 0x21525d0fc84135339d577 0x42a00088462063c03