|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 6144 (0x1800) Types: Ada Source Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Objets, seg_0497ef
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000 └─⟦cfc2e13cd⟧ »Space Info Vol 2« └─⟦this⟧
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;
nblk1=5 nid=4 hdr6=8 [0x00] rec0=1b rec1=00 rec2=01 rec3=064 [0x01] rec0=17 rec1=00 rec2=03 rec3=02c [0x02] rec0=19 rec1=00 rec2=02 rec3=072 [0x03] rec0=05 rec1=00 rec2=05 rec3=000 [0x04] rec0=c0 rec1=00 rec2=00 rec3=100 tail 0x2174de47e865e68ec32b4 0x42a00088462060003 Free Block Chain: 0x4: 0000 00 00 00 6f 80 10 69 73 74 69 74 65 72 20 28 4c ┆ o istiter (L┆