|
|
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: 8192 (0x2000)
Types: Ada Source
Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Value, seg_037d54, seg_038ada
└─⟦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⟧
with Arguments;
with Binary;
with Block_Class;
with Boolean_Class;
with Integer_Class;
with Message;
with Msg_Report;
with More_Value;
with Object;
with Pen_Class;
with Scanner;
with String_Class;
with Turtle_Class;
with Unparse_Report;
package body Value is
type Node_Structure is
record
Info : Natural range 0 .. 1 := 0;
Bina : Binary.Node := Binary.Empty_Node;
Mova : More_Value.Node := More_Value.Empty_Node;
Lign : Integer;
end record;
procedure Parse (N : in out Node; Error : out Boolean) is
Failed : Boolean := False;
begin
Msg_Report.Information ("I enter in value's parse");
N := new Node_Structure;
N.Lign := Scanner.Line_Number;
Binary.Parse (N.Bina, Failed);
if not Failed then
if More_Value.Is_First (Scanner.Symbol) then
N.Info := 1;
More_Value.Parse (N.Mova, Failed);
end if;
end if;
Msg_Report.Information ("I leave value's parse with failed = " &
Boolean'Image (Failed));
Error := Failed;
end Parse;
procedure Unparse (N : Node) is
begin
Binary.Unparse (N.Bina);
if N.Info = 1 then
More_Value.Unparse (N.Mova);
end if;
end Unparse;
function Is_First (T : Scanner.Token) return Boolean is
use Scanner;
begin
return Binary.Is_First (T);
end Is_First;
function Interpret
(N : Node;
Inherited : Object.Reference := Object.Void_Reference;
A_Keyword_Mess : Message.Selector := Message.Void_Selector;
A_List : Arguments.List := Arguments.Void_Arguments)
return Object.Reference is
Result : Object.Reference;
A_Modify_List : Arguments.List;
use Object;
begin
Msg_Report.Information ("I enter in value's interpret");
Msg_Report.Set_Line_Number (N.Lign);
Result := Binary.Interpret (N.Bina);
Msg_Report.Information ("value inherited object is :");
Msg_Report.Continue
("class = " & Object.Class'Image (Object.The_Class (Inherited)) &
" ident = " & Integer'Image (Object.Identificator (Inherited)));
Msg_Report.Information ("Info = " & Integer'Image (N.Info));
if (Inherited = Object.Void_Reference) then
if N.Info = 1 then
Result := More_Value.Interpret
(N.Mova, Result, A_Keyword_Mess, A_List);
end if;
else
A_Modify_List := A_List;
Arguments.Write (A_Modify_List, Result);
if N.Info = 1 then
Result := More_Value.Interpret (N.Mova, Inherited,
A_Keyword_Mess, A_Modify_List);
else
case Object.The_Class (Inherited) is
when Object.C_Block =>
Msg_Report.Information ("I call block interpret");
Result := Block_Class.Send
(Inherited, A_Keyword_Mess, A_Modify_List);
when Object.C_Integer =>
Msg_Report.Information ("I call integer send");
Result := Integer_Class.Send
(Inherited, A_Keyword_Mess, A_Modify_List);
when Object.C_Boolean =>
Msg_Report.Information ("I call boolean send");
Result := Boolean_Class.Send
(Inherited, A_Keyword_Mess, A_Modify_List);
when Object.C_String =>
Msg_Report.Information ("I call boolean send");
Result := String_Class.Send
(Inherited, A_Keyword_Mess, A_Modify_List);
when Object.C_Turtle =>
Msg_Report.Information ("I call turtle send");
Result := Turtle_Class.Send
(Inherited, A_Keyword_Mess, A_Modify_List);
when Object.C_Pen =>
Msg_Report.Information ("I call pen send");
Result := Pen_Class.Send
(Inherited, A_Keyword_Mess, A_Modify_List);
when Object.C_Void =>
null;
end case;
end if;
end if;
Msg_Report.Information ("I leave value's interpret with result :");
Msg_Report.Continue
("class = " & Object.Class'Image (Object.The_Class (Result)) &
" ident = " & Integer'Image (Object.Identificator (Result)));
return Result;
end Interpret;
end Value;
nblk1=7
nid=5
hdr6=c
[0x00] rec0=28 rec1=00 rec2=01 rec3=02e
[0x01] rec0=24 rec1=00 rec2=03 rec3=02e
[0x02] rec0=0f rec1=00 rec2=06 rec3=01c
[0x03] rec0=1c rec1=00 rec2=04 rec3=034
[0x04] rec0=1a rec1=00 rec2=02 rec3=034
[0x05] rec0=16 rec1=00 rec2=07 rec3=000
[0x06] rec0=e5 rec1=44 rec2=00 rec3=01f
tail 0x215311c7284e5827d67cc 0x42a00088462060003
Free Block Chain:
0x5: 0000 00 00 02 62 80 06 73 2e 53 65 6e 64 06 00 52 20 ┆ b s.Send R ┆