DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400 Tapes

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 Tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: ┃ B T

⟦0b1e1d21f⟧ TextFile

    Length: 1150 (0x47e)
    Types: TextFile
    Names: »B«

Derivation

└─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11
    └─ ⟦129cab021⟧ »DATA« 
        └─⟦this⟧ 
└─⟦2f6cfab89⟧ Bits:30000547 8mm tape, Rational 1000, !projects 94-01-04
    └─ ⟦d65440be7⟧ »DATA« 
        └─⟦this⟧ 

TextFile

with Ascan_Dfa;
use Ascan_Dfa;
package body Ascan_Dfa is
    function Yytext return String is
        I : Integer;
        Str_Loc : Integer := 1;
        Buffer : String (1 .. 1024);
        Empty_String : constant String := "";
    begin
        -- find end of buffer
        I := Yytext_Ptr;
        while (Yy_Ch_Buf (I) /= Ascii.Nul) loop
            Buffer (Str_Loc) := Yy_Ch_Buf (I);
            I := I + 1;
            Str_Loc := Str_Loc + 1;
        end loop;
--    return yy_ch_buf(yytext_ptr.. i - 1);

        if (Str_Loc < 2) then
            return Empty_String;
        else
            return Buffer (1 .. Str_Loc - 1);
        end if;

    end Yytext;

-- returns the length of the matched text
    function Yylength return Integer is
    begin
        return Yy_Cp - Yy_Bp;
    end Yylength;

-- done after the current pattern has been matched and before the
-- corresponding action - sets up yytext

    procedure Yy_Do_Before_Action is
    begin
        Yytext_Ptr := Yy_Bp;
        Yy_Hold_Char := Yy_Ch_Buf (Yy_Cp);
        Yy_Ch_Buf (Yy_Cp) := Ascii.Nul;
        Yy_C_Buf_P := Yy_Cp;
    end Yy_Do_Before_Action;

end Ascan_Dfa;