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

⟦4cd049c43⟧ Ada Source

    Length: 5120 (0x1400)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Instruction_Si, seg_04865a

Derivation

└─⟦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, Exp_Cond, Instructions;
with Liste_D_Instructions, Models, Symbols, Comps_Dictionary, Verbs_Dictionary;
with Abstract_Tree, Text_Io;

use Lexical;

package body Instruction_Si is

    Follow : Token_List.Object :=
       Token_List.Make ((Si, Pour, Animation_Globale, Animation_Locale,
                         Comp, Id, Lie_Connexion, Delie_Connexion,
                         Lie_Lien, Delie_Lien, Liste_Lien, Echanger_Lien,
                         Afficher, Fin, Sinon, Finsi, Finpour));

    procedure Bloc_Sinon (Liste : in out Liste_D_Instructions.Object;
                          Models_Table : Models.Object;
                          Symbols_Table : Symbols.Object;
                          Comp : Comps_Dictionary.Object;
                          Dict : Verbs_Dictionary.Object) is
    begin

        if Lexical.Get_Token = Sinon then
            Lexical.Next;
            Instructions.Parse (Liste, Models_Table, Symbols_Table, Comp, Dict);
        else
            Liste := Liste_D_Instructions.Creer_Vide;
        end if;

    end Bloc_Sinon;

    procedure Parse (Liste : in out Liste_D_Instructions.Object;
                     Models_Table : Models.Object;
                     Symbols_Table : Symbols.Object;
                     Comp : Comps_Dictionary.Object;
                     Dict : Verbs_Dictionary.Object) is
        Node : Abstract_Tree.Object;
        Liste_Alors : Liste_D_Instructions.Object;
        Liste_Sinon : Liste_D_Instructions.Object;
    begin

        Liste_Alors := Liste_D_Instructions.Creation;
        Liste_Sinon := Liste_D_Instructions.Creation;

        if Lexical.Get_Token = Si then
            Lexical.Next;
            Exp_Cond.Parse (Node, Models_Table, Symbols_Table, Comp, Dict);

            if Lexical.Get_Token = Alors then
                Lexical.Next;
                Instructions.Parse (Liste_Alors, Models_Table,
                                    Symbols_Table, Comp, Dict);

                Bloc_Sinon (Liste_Sinon, Models_Table,
                            Symbols_Table, Comp, Dict);

                if Lexical.Get_Token = Finsi then
                    Lexical.Next;
                    Liste_D_Instructions.Attache
                       (Liste, Liste_D_Instructions.Creer_Si
                                  (Node, Liste_Alors, Liste_Sinon));
                else
                    Erreur.Syntaxe ("Manque Finsi", Follow);
                end if;
            else
                Erreur.Syntaxe ("Manque Alors", Follow);
            end if;
        else
            Erreur.Syntaxe ("Manque Si", Follow);
        end if;

    end Parse;

end Instruction_Si;


E3 Meta Data

    nblk1=4
    nid=2
    hdr6=6
        [0x00] rec0=19 rec1=00 rec2=01 rec3=08e
        [0x01] rec0=1b rec1=00 rec2=04 rec3=03c
        [0x02] rec0=19 rec1=00 rec2=03 rec3=000
        [0x03] rec0=11 rec1=00 rec2=03 rec3=000
    tail 0x2174c90b886597b28334e 0x42a00088462060003
Free Block Chain:
  0x2: 0000  00 00 03 fc 80 0c 6e 61 72 79 2e 4f 62 6a 65 63  ┆      nary.Objec┆