Ignore:
Timestamp:
Aug 1, 2012, 12:16:08 PM (12 years ago)
Author:
chronos
Message:
  • Added: Introduced concept of graph of source file set converters similar to IntToStr, StrToInt, FloatToStr, StrToFloat, e.g.
  • Modified: Some target definitions transformed to loadable modules.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Compiler/UCompiler.pas

    r71 r72  
    77uses
    88  SysUtils, Variants, Classes, Contnrs, FileUtil, UModularSystem, UCompilerAPI,
    9   Dialogs, USourceCode, UProducer, UAnalyzer, SpecializedList, UTarget;
     9  Dialogs, USourceCodePascal, UProducer, UAnalyzer, SpecializedList, UTarget;
    1010
    1111type
     
    4747    CompiledFolder: string;
    4848
     49    Targets: TListTarget;
     50    Analyzers: TListAnalyzer;
     51    Convertors: TListObject;
     52    Executors: TListObject;
    4953    API: TCompilerAPI;
    5054    TargetFolder: string;
     
    163167constructor TCompiler.Create;
    164168begin
     169  Targets := TListTarget.Create;
     170  Analyzers := TListAnalyzer.Create;
     171  Convertors := TListObject.Create;
     172  Executors := TListObject.Create;
    165173  API := TCompilerAPI.Create;
    166174  AbstractCode := TProgram.Create;
     
    182190  FreeAndNil(AbstractCode);
    183191  FreeAndNil(ErrorMessages);
     192  FreeAndNil(Targets);
     193  FreeAndNil(Analyzers);
     194  FreeAndNil(Executors);
     195  FreeAndNil(Convertors);
    184196end;
    185197
     
    210222  if MainSource <> '' then begin
    211223    Analyzer.FileName := MainSource;
    212     Analyzer.OnGetSource(ExtractFileName(Analyzer.FileName), Analyzer.SourceCode);
     224    Analyzer.OnGetSource(ExtractFileName(Analyzer.FileName), Analyzer.SourceCode2);
    213225    Analyzer.Process;
    214226    //ShowMessage(IntToHex(Integer(Addr(Analyzer.OnGetSource)), 8));
Note: See TracChangeset for help on using the changeset viewer.