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

⟦be17ddfff⟧ Ada Source

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

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 Complements;
with Items;

with Syntax_Error;
with Lexical;  
with Compiler_Token;
use Compiler_Token;


package body Chose is
    procedure Parse is
        Nom : Lexical.Our_String.Variable_String;
        Commentaire : Lexical.Our_String.Variable_String;

    begin  
        if Lexical.Get_Token = L_Chose then
            Lexical.Next;
            if Lexical.Get_Token = L_Id then
                Nom := Lexical.Our_String.Value (Lexical.Get_Value);
                Lexical.Next;
                if Lexical.Get_Token = L_Est then
                    Lexical.Next;
                    if Lexical.Get_Token = L_Str then  
                        Commentaire := Lexical.Our_String.Value
                                          (Lexical.Get_Value);

                        if not Complements.Exists
                                  (Lexical.Our_String.Image (Nom)) then
                            Complements.Create (Lexical.Our_String.Image (Nom),
                                                Complements.Item);
                            Items.Create (Lexical.Our_String.Image (Nom));
                            Items.Set_Comment
                               (Lexical.Our_String.Image (Nom),
                                Lexical.Our_String.Image (Commentaire));
                        else
                            Syntax_Error.Semantique ("Cette chose existe deja");
                        end if;

                        Lexical.Next;
                    else  
                        Syntax_Error.Syntaxique (R_Chose, "L_Str");
                    end if;

                else
                    Syntax_Error.Syntaxique (R_Chose, "L_Est");
                end if;
            else
                Syntax_Error.Syntaxique (R_Chose, "L_Id");
            end if;

        else  
            Syntax_Error.Syntaxique (R_Chose, "L_Chose");
        end if;
    end Parse;
end Chose;

E3 Meta Data

    nblk1=4
    nid=3
    hdr6=4
        [0x00] rec0=1e rec1=00 rec2=01 rec3=09e
        [0x01] rec0=1b rec1=00 rec2=02 rec3=000
        [0x02] rec0=07 rec1=00 rec2=03 rec3=000
        [0x03] rec0=0e rec1=00 rec2=04 rec3=000
    tail 0x2174ccd62865a40600536 0x42a00088462060003
Free Block Chain:
  0x3: 0000  00 04 00 0c 80 09 74 72 69 6e 67 2e 49 6d 61 09  ┆      tring.Ima ┆
  0x4: 0000  00 00 01 9e 80 16 20 20 20 20 20 20 20 20 20 20  ┆                ┆