Changeset 12 for trunk/Compiler/Produce
- Timestamp:
- Nov 8, 2010, 10:06:37 AM (14 years ago)
- Location:
- trunk/Compiler/Produce
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Compiler/Produce/UProducer.pas
r6 r12 2 2 3 3 {$MODE Delphi} 4 {$MACRO ON} 4 5 5 6 interface 6 7 7 8 uses 8 USourceCode, Classes ;9 USourceCode, Classes, SysUtils; 9 10 10 11 type 11 12 TProducer = class 13 Name: string; 12 14 procedure AssignToStringList(Target: TStringList); virtual; abstract; 13 15 procedure Produce(Module: TModule); virtual; abstract; 14 16 end; 15 17 18 // TListProducer = TGObjectList<Integer, TProducer> 19 {$DEFINE TGObjectListIndex := Integer} 20 {$DEFINE TGObjectListItem := TProducer} 21 {$DEFINE TGObjectListList := TObjectListProducer} 22 {$DEFINE TGObjectList := TListProducer} 23 {$DEFINE TGObjectListSortCompare := TObjectListSortCompareProducer} 24 {$DEFINE TGObjectListStringConverter := TObjectListStringConverterProducer} 25 {$DEFINE INTERFACE} 26 {$I 'GenericObjectList.inc'} 27 16 28 implementation 17 29 30 {$DEFINE IMPLEMENTATION_USES} 31 {$I 'GenericObjectList.inc'} 32 33 // TListProducer = TGObjectList<Integer, TProducer> 34 {$DEFINE TGObjectListIndex := Integer} 35 {$DEFINE TGObjectListItem := TProducer} 36 {$DEFINE TGObjectListList := TObjectListProducer} 37 {$DEFINE TGObjectList := TListProducer} 38 {$DEFINE TGObjectListSortCompare := TObjectListSortCompareProducer} 39 {$DEFINE TGObjectListStringConverter := TObjectListStringConverterProducer} 40 {$DEFINE IMPLEMENTATION} 41 {$I 'GenericObjectList.inc'} 42 18 43 end. -
trunk/Compiler/Produce/UProducerAsm8051.pas
r6 r12 108 108 begin 109 109 AssemblyCode := TObjectList.Create; 110 Name := 'ASM 8051'; 110 111 end; 111 112 -
trunk/Compiler/Produce/UProducerDynamicC.pas
r6 r12 56 56 TextSource := TStringList.Create; 57 57 IndentationLength := 2; 58 Name := 'Dynamic C'; 58 59 end; 59 60 -
trunk/Compiler/Produce/UProducerGCCC.pas
r6 r12 56 56 TextSource := TStringList.Create; 57 57 IndentationLength := 2; 58 Name := 'GCC C'; 58 59 end; 59 60 -
trunk/Compiler/Produce/UProducerPascal.pas
r6 r12 52 52 IndentationLength := 2; 53 53 TextSource := TStringList.Create; 54 Name := 'Delphi'; 54 55 end; 55 56
Note:
See TracChangeset
for help on using the changeset viewer.