DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400 Tapes

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 Tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: ┃ B T

⟦f387994ed⟧ TextFile

    Length: 1334 (0x536)
    Types: TextFile
    Names: »B«

Derivation

└─⟦2f6cfab89⟧ Bits:30000547 8mm tape, Rational 1000, !projects 94-01-04
    └─ ⟦d65440be7⟧ »DATA« 
        └─⟦this⟧ 

TextFile

with Scanner, Object, List, Text_Io, Tiny_Error;
package body Arguments is

    type Node_Structure is
        record
            Rule : Natural range 0 .. 1 := 1;
            List : Arguments.Node := Arguments.Empty_Node;
        end record;

    procedure Parse (N : in out Node;
                     Keyword_List : in out Message.List;
                     Id_List : in out Message.List;
                     Symbol : in out Table.Symbol_Kind;
                     Error : out Boolean) is
        Failed : Boolean := False;  
        use Scanner;
    begin  
        Text_Io.Put_Line ("I am in Arguments.Parse");
        N := new Node_Structure;
        if Is_First (Scanner.Get_Token) then
            Scanner.Next;
            List.Parse (Keyword_List, Id_List, Symbol, Failed);
            if not Failed and Scanner.Get_Token /= Scanner.T_Dot then  
                Failed := True;
                Tiny_Error.Miss_A_Point;
            else
                Scanner.Next;
            end if;
        end if;
        Error := Failed;
    end Parse;

    function Is_First (T : Scanner.Token) return Boolean is
    begin
        case T is
            when Scanner.T_Avec =>
                return (Standard.True);
            when others =>
                return (Standard.False);
        end case;
    end Is_First;
end Arguments;