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

⟦b815d20d9⟧ Ada Source

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

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 Document, Mots, Nombre_De_Mots, Text_Io, Gestion_De_Tables;


package body Interpreteur is

    procedure Interprete is
        Mot_Lu : Mots.Mot;
        Num_Word : Nombre_De_Mots.Numero;
        B_Fini : Boolean := False;
        Un_Tableau : Gestion_De_Tables.Tableau;
        Cha : String (Gestion_De_Tables.Taille_Table);


    begin
        Un_Tableau (1) := new String'("aller");
        Un_Tableau (2) := new String'("manger");
        Un_Tableau (3 .. 80) := (others => (new String'(" ")));
        Document.Open;
        Text_Io.Put ("/:> ");
        loop
            Document.Get (Mot_Lu, Num_Word, B_Fini);

            if (Num_Word > Nombre_De_Mots.Nombre_Max_Mots) then
                raise Out_Of_Words;
            end if;

            if Gestion_De_Tables.Chercher_Dans_Table (Un_Tableau, Mot_Lu) then
                Text_Io.Put_Line ("Mot correct");
            else
                Text_Io.Put_Line ("Mot incorrect");
            end if;

            --exit when (Integer (Num_Word) = 4);
            exit when B_Fini = True;

        end loop;
        Document.Close;
    exception
        when Out_Of_Words =>
            Text_Io.Put_Line ("Il n'y a pas plus de quatre mots !");
        when others =>
            Text_Io.Put_Line ("fin de commande");
    end Interprete;

end Interpreteur;


E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=20 rec1=00 rec2=01 rec3=014
        [0x01] rec0=10 rec1=00 rec2=02 rec3=001
    tail 0x2153a9b3c860e3f652984 0x42a00088462060003