Changeset 232 for branches/xpascal/Generators/GeneratorPhp.pas
- Timestamp:
- Jun 26, 2023, 12:51:06 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/xpascal/Generators/GeneratorPhp.pas
r230 r232 231 231 AddText('function ' + FunctionDef.Name + '('); 232 232 for I := 0 to FunctionDef.Params.Count - 1 do begin 233 if FunctionDef.Params[I].Kind = pkVar then 234 AddText('&'); 233 235 AddText('$' + TFunctionParameter(FunctionDef.Params[I]).Name); 234 236 if I > 0 then AddText(', '); … … 240 242 if FunctionDef.InternalName = 'WriteLn' then AddTextLine('echo($Text."\n");') 241 243 else if FunctionDef.InternalName = 'Write' then AddTextLine('echo($Text);') 244 else if FunctionDef.InternalName = 'ReadLn' then AddTextLine('$Text = readline();') 245 else if FunctionDef.InternalName = 'Read' then AddTextLine('$Text = readline();') 242 246 else if FunctionDef.InternalName = 'IntToStr' then AddTextLine('return $Value;') 243 247 else if FunctionDef.InternalName = 'StrToInt' then AddTextLine('return $Value;')
Note:
See TracChangeset
for help on using the changeset viewer.