Ignore:
Timestamp:
Nov 9, 2009, 9:21:28 AM (15 years ago)
Author:
george
Message:
  • Upraveno: Oddělení modelu a generátoru kódu.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Void/UMainForm.pas

    r6 r7  
    77uses
    88  Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs,
    9   StdCtrls, UCompilator;
     9  StdCtrls, UCompilator, UOutputGenerator;
    1010
    1111const
     
    1313
    1414type
    15 
    16   { TMainForm }
    17 
    1815  TMainForm = class(TForm)
    1916    ButtonCompile: TButton;
     
    6966  with Compilator do begin
    7067    SourceCode.Assign(Memo1.Lines);
     68    Generator := TPascalGenerator.Create;
    7169    Compile;
    72     Memo2.Lines.Assign(Output);
     70    Memo2.Lines.Assign(Generator.Output);
    7371  end;
    7472end;
Note: See TracChangeset for help on using the changeset viewer.