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

⟦f482d069d⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Action_Conditionnelle, seg_045a7c

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, Liste_Actions, Clause_Sinon, Expression, Action_List, Dynamic_Node;

package body Action_Conditionnelle is


    procedure Parse is
        use Lexical_Analyzer;
        Dyn_Node : Dynamic_Node.Object;


        List : Action_List.Object;
    begin
        if (Lexical_Analyzer.Get_Token = Si) then
            Lexical_Analyzer.Next;
            Action_List.Create_If (List);

            Expression.Parse (Dyn_Node);  
            Action_List.Set_Condition (List, Dyn_Node);

            if (Lexical_Analyzer.Get_Token /= Alors) then  
                Error.Set_Type_Error (Error.Alors_Expected);
                raise Error.Excep_Syntaxe_Error;
            end if;
            Lexical_Analyzer.Next;

            Action_List.Go_In_Then (List);  
            Liste_Actions.Parse (List);

            Clause_Sinon.Parse;

            if (Lexical_Analyzer.Get_Token /= Fsi) then
                Error.Set_Type_Error (Error.Fsi_Expected);               raise Error.Excep_Syntaxe_Error;
            end if;
            Lexical_Analyzer.Next;  
            Action_List.End_Of_If (List);  
        end if;

    exception
        when Lexical_Analyzer.Excep_Eof =>
            Error.Set_Type_Error (Error.Unexpected_Eof);
            Error.Treat;
            raise Error.Excep_Syntaxe_Aborded;
    end Parse;


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


end Action_Conditionnelle;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=22 rec1=00 rec2=01 rec3=002
        [0x01] rec0=16 rec1=00 rec2=02 rec3=001
    tail 0x2154217de864b8c9b69d1 0x42a00088462060003