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

⟦bb1dc027a⟧ Ada Source

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

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 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

    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");
                end if;
            else
                Erreur.Syntaxe ("Manque Alors");
            end if;
        else
            Erreur.Syntaxe ("Manque Si");
        end if;

    end Parse;

end Instruction_Si;


E3 Meta Data

    nblk1=4
    nid=0
    hdr6=8
        [0x00] rec0=1d rec1=00 rec2=01 rec3=02a
        [0x01] rec0=00 rec1=00 rec2=04 rec3=026
        [0x02] rec0=19 rec1=00 rec2=02 rec3=060
        [0x03] rec0=11 rec1=00 rec2=03 rec3=000
    tail 0x215433e9686515d8195a6 0x42a00088462060003