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

⟦8777c582b⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package Int_Lex, seg_0497db

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 Bounded_String, Character_Utilities, Text_Io, String_Table;
package Int_Lex is

    subtype I_String is String_Table.I_String;
    type Int_State is (St_Start, St_Word, St_Sep, St_Unk);
    type Give_Up_Words is (Le, La, Un, Une, Dans, Sur, Avec, A, Au);
    -- words that the interpretor musn't take into account.
    L_Und : constant Character := '_';
    L_Sep : constant Character := ' ';

    procedure Get (Command : in String;
                   Max : in Natural;
                   Pos : in out Natural;
                   Result : in out I_String);
--------------------------------------------------------------------------------
-- <SUBPROGRAM>
-- <UNIT>        Get
--
-- <DESCRIPTION> Extract a word from a string.
--
-- <PARAMETERS>  Command : (String) is the String from which the word must
--                         be extracted.
--               Max     : (Natural) is the length of the string 'Command'.
--               Pos     : (Natural) is the current analysis position in the
--                         string 'Command'.
--               Result  : (I_String) is the extracted word.
--
-- <EXCEPTIONS>  Nothing
--
--------------------------------------------------------------------------------

    function Give_Up (Extracted_Word : I_String) return Boolean;
--------------------------------------------------------------------------------
-- <SUBPROGRAM>
-- <UNIT>        Give_Up
--
-- <DESCRIPTION> Check if a word is one of the 'Give_up_Words'.
--
-- <PARAMETERS>  Extracted_Word : (I_String) word to be checked.
--               => Returns True or False
--
-- <EXCEPTIONS>  Nothing
--
--------------------------------------------------------------------------------

end Int_Lex;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=19 rec1=00 rec2=01 rec3=054
        [0x01] rec0=18 rec1=00 rec2=02 rec3=001
    tail 0x2174de374865e68c1b299 0x42a00088462060003