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

⟦234f5e81e⟧ Ada Source

    Length: 5120 (0x1400)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Liste_Des_Entrees, seg_049021, seg_0493ea

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, Token_List;
with Comps_Dictionary, Verbs_Dictionary, Bounded_String;

use Lexical, Bounded_String;

package body Liste_Des_Entrees is

    Follow : Token_List.Object := Token_List.Make (Crochf);

    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", Follow);
            end if;
        end if;

    end Parse;

end Liste_Des_Entrees;



E3 Meta Data

    nblk1=4
    nid=3
    hdr6=6
        [0x00] rec0=20 rec1=00 rec2=01 rec3=020
        [0x01] rec0=1a rec1=00 rec2=04 rec3=02e
        [0x02] rec0=0b rec1=00 rec2=02 rec3=001
        [0x03] rec0=94 rec1=00 rec2=00 rec3=000
    tail 0x2174d51f0865b3e10eaeb 0x42a00088462060003
Free Block Chain:
  0x3: 0000  00 00 00 82 80 1e 69 6f 6e 20 64 65 20 73 61 69  ┆      ion de sai┆