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

⟦aec1f14f3⟧ Ada Source

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

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, Dynamic_Node;

package body Action_Conditionnelle is


    procedure Parse_Alors is
        use Lexical_Analyzer;
    begin  
        if (Lexical_Analyzer.Get_Token /= Alors) then
            Error.Set_Type_Error (Error.Alors_Expected);
            raise Error.Excep_Syntaxe_Error;
        end if;
        Lexical_Analyzer.Next;
    end Parse_Alors;

    procedure Parse_Fsi is
        use Lexical_Analyzer;
    begin
        if (Lexical_Analyzer.Get_Token /= Fsi) then
            Error.Set_Type_Error (Error.Fsi_Expected);
            raise Error.Excep_Syntaxe_Error;
        end if;
        Lexical_Analyzer.Next;
    end Parse_Fsi;


    procedure Parse (List : in out Action_List.Object) is
        use Lexical_Analyzer;
        Dyn_Node : Dynamic_Node.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);
            Parse_Alors;
            Action_List.Go_In_Then (List);  
            Liste_Actions.Parse (List);
            Clause_Sinon.Parse (List);
            Parse_Fsi;
            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=048
        [0x01] rec0=1b rec1=00 rec2=02 rec3=001
    tail 0x21543ddf6865271ee6002 0x42a00088462060003