Ignore:
Timestamp:
Oct 21, 2010, 1:20:57 PM (14 years ago)
Author:
george
Message:
  • Enhanced: Tokenizerm, parsing of record type, generation C code for record type.
  • Added: Logging of debug information.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Transpascal/Forms/UMainForm.pas

    r74 r76  
    1010  UProducerC, ComCtrls, ExtCtrls, SynEdit, SynHighlighterPas, UProducerTreeView,
    1111  UProducerPascal, Contnrs, UProject, FileUtil, Menus, ActnList, UCoolDocking,
    12   UCompiledForm, UCodeTreeForm, URegistry, ULastOpenedList, UApplicationInfo;
     12  UCompiledForm, UCodeTreeForm, URegistry, ULastOpenedList, UApplicationInfo,
     13  UDebugLog;
    1314
    1415const
     
    5859    LastOpenedFiles: TLastOpenedList;
    5960    ReopenLastOpenedFile: Boolean;
     61    procedure CompilerDebugLog(Text: string);
    6062    procedure OpenRecentClick(Sender: TObject);
    6163    procedure DockInit;
     
    208210procedure TMainForm.FormCreate(Sender: TObject);
    209211begin
     212  DebugLog.FileName := 'DebugLog.txt';
     213  DeleteFile(DebugLog.FileName);
    210214  Compiler := TCompiler.Create;
     215  Compiler.Parser.OnDebugLog := CompilerDebugLog;
    211216  Project := TProject.Create;
    212217  LastOpenedFiles := TLastOpenedList.Create;
     
    222227end;
    223228
     229procedure TMainForm.CompilerDebugLog(Text: string);
     230begin
     231  DebugLog.Add('', Text);
     232end;
     233
    224234procedure TMainForm.OpenRecentClick(Sender: TObject);
    225235begin
Note: See TracChangeset for help on using the changeset viewer.