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

⟦c18579acb⟧ TextFile

    Length: 1247 (0x4df)
    Types: TextFile
    Names: »B«

Derivation

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

TextFile

with Bounded_String;
with File;
with Scanner;

package body Unparse_Report is

    Tab_Space_Number : constant Natural := 4;

    Indentation_Level : Natural := 0;

    function Indent (Level : Natural) return String is

        A_Bs_String : Scanner.B_String;
    begin
        Bounded_String.Free (A_Bs_String);
        Bounded_String.Set_Length (A_Bs_String, Level * Tab_Space_Number);
        return Bounded_String.Image (A_Bs_String);
    end Indent;

    procedure Write (Line : String) is

    begin
        File.Write (Line);
    end Write;


    procedure New_Line is

    begin  
        File.New_Line;
        File.Write (Indent (Indentation_Level));
    end New_Line;


    procedure Open (File_Name : String) is

    begin
        File.Create (File_Name);  
        Write ("-- This file was created by Tiny_Talk Unparse");
        New_Line;
        Write ("-- Copyright G.BRENET / S.FLON");
        New_Line;
        New_Line;
    end Open;


    procedure Close is

    begin
        File.Close;
    end Close;


    procedure Tab is

    begin
        Indentation_Level := Indentation_Level + 1;
    end Tab;


    procedure Untab is

    begin
        Indentation_Level := Indentation_Level - 1;
    end Untab;

end Unparse_Report;