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

⟦226ee54c7⟧ Ada Source

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

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, Token_List, Erreur, Definitions_Simples, Noms_Enumeres;
use Lexical, Token_List;

package body Definitions is

    Definition_First : Token_List.Object := Make ((Structure, Enumere));

    procedure Definition is
    begin

        case Lexical.Get_Token is

            when Structure =>

                Lexical.Next;
                if Lexical.Get_Token = Id then
                    Lexical.Next;
                    if Lexical.Get_Token = Parnto then
                        Lexical.Next;
                        Definitions_Simples.Parse;
                        if Lexical.Get_Token = Parntf then
                            Lexical.Next;
                        else
                            Erreur.Syntaxe ("Manque )");
                        end if;
                    else
                        Erreur.Syntaxe ("Manque (");
                    end if;
                else
                    Erreur.Syntaxe ("Manque Nom de structure");
                end if;

            when Enumere =>

                Lexical.Next;
                if Lexical.Get_Token = Id then
                    Lexical.Next;
                    if Lexical.Get_Token = Parnto then
                        Lexical.Next;
                        Noms_Enumeres.Parse;
                        if Lexical.Get_Token = Parntf then
                            Lexical.Next;
                        else
                            Erreur.Syntaxe ("Manque )");
                        end if;
                    else
                        Erreur.Syntaxe ("Manque (");
                    end if;
                else
                    Erreur.Syntaxe ("Manque Nom de enumere");
                end if;

            when others =>
                Erreur.Syntaxe ("Manque Enumere/Structure");
        end case;

    end Definition;

    procedure Parse is
    begin

        Definition;
        while Is_In (Lexical.Get_Token, Definition_First) loop
            Definition;
        end loop;

    end Parse;

end Definitions;


E3 Meta Data

    nblk1=4
    nid=4
    hdr6=6
        [0x00] rec0=1f rec1=00 rec2=01 rec3=066
        [0x01] rec0=21 rec1=00 rec2=02 rec3=028
        [0x02] rec0=08 rec1=00 rec2=03 rec3=000
        [0x03] rec0=0c rec1=00 rec2=04 rec3=000
    tail 0x21742e29c86295e348369 0x42a00088462060003
Free Block Chain:
  0x4: 0000  00 00 00 d7 80 10 6f 63 65 64 75 72 65 20 50 61  ┆      ocedure Pa┆