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

⟦3f190edc3⟧ Ada Source

    Length: 6144 (0x1800)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Affectation_Ou_Appel, seg_047e38

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 Error, Appel, Affectation;

package body Affectation_Ou_Appel is


    procedure Parse_Point is  
        use Lexical_Analyzer;
    begin
        if (Lexical_Analyzer.Get_Token /= Terminator) then  
            Error.Set_Type_Error (Error.Point_Expected);
            raise Error.Excep_Syntaxe_Error;
        end if;
        Lexical_Analyzer.Next;
    end Parse_Point;


    procedure Parse (List : in out Action_List.Object) is  
        procedure The_Resynchro is new Error.Resynchro
                                          (Affectation_Ou_Appel.Is_Follow);
        use Lexical_Analyzer;
    begin
        if (Appel.Is_First (Lexical_Analyzer.Get_Token)) then
            Appel.Parse (List);
            Parse_Point;
        elsif (Affectation.Is_First (Lexical_Analyzer.Get_Token)) then
            Affectation.Parse (List);
            Parse_Point;  
        else
            Error.Set_Type_Error (Error.Initialisation_False);
            raise Error.Excep_Syntaxe_Error;
        end if;
    exception  
        when Error.Excep_Syntaxe_Error | Error.Excep_Semantic_Error =>
            Error.Treat;
            The_Resynchro;
    end Parse;


    function Is_Follow (Un_Token : Lexical_Analyzer.Tokens) return Boolean is
        use Lexical_Analyzer;
    begin
        return ((Is_First (Un_Token)) or (Un_Token = Vie));
    end Is_Follow;


    function Is_First (Un_Token : Lexical_Analyzer.Tokens) return Boolean is
        use Lexical_Analyzer;
    begin
        return ((Un_Token = Vider) or (Un_Token = Ajouter) or
                (Un_Token = Retirer) or (Un_Token = Ecrire) or
                (Un_Token = Quitter) or (Un_Token = Minus) or
                (Un_Token = Plus) or (Un_Token = Left_Bracket) or
                (Un_Token = Non) or (Un_Token = Identifier) or
                (Un_Token = String_Of_Characters) or
                (Un_Token = Integer_Number) or
                (Un_Token = Complement_Or_Verbe) or
                (Un_Token = Complement1) or (Un_Token = Complement2));
    end Is_First;


end Affectation_Ou_Appel;

E3 Meta Data

    nblk1=5
    nid=4
    hdr6=6
        [0x00] rec0=1e rec1=00 rec2=01 rec3=02c
        [0x01] rec0=1a rec1=00 rec2=02 rec3=02c
        [0x02] rec0=07 rec1=00 rec2=03 rec3=000
        [0x03] rec0=1b rec1=00 rec2=03 rec3=028
        [0x04] rec0=01 rec1=00 rec2=04 rec3=000
    tail 0x21544f0ba8657750da971 0x42a00088462060003
Free Block Chain:
  0x4: 0000  00 05 00 0b 80 05 70 70 65 6c 3b 05 00 00 00 74  ┆      ppel;    t┆
  0x5: 0000  00 00 00 f0 00 0c 20 20 20 20 20 20 20 20 65 6c  ┆              el┆