|
|
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: 3072 (0xc00)
Types: Ada Source
Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Source, seg_03d451
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦cfc2e13cd⟧ »Space Info Vol 2«
└─⟦this⟧
package body Source is
Currentchar : Character;
Lookahead : Boolean;
Currentline : Natural;
Currentcol : Natural;
procedure Init is
begin
Lookahead := False;
Currentline := 1;
Currentcol := 0;
end Init;
function Get_Line return Natural is
begin
return Currentline;
end Get_Line;
function Get_Column return Natural is
begin
return Currentcol;
end Get_Column;
function Value return Character is
begin
return Currentchar;
end Value;
procedure Unget is
begin
Lookahead := True;
end Unget;
function At_End (Handle : in T_File) return Boolean is
begin
-- if (text_io.end_of_file(handle))
--\x09then
--\x09 if (lookahead)
--\x09 then return (CurrentChar=EOF);
--\x09\x09else return (False);
--\x09 end if;
--\x09 else return(FAlse);
-- end if;
return (Text_Io.End_Of_File (Handle));
end At_End;
procedure Next (Handle : in T_File) is
begin
if (Lookahead = False) then
if Text_Io.End_Of_File (Handle) then
Currentchar := Eof;
elsif Text_Io.End_Of_Line (Handle) then
Text_Io.Skip_Line (Handle);
Currentchar := Ascii.Cr;
Currentline := Currentline + 1;
Currentcol := 0;
else
Text_Io.Get (Handle, Currentchar);
Currentcol := Currentcol + 1;
end if;
else
Lookahead := False;
end if;
end Next;
function Get (Handle : in T_File) return Character is
begin
Next (Handle);
return (Value);
end Get;
end Source;
nblk1=2
nid=0
hdr6=4
[0x00] rec0=30 rec1=00 rec2=01 rec3=032
[0x01] rec0=21 rec1=00 rec2=02 rec3=001
tail 0x2173bdfca85f8419d6f6b 0x42a00088462060003