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

⟦14bfa61d6⟧ Ada Source

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

Derivation

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

E3 Source Code



with Text_Io, Unbounded_String;
use Text_Io;

package body Lex_Jo2 is

    package Ubs is new Unbounded_String;

    subtype Digit is Character range '0' .. '9';
    subtype Lowercase is Character range 'a' .. 'z';
    subtype Uppercase is Character range 'A' .. 'Z';

    Une_Chaine : String (1 .. 80);
    Nb_Car_Lu, Cpt, Nb_Mot : Natural;
    Error : Boolean := False;
    Tab_Mot : array (1 .. 4) of Ubs.Variable_String;

    procedure Saisirtexte is

    begin
        Get_Line (Une_Chaine, Nb_Car_Lu);
        New_Line;
        Cpt := 1;
        Nb_Mot := 1;
        Ubs.Free (Tab_Mot (Nb_Mot));
        while (Cpt <= Nb_Car_Lu) and not Error loop
            case Une_Chaine (Cpt) is
                when Digit | Lowercase | Uppercase =>
                    Ubs.Append (Tab_Mot (Nb_Mot), Une_Chaine (Cpt));
                    Cpt := Cpt + 1;
                when ' ' =>
                    while Une_Chaine (Cpt) = ' ' loop
                        Cpt := Cpt + 1;
                    end loop;
                    if Nb_Mot < 4 then
                        Nb_Mot := Nb_Mot + 1;
                        Ubs.Free (Tab_Mot (Nb_Mot));
                    else
                        Error := True;
                    end if;
                when others =>
                    Error := True;
            end case;
        end loop;

        if not Error then
            for I in Tab_Mot'Range loop
                Put_Line (Ubs.Image (Tab_Mot (I)));
            end loop;
        else
            Put_Line ("il y a eu une erreur detecte dans la phrase !!");
        end if;
    end Saisirtexte;




end Lex_Jo2;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=21 rec1=00 rec2=01 rec3=028
        [0x01] rec0=1a rec1=00 rec2=02 rec3=001
    tail 0x21537ca6e86045e003cf1 0x42a00088462060003