DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Rational R1000/400

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦3c2069390⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Source, seg_040ddb

Derivation

└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
    └─ ⟦cfc2e13cd⟧ »Space Info Vol 2« 
        └─⟦this⟧ 

E3 Source Code



package body Source is

    Currentchar : Character;
    Lookahead : Boolean;
    Currentline : Natural;
    Currentcol : Natural;
    Handle : T_File;

    procedure Init (Nomf : String) is
    begin
        Lookahead := False;
        Currentline := 1;
        Currentcol := 0;
        Text_Io.Open (File => Handle, Mode => Text_Io.In_File, Name => Nomf);
    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 return Boolean is
    begin
        return (Text_Io.End_Of_File (Handle));
    end At_End;


    procedure Next 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 return Character is
    begin
        Next;
        return (Value);
    end Get;

    procedure Close is
    begin
        Text_Io.Close (Handle);
    end Close;

end Source;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=30 rec1=00 rec2=01 rec3=002
        [0x01] rec0=1e rec1=00 rec2=02 rec3=001
    tail 0x2174120be8612623dcc67 0x42a00088462060003