Changeset 25 for trunk/Compiler/UCompilerDelphi.pas
- Timestamp:
- Feb 13, 2012, 9:47:18 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Compiler/UCompilerDelphi.pas
r20 r25 25 25 inherited Create; 26 26 Name := 'Delphi'; 27 SourceExtension := '.pas'; 28 CompiledExtension := '.exe'; 27 29 end; 28 30 … … 53 55 AddLine(' Memory: array[0..30000] of Byte;'); 54 56 AddLine(' Pos: Integer;'); 57 AddLine(' ReadChar: Char;'); 55 58 AddLine('begin'); 56 59 Inc(Indent); 60 AddLine('Pos := 0;'); 57 61 I := 1; 58 62 while (I <= Length(Source)) do begin … … 75 79 end; 76 80 '.': AddLine('Write(Chr(Memory[Pos]));'); 77 ',': AddLine('Read( Chr(Memory[Pos]));');81 ',': AddLine('Read(ReadChar); Memory[Pos] := Ord(ReadChar);'); 78 82 '[': begin 79 83 AddLine('while Memory[Pos] <> 0 do begin');
Note:
See TracChangeset
for help on using the changeset viewer.