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

⟦d9e43befc⟧ Ada Source

    Length: 4096 (0x1000)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Liste_Des_Entrees, seg_0464b4, seg_046515

Derivation

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

E3 Source Code



with Lexical, Erreur;
with Comps_Dictionary, Verbs_Dictionary, Bounded_String;

use Lexical, Bounded_String;

package body Liste_Des_Entrees is

    procedure Parse (Comp : Comps_Dictionary.Object;
                     Dict : Verbs_Dictionary.Object;
                     Entree1, Entree2, Entree3 : in out Variable_String) is
    begin

        Bounded_String.Free (Entree1);
        Bounded_String.Free (Entree2);
        Bounded_String.Free (Entree3);

        if Lexical.Get_Token = Id then

            Bounded_String.Copy (Entree1, Lexical.Get_Value);

            if not Verbs_Dictionary.Exist (Lexical.Get_Value, Dict) and
               not Comps_Dictionary.Exist (Lexical.Get_Value, Comp) then
                Erreur.Alerte ("Mot non defini en complement/verbe");
            end if;

            Lexical.Next;
            if Lexical.Get_Token = Id then

                Bounded_String.Copy (Entree2, Lexical.Get_Value);

                if not Comps_Dictionary.Exist (Lexical.Get_Value, Comp) then
                    Erreur.Alerte ("Mot non defini en complement");
                end if;

                Lexical.Next;
                if Lexical.Get_Token = Id then

                    Bounded_String.Copy (Entree3, Lexical.Get_Value);

                    if not Comps_Dictionary.Exist (Lexical.Get_Value, Comp) then
                        Erreur.Alerte ("Mot non defini en complement");
                    end if;

                    Lexical.Next;
                end if;
            else
                if Lexical.Get_Token = Lexical.Comp then
                    Lexical.Next;
                    Bounded_String.Copy (Entree2, "COMP");
                end if;
            end if;
        else
            if Lexical.Get_Token = Lexical.Comp then
                Bounded_String.Copy (Entree1, "COMP");
                Lexical.Next;
            else
                Erreur.Syntaxe ("Mauvaise expression de saisie joueur");
            end if;
        end if;

    end Parse;

end Liste_Des_Entrees;



E3 Meta Data

    nblk1=3
    nid=0
    hdr6=6
        [0x00] rec0=20 rec1=00 rec2=01 rec3=02c
        [0x01] rec0=1a rec1=00 rec2=02 rec3=062
        [0x02] rec0=09 rec1=00 rec2=03 rec3=001
    tail 0x2174818b4864d54565028 0x42a00088462060003