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

⟦9e1a7d603⟧ TextFile

    Length: 445 (0x1bd)
    Types: TextFile
    Names: »B«

Derivation

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

TextFile

with Text_Io, Stack_Generic;
procedure Test is
    package Stack_Char is new Stack_Generic (10, Character);
    Pile : Stack_Char.Object (3);
    C, D : Character;
begin
    Text_Io.Get (C);
    while C /= '=' loop
        if C = 'p' then
            Stack_Char.Push (Pile, C);
        end if;
        if C = 'o' then
            Stack_Char.Pop (Pile, D);
        end if;
        Text_Io.Put (C);
        Text_Io.Get (C);
    end loop;
end Test;