Changeset 75 for trunk/Compiler/Compiler.pas
- Timestamp:
- Jun 4, 2024, 12:22:49 AM (5 months ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Compiler/Compiler.pas
r74 r75 1 unit UCompiler; 2 3 {$MODE Delphi} 1 unit Compiler; 4 2 5 3 interface 6 4 7 5 uses 8 SysUtils, Variants, Classes, Contnrs, FileUtil, UModularSystem, UCompilerAPI, 9 Dialogs, USourceCodePascal, UProducer, UAnalyzer, SpecializedList, UTarget, 10 fgl; 6 SysUtils, Variants, Classes, FileUtil, ModularSystem, CompilerAPI, 7 Dialogs, SourceCodePascal, Producer, Analyzer, Generics.Collections, Target; 11 8 12 9 type … … 20 17 21 18 TSourceFileManager = class 22 Files: T ListString;19 Files: TStringList; 23 20 function LoadStringFromFile(FileName: string): string; 24 21 procedure SaveStringToFile(FileName: string; Content: string); … … 45 42 public 46 43 AbstractCode: TProgram; 47 ErrorMessages: T FPGObjectList<TErrorMessage>;44 ErrorMessages: TObjectList<TErrorMessage>; 48 45 CompiledFolder: string; 49 46 50 Targets: T ListTarget;51 Analyzers: T ListAnalyzer;52 Convertors: T ListObject;53 Executors: T ListObject;47 Targets: TTargets; 48 Analyzers: TAnalyzers; 49 Convertors: TObjectList<TObject>; 50 Executors: TObjectList<TObject>; 54 51 API: TCompilerAPI; 55 52 TargetFolder: string; … … 73 70 74 71 uses 75 UAnalyzerPascal;72 AnalyzerPascal; 76 73 77 74 resourcestring … … 146 143 constructor TSourceFileManager.Create; 147 144 begin 148 Files := T ListString.Create;145 Files := TStringList.Create; 149 146 end; 150 147 151 148 destructor TSourceFileManager.Destroy; 152 149 begin 153 F iles.Free;154 inherited Destroy;150 FreeAndNil(Files); 151 inherited; 155 152 end; 156 153 … … 168 165 constructor TCompiler.Create; 169 166 begin 170 Targets := T ListTarget.Create;171 Analyzers := T ListAnalyzer.Create;172 Convertors := T ListObject.Create;173 Executors := T ListObject.Create;167 Targets := TTargets.Create; 168 Analyzers := TAnalyzers.Create; 169 Convertors := TObjectList<TObject>.Create; 170 Executors := TObjectList<TObject>.Create; 174 171 API := TCompilerAPI.Create; 175 172 API.Compiler := Self; 176 173 AbstractCode := TProgram.Create; 177 ErrorMessages := T FPGObjectList<TErrorMessage>.Create;174 ErrorMessages := TObjectList<TErrorMessage>.Create; 178 175 CompiledFolder := 'Compiled'; 179 176 ModuleManager := TModuleManager.Create(nil);
Note:
See TracChangeset
for help on using the changeset viewer.