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

⟦014768a70⟧ TextFile

    Length: 1431 (0x597)
    Types: TextFile
    Names: »B«

Derivation

└─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11
    └─ ⟦129cab021⟧ »DATA« 
        └─⟦this⟧ 

TextFile

with Lex, Description;

with Debug;
package body Description_List is

    procedure Parse (N : in out Binary_Tree.Node; Success : in out Boolean) is
        N1 : Binary_Tree.Node;  
        Ok : Boolean := True;
    begin  
        Success := True;
        N1 := new Binary_Tree.Node_Structure;
        N1.The_Type := Binary_Tree.L_Description_Type;
        Description.Parse (N1.Left_Son, Ok);
        Success := Success and Ok;
        if Lex.Current_Token_In ((Lex.Si, Lex.Selon, Lex.Tant,
                                  Lex.Attendre, Lex.Pour, Lex.Puis, Lex.Au,
                                  Lex.Identifier, Lex.Executer)) then
            Parse (N1.Right_Son, Ok);
            Success := Success and Ok;
        end if;
        N := N1;
    end Parse;


    procedure Generate (N : Binary_Tree.Node; T : in out Natural) is
    begin
        Debug.Put (3);
        case N.Left_Son.The_Type is
            when Binary_Tree.Null_Type =>
                Debug.Put (31);
                Generate (N.Right_Son, T);
            when Binary_Tree.Description_Type =>
                Debug.Put (32);
                Description.Generate (N.Left_Son, T);
                if not Binary_Tree."=" (N.Right_Son, null) then
                    Generate (N.Right_Son, T);
                end if;
            when others =>
                Debug.Put (33);
                null;
        end case;
    end Generate;

end Description_List;