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

⟦7ad431f0a⟧ Ada Source

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

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, Error, Token_Pkg, Attributs, Bounded_String,
     String_Utilities, Struct_Component, Text_Io;
use Token_Pkg;
package body Objets is
------------------------------------------------------------------------
-- <UNIT>        Objets
------------------------------------------------------------------------
--
-- <DESCRIPTION>    This package defines an operation for parsing the
--                  grammatical expresssion : <objets>
--
-- <AUTHOR>         Barthe Raphael, Beck Didier, Kempe Laurent
-- <VERSION>        1.0
-- <DATE>           16-Jan-95
-- <MODIFY>         16-Jan-95
--
-- <PKG USED>       LEX, Token_Pkg, Error, Attributs
--
------------------------------------------------------------------------
    Index : Natural := 1;
    procedure Parse (Success : in out Boolean) is
------------------------------------------------------------------------
-- <SUBPROGRAM>
-- <UNIT>        Parse
--
-- <DESCRIPTION> Try to parse <Objets> and return if it was a success
--               or not.
--
-- <EXCEPTIONS>  Nothing
--
------------------------------------------------------------------------
        Ok : Boolean := True;
        Struct : Struct_Component.Structure;
    begin  
        Liste := Struct_Component.Liste_Structure.Create;
        if Lex.Currenttoken_Is (T_Ident) then
            Text_Io.Put_Line ("    Structure ... ");
            while Lex.Currenttoken_Is (T_Ident) loop
                Bounded_String.Copy (Struct.Name,
                                     String_Utilities.Upper_Case (Lex.Image));
                String_Table.Put (Table, Index, Lex.Image);
                Lex.Next;
                if Lex.Currenttoken_Is (T_Constitue) then
                    Lex.Next;
                    if Lex.Currenttoken_Is (T_De) then
                        Lex.Next;  
                        Text_Io.Put_Line ("      Attribut");
                        Attributs.Parse (Ok);
                        Text_Io.Put_Line ("      Ok");
                        Struct.Attribut := Attributs.Liste;
                        Struct_Component.Liste_Structure.Attach (Struct, Liste);
                        Success := Success and Ok;
                        if Lex.Currenttoken_Is (T_Fin) then
                            Lex.Next;
                        else
                            Success := False;
                            Error.Append;
                        end if;
                    else
                        Success := False;
                        Error.Append;
                    end if;
                else
                    Success := False;
                    Error.Append;
                end if;
                Index := Index + 1;
            end loop;
            Text_Io.Put_Line ("    Ok");
        else
            Success := False;
            Error.Append;
        end if;
        Objet_Courant := Struct_Component.Liste_Structure.Makelistiter (Liste);
        --Liste := Struct_Component.Permute (Liste);
    end Parse;

end Objets;

E3 Meta Data

    nblk1=5
    nid=5
    hdr6=8
        [0x00] rec0=1b rec1=00 rec2=01 rec3=064
        [0x01] rec0=17 rec1=00 rec2=03 rec3=030
        [0x02] rec0=19 rec1=00 rec2=02 rec3=07e
        [0x03] rec0=05 rec1=00 rec2=04 rec3=000
        [0x04] rec0=c0 rec1=00 rec2=00 rec3=100
    tail 0x2174b309c865477b94339 0x42a00088462060003
Free Block Chain:
  0x5: 0000  00 00 03 fc 80 16 2e 50 75 74 5f 6c 69 6e 65 28  ┆      .Put_line(┆