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

⟦00a3605f1⟧ Ada Source

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

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 Lex, Token_Pkg, Instructions_Locales, Text_Io,
     Liste_Instructions, Error, Motor, Feuille;
use Token_Pkg;
package body Scenario is
------------------------------------------------------------------------
-- <UNIT>        Scenario
------------------------------------------------------------------------
--
-- <DESCRIPTION>    This package defines an operation for parsing the
--                  grammatical expresssion : <scenario>
--
-- <AUTHOR>         Barthe Raphael, Beck Didier, Kempe Laurent
-- <VERSION>        1.0
-- <DATE>           16-Jan-95
-- <MODIFY>         16-Jan-95
--
-- <PKG USED>       LEX, Token_Pkg, Instructions_Locales, Instructions
--                  Error
--
------------------------------------------------------------------------

    procedure Parse (Success : in out Boolean) is
------------------------------------------------------------------------
-- <SUBPROGRAM>
-- <UNIT>        Parse
--
-- <DESCRIPTION> Try to parse <scenario> and return if it was a success
--               or not.
--
-- <EXCEPTIONS>  Nothing
--
------------------------------------------------------------------------
        Ok : Boolean := True;
    begin

        if Lex.Currenttoken_Is (T_Presentation) then
            Lex.Next;
            Liste_Instructions.Parse (Motor.Liste_Presentation, Ok);
            Success := Success and Ok;
        else
            Success := False;
            Error.Append (" : 'Clauses_Presentation' attendu !");
        end if;

        if Lex.Currenttoken_Is (T_Generales) then
            Lex.Next;
            Liste_Instructions.Parse (Motor.Liste_Globale, Ok);
            Success := Success and Ok;
        else
            Success := False;
            Error.Append (" : 'Clauses_Generales' attendu !");
        end if;
        --if Success then
        --Text_Io.Put_Line ("GLOBALES :");
        --Feuille.Image (Motor.Liste_Globale);
        --Text_Io.New_Line;
        --end if;

        if Lex.Currenttoken_Is (T_Locales) then
            Lex.Next;
            Instructions_Locales.Parse (Motor.Liste_Locale, Ok);
            Success := Success and Ok;
        else
            Success := False;
            Error.Append (" : 'Clauses_Locales' attendu ! ");
        end if;
        --if Success then
        --Text_Io.Put_Line ("LOCALES :");
        --Feuille.Image (Motor.Liste_Locale);
        --Text_Io.New_Line;
        --end if;

        if Lex.Currenttoken_Is (T_Pseudo_Generales) then
            Lex.Next;
            Liste_Instructions.Parse (Motor.Liste_Pseudo_Globale, Ok);
            Success := Success and Ok;
        else
            Success := False;
            Error.Append (" : 'Clauses_Pseudo_Generales' attendu !");
        end if;
        --if Success then
        --Text_Io.Put_Line ("PSEUDO GLOBALES :");
        --Feuille.Image (Motor.Liste_Pseudo_Globale);
        --end if;

        --if Lex.Currenttoken_Is (T_Eof) and Success = false then
        --
        --else
        --    Success := False;
        --end if;

    end Parse;

end Scenario;

E3 Meta Data

    nblk1=5
    nid=3
    hdr6=8
        [0x00] rec0=1c rec1=00 rec2=01 rec3=038
        [0x01] rec0=1d rec1=00 rec2=04 rec3=02e
        [0x02] rec0=1e rec1=00 rec2=02 rec3=014
        [0x03] rec0=09 rec1=00 rec2=05 rec3=000
        [0x04] rec0=20 rec1=00 rec2=00 rec3=013
    tail 0x2174cf6ba865a630f581f 0x42a00088462060003
Free Block Chain:
  0x3: 0000  00 00 00 b4 80 33 65 78 2e 43 75 72 72 65 6e 74  ┆     3ex.Current┆