Changeset 6 for trunk/Compiler/UCompiler.pas
- Timestamp:
- Nov 5, 2010, 11:31:04 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Compiler/UCompiler.pas
r2 r6 73 73 ProducedCode: TStringList; 74 74 I: Integer; 75 TargetFileName: string; 75 76 begin 76 77 try … … 81 82 //ShowMessage(IntToHex(Integer(Addr(Parser.OnGetSource)), 8)); 82 83 Parser.ParseModule(ProgramCode); 83 for I := 0 to ProgramCode.Modules.Count - 1 do begin 84 Producer.Produce(TModule(ProgramCode.Modules[I])); 84 with ProgramCode do 85 for I := 0 to Modules.Count - 1 do begin 86 Producer.Produce(TModule(Modules[I])); 85 87 Producer.AssignToStringList(ProducedCode); 86 ForceDirectories(TargetFolder + DirectorySeparator + 87 CompiledFolder + DirectorySeparator + Producer.ClassName); 88 ProducedCode.SaveToFile(TargetFolder + DirectorySeparator + 88 TargetFileName := TargetFolder + DirectorySeparator + 89 89 CompiledFolder + DirectorySeparator + Producer.ClassName + 90 DirectorySeparator + TModule(ProgramCode.Modules[I]).Name + Producer.FileExtension); 90 DirectorySeparator + TModule(Modules[I]).TargetFile; 91 ForceDirectories(ExtractFileDir(TargetFileName)); 92 ProducedCode.SaveToFile(TargetFileName); 91 93 end; 92 94 finally
Note:
See TracChangeset
for help on using the changeset viewer.