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

⟦a1f7ab6dd⟧ Ada Source

    Length: 5120 (0x1400)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Argument, seg_0465a6

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 Error, Un_Mot_Du_Voca, Nom_Variable, Dynamic_Value, Dynamic_Node;

package body Argument is

    procedure Parse (List : in out Action_List.Object) is
        use Lexical_Analyzer;
        Dyn_Val : Dynamic_Value.Object;
        Dyn_Node : Dynamic_Node.Object;  
    begin
        if not (Argument.Is_First (Lexical_Analyzer.Get_Token)) then
            Error.Set_Type_Error (Error.Argument_Expected);
            raise Error.Excep_Syntaxe_Error;
        end if;
        case (Lexical_Analyzer.Get_Token) is
            when Complement_Or_Verbe =>  
                Un_Mot_Du_Voca.Parse (Dyn_Node);
                Action_List.Append_Argument (List, Dyn_Node);

            when Identifier =>
                Nom_Variable.Parse (Dyn_Node);
                Action_List.Append_Argument (List, Dyn_Node);

            when String_Of_Characters =>
                Dynamic_Value.Set_Value (Dyn_Val, Lexical_Analyzer.Get_Value);
                Dynamic_Node.Create_Value (Dyn_Node);
                Dynamic_Node.Set_Value (Dyn_Node, Dyn_Val);
                Action_List.Append_Argument (List, Dyn_Node);
                Lexical_Analyzer.Next;

            when Integer_Number =>
                Dynamic_Value.Set_Value
                   (Dyn_Val, Integer'Value (Lexical_Analyzer.Get_Value));
                Dynamic_Node.Create_Value (Dyn_Node);
                Dynamic_Node.Set_Value (Dyn_Node, Dyn_Val);
                Action_List.Append_Argument (List, Dyn_Node);
                Lexical_Analyzer.Next;

            when others =>
                null;
        end case;
    end Parse;


    function Is_First (Un_Token : Lexical_Analyzer.Tokens) return Boolean is
        use Lexical_Analyzer;
    begin
        return ((Un_Token = String_Of_Characters) or
                (Un_Token = Integer_Number) or (Un_Token = Identifier) or
                (Un_Token = Complement_Or_Verbe) or
                (Un_Token = Complement1) or (Un_Token = Complement2));
    end Is_First;


end Argument;

E3 Meta Data

    nblk1=4
    nid=3
    hdr6=6
        [0x00] rec0=1a rec1=00 rec2=01 rec3=014
        [0x01] rec0=19 rec1=00 rec2=04 rec3=020
        [0x02] rec0=05 rec1=00 rec2=02 rec3=000
        [0x03] rec0=03 rec1=7d rec2=e9 rec3=442
    tail 0x215430b24865069d159f2 0x42a00088462060003
Free Block Chain:
  0x3: 0000  00 00 00 2c 80 10 20 20 20 65 6e 64 20 49 73 5f  ┆   ,     end Is_┆