Ignore:
Timestamp:
Aug 26, 2024, 9:15:43 PM (3 months ago)
Author:
chronos
Message:
  • Added: Ruby target.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Target/TargetPHP.pas

    r161 r180  
    5959
    6060  AddLine('<?php // ' + ProgramName);
    61   AddLine('');
     61  AddLine;
    6262  AddLine('$Memory = str_repeat("\0", ' + IntToStr(MemorySize) + ');');
    6363  AddLine('$Position = 0;');
     
    7676      cmMultiply: AddLine(GetMemoryCell + ' = chr(ord(' + GetMemoryCell + ') + ord($Memory[$Position]) * ' + IntToStr(FProgram[FProgramIndex].Parameter) + ');');
    7777      cmLoopStart: begin
    78         AddLine('while(' + GetMemoryCell + ' != "\0") {');
     78        AddLine('while(' + GetMemoryCell + ' != "\0")');
     79        AddLine('{');
    7980        Inc(Indent);
    8081      end;
Note: See TracChangeset for help on using the changeset viewer.