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

⟦a3fc2ac28⟧ Ada Source

    Length: 7168 (0x1c00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Instructions, seg_040f58

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, Token_List, Erreur, Instruction_Si, Nom_De_Variable,
     Variable, Expression_Generale, Etat, Param_Afficher;
use Lexical, Token_List;

package body Instructions is

    Instruction_First : Token_List.Object :=
       Make ((Si, Moins, Comp, Detruire_Connexion, Lie_Connexion,
              Delie_Connexion, Detruire_Lien, Lie_Lien, Delie_Lien,
              Liste_Lien, Echanger_Lien, Afficher, Fin));

    procedure Instruction is
    begin

        if Is_In (Lexical.Get_Token, Instruction_Si.First) then
            Instruction_Si.Parse;
        else
            if Is_In (Lexical.Get_Token, Variable.First) then
                Variable.Parse;
                if Lexical.Get_Token = Affect then
                    Lexical.Next;
                    Expression_Generale.Parse;
                else
                    Erreur.Parse ("Manque :=");
                end if;
            else
                case Lexical.Get_Token is

                    when Detruire_Connexion | Echanger_Lien =>

                        Lexical.Next;
                        if Lexical.Get_Token = Parnto then
                            Lexical.Next;
                            Nom_De_Variable.Parse;
                            if Lexical.Get_Token = Virgul then
                                Lexical.Next;
                                Nom_De_Variable.Parse;
                                if Lexical.Get_Token = Virgul then
                                    Lexical.Next;
                                    Nom_De_Variable.Parse;
                                    if Lexical.Get_Token = Parntf then
                                        Lexical.Next;
                                    else
                                        Erreur.Parse ("Manque )");
                                    end if;
                                else
                                    Erreur.Parse ("Manque ,");
                                end if;
                            else
                                Erreur.Parse ("Manque ,");
                            end if;
                        else
                            Erreur.Parse ("Manque (");
                        end if;

                    when Lie_Connexion | Delie_Connexion |
                         Detruire_Lien | Lie_Lien | Delie_Lien =>

                        Lexical.Next;
                        if Lexical.Get_Token = Parnto then
                            Lexical.Next;
                            Nom_De_Variable.Parse;
                            if Lexical.Get_Token = Virgul then
                                Lexical.Next;
                                Nom_De_Variable.Parse;
                                if Lexical.Get_Token = Parntf then
                                    Lexical.Next;
                                else
                                    Erreur.Parse ("Manque )");
                                end if;
                            else
                                Erreur.Parse ("Manque ,");
                            end if;
                        else
                            Erreur.Parse ("Manque (");
                        end if;


                    when Liste_Lien =>

                        Lexical.Next;
                        if Lexical.Get_Token = Parnto then
                            Lexical.Next;
                            Nom_De_Variable.Parse;
                            if Lexical.Get_Token = Virgul then
                                Lexical.Next;
                                Etat.Parse;
                                if Lexical.Get_Token = Parntf then
                                    Lexical.Next;
                                else
                                    Erreur.Parse ("Manque )");
                                end if;
                            else
                                Erreur.Parse ("Manque ,");
                            end if;
                        else
                            Erreur.Parse ("Manque (");
                        end if;


                    when Afficher =>

                        Lexical.Next;
                        if Lexical.Get_Token = Parnto then
                            Lexical.Next;
                            Param_Afficher.Parse;
                            if Lexical.Get_Token = Parntf then
                                Lexical.Next;
                            else
                                Erreur.Parse ("Manque )");
                            end if;
                        else
                            Erreur.Parse ("Manque (");
                        end if;

                    when Fin =>
                        Lexical.Next;

                    when others =>
                        Erreur.Parse ("Mauvaise instruction");

                end case;
            end if;
        end if;

    end Instruction;

    procedure Parse is
    begin

        Instruction;
        while Is_In (Lexical.Get_Token, Instruction_First) loop
            Instruction;
        end loop;

    end Parse;

end Instructions;


E3 Meta Data

    nblk1=6
    nid=0
    hdr6=c
        [0x00] rec0=1e rec1=00 rec2=01 rec3=012
        [0x01] rec0=13 rec1=00 rec2=02 rec3=022
        [0x02] rec0=16 rec1=00 rec2=03 rec3=010
        [0x03] rec0=18 rec1=00 rec2=04 rec3=024
        [0x04] rec0=1c rec1=00 rec2=05 rec3=01e
        [0x05] rec0=13 rec1=00 rec2=06 rec3=001
    tail 0x2153baf9086126dfffdbf 0x42a00088462060003