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

⟦2051c3d98⟧ Ada Source

    Length: 5120 (0x1400)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Declaration_Lieu, seg_0492dc, seg_04942e

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 Structure_Des_Variables;
with Interface_Structure;
with Lex;
with Variable;
with Synchro;
with Error;
with Follow;  
with Nos_Chaines;

package body Declaration_Lieu is

    procedure Enumeration_De_Communication (Ok : in out Boolean) is
        use Lex;  
        La_Direction : Nos_Chaines.String_Text;
    begin
        if Lex.Get_Token = L_Direction then  
            if Lex.Next_Token = L_Id then
                Nos_Chaines.Copy (La_Direction, Lex.Get_Value);
                if Lex.Next_Token = L_Id then  
                    Interface_Structure.Associate_Direction
                       (La_Direction, Lex.Get_Value);
                    Lex.Next;
                    Enumeration_De_Communication (Ok);
                else
                    Synchro.Is_On (Error.Enum_De_Communication,
                                   Follow.Enum_De_Communication);

                end if;
            else
                Synchro.Is_On (Error.Enum_De_Communication,
                               Follow.Enum_De_Communication);
            end if;
        else
            Ok := True;
        end if;
    end Enumeration_De_Communication;

    procedure Liste_Des_Communications (Ok : in out Boolean) is
        use Lex;
    begin
        if Lex.Get_Token = L_Debutcommunication then
            Lex.Next;
            Enumeration_De_Communication (Ok);
            if Ok then
                if Lex.Get_Token = L_Fincommunication then
                    Lex.Next;
                    Ok := True;
                else
                    Ok := False;
                end if;
            else
                Ok := False;
            end if;
        else
            Ok := True;
        end if;
    end Liste_Des_Communications;

    procedure Parse (Ok : in out Boolean) is
        use Lex;
        Le_Sens : Integer;
    begin
        Lex.Next;
        Variable.Existence_Parse (Ok);
        Ok := Ok and (Lex.Get_Token = L_Id);
        Interface_Structure.Associate_Nom_Variable (Lex.Get_Value);
        if not Ok then
            Synchro.Is_On (Error.Identification_Variable,
                           Follow.Identification_Variable);
            Ok := True;
        else
            Lex.Next;
        end if;

        Variable.Description_Parse (Ok, Le_Sens);
        if not Ok then
            Synchro.Is_On (Error.Description, Follow.Description);
        end if;

        Variable.Etat_Parse (Ok, Le_Sens);
        if not Ok then
            Synchro.Is_On (Error.Etat, Follow.Etat);
        end if;

        Liste_Des_Communications (Ok);
        if Ok then
            if Lex.Get_Token = L_Finlieu then
                Lex.Next;
            else
                Ok := False;
            end if;
        end if;
    end Parse;
end Declaration_Lieu;

E3 Meta Data

    nblk1=4
    nid=2
    hdr6=6
        [0x00] rec0=1f rec1=00 rec2=01 rec3=058
        [0x01] rec0=23 rec1=00 rec2=03 rec3=018
        [0x02] rec0=1f rec1=00 rec2=04 rec3=000
        [0x03] rec0=1b rec1=00 rec2=02 rec3=000
    tail 0x215468c1c865b6ca3b27b 0x42a00088462060003
Free Block Chain:
  0x2: 0000  00 00 02 ab 80 06 61 62 6c 65 29 3b 06 00 17 20  ┆      able);    ┆