Changeset 146 for branches/easy compiler/USourceCode.pas
- Timestamp:
- Jan 17, 2018, 2:25:45 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/easy compiler/USourceCode.pas
r145 r146 9 9 10 10 type 11 TSource Instruction= class11 TSourceCommand = class 12 12 end; 13 13 … … 125 125 end; 126 126 127 { T SourceFunctionCall }128 129 T SourceFunctionCall = class(TSourceInstruction)127 { TCommandFunctionCall } 128 129 TCommandFunctionCall = class(TSourceCommand) 130 130 Name: string; 131 131 Parameters: TSourceReferences; … … 136 136 TSourceCode = class; 137 137 138 { T SourceBeginEnd }139 140 T SourceBeginEnd = class(TSourceInstruction)138 { TCommandBeginEnd } 139 140 TCommandBeginEnd = class(TSourceCommand) 141 141 SourceCode: TSourceCode; 142 142 Instructions: TSourceInstructions; 143 143 constructor Create; 144 144 destructor Destroy; override; 145 end; 146 147 TCommandIfZero = class(TSourceCommand) 148 Variable: TSourceVariable; 145 149 end; 146 150 … … 155 159 Variables: TSourceVariables; 156 160 Constants: TSourceConstants; 157 Main: T SourceBeginEnd;161 Main: TCommandBeginEnd; 158 162 constructor Create; 159 163 destructor Destroy; override; … … 171 175 end; 172 176 173 { T SourceFunctionCall }174 175 constructor T SourceFunctionCall.Create;177 { TCommandFunctionCall } 178 179 constructor TCommandFunctionCall.Create; 176 180 begin 177 181 Parameters := TSourceReferences.Create; 178 182 end; 179 183 180 destructor T SourceFunctionCall.Destroy;184 destructor TCommandFunctionCall.Destroy; 181 185 begin 182 186 Parameters.Free; … … 184 188 end; 185 189 186 { T SourceBeginEnd }187 188 constructor T SourceBeginEnd.Create;190 { TCommandBeginEnd } 191 192 constructor TCommandBeginEnd.Create; 189 193 begin 190 194 Instructions := TSourceInstructions.Create; 191 195 end; 192 196 193 destructor T SourceBeginEnd.Destroy;197 destructor TCommandBeginEnd.Destroy; 194 198 begin 195 199 Instructions.Free; … … 351 355 end; 352 356 353 { T SourceFunctionCall }357 { TCommandFunctionCall } 354 358 355 359 { TSourceCode } … … 394 398 Constants := TSourceConstants.Create; 395 399 Functions := TSourceFunctions.Create; 396 Main := T SourceBeginEnd.Create;400 Main := TCommandBeginEnd.Create; 397 401 Main.SourceCode := Self; 398 402 InitFunctions;
Note:
See TracChangeset
for help on using the changeset viewer.