|
|
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 More_Binary, seg_037ddc, seg_038aca
└─⟦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 Binary;
with Message;
with Msg_Report;
with Object;
with Scanner;
with String_Utilities;
with Unparse_Report;
package body More_Binary is
type Node_Structure is
record
Bina : Binary.Node := Binary.Empty_Node;
Bmes : Message.Selector := Message.Void_Selector;
Lign : Integer;
end record;
function Su_Capitalize (A_String : String) return String
renames String_Utilities.Capitalize;
procedure Parse (N : in out Node; Error : out Boolean) is
Failed : Boolean := False;
use Scanner;
begin
Msg_Report.Information ("I enter in more_binary's parse");
N := new Node_Structure;
N.Lign := Scanner.Line_Number;
Message.Copy (N.Bmes, Scanner.Value);
Msg_Report.Continue ("binary message is " & Message.Image (N.Bmes));
Scanner.Next;
if Binary.Is_First (Scanner.Symbol) then
Binary.Parse (N.Bina, Failed);
else
Msg_Report.Syntax_Error ("incorrect first for more_binary :");
Failed := True;
end if;
Msg_Report.Information ("I leave more_binary's parse with failed = " &
Boolean'Image (Failed));
Error := Failed;
end Parse;
procedure Unparse (N : Node) is
begin
Unparse_Report.Write (Su_Capitalize (Message.Image (N.Bmes)) & " ");
Binary.Unparse (N.Bina);
end Unparse;
function Is_First (T : Scanner.Token) return Boolean is
use Scanner;
begin
return T = L_Binary_Msg;
end Is_First;
function Interpret (N : Node;
Inherited : Object.Reference := Object.Void_Reference)
return Object.Reference is
Result : Object.Reference;
A_Bin_Mess : Message.Selector := Message.Void_Selector;
use Object;
begin
Msg_Report.Information ("I enter in more_binary's interpret");
Msg_Report.Set_Line_Number (N.Lign);
Message.Cat (A_Bin_Mess, N.Bmes);
Result := Binary.Interpret (N.Bina, Inherited, A_Bin_Mess);
Msg_Report.Information
("I leave more_binary'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 More_Binary;
nblk1=4
nid=3
hdr6=6
[0x00] rec0=26 rec1=00 rec2=01 rec3=010
[0x01] rec0=20 rec1=00 rec2=04 rec3=01a
[0x02] rec0=16 rec1=00 rec2=02 rec3=000
[0x03] rec0=1a rec1=00 rec2=03 rec3=000
tail 0x215312b0e84e58ab6312a 0x42a00088462060003
Free Block Chain:
0x3: 0000 00 00 00 04 80 01 61 01 61 03 20 20 20 20 20 72 ┆ a a r┆