Ignore:
Timestamp:
Jan 17, 2018, 2:25:45 PM (7 years ago)
Author:
chronos
Message:
  • Modified: ParseBeginEnd method split to several other items for parsing each specific command.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/easy compiler/UFormMain.pas

    r145 r146  
    5151procedure TForm1.FormShow(Sender: TObject);
    5252begin
    53 {  with MemoSource.Lines do begin
     53  with MemoSource.Lines do begin
     54    Add('Begin');
    5455    Add('var I Integer');
    5556    Add('Assign I 10');
    56     Add('Repeat');
     57    //Add('Repeat');
    5758    Add('Begin');
    58     Add('Decrement I 1');
     59    //Add('Decrement I 1');
    5960    Add('IfZero I');
    60     Add('Break');
     61    Add('Print ''condition''');
     62    //Add('Break');
    6163    Add('End');
    62   end;
    63  } with MemoSource.Lines do begin
     64    Add('End');
     65  end;
     66{  with MemoSource.Lines do begin
    6467    Add('PrintLn ''Super Calculator''');
    6568    Add('var Value1 Integer');
     
    7881    Add('PrintLn Result');
    7982  end;
    80 {  with MemoSource.Lines do begin
     83  with MemoSource.Lines do begin
    8184    Add('PrintLn ''Hello World!''');
    8285    Add('print ''Hello'' PRINT '' World!''');
Note: See TracChangeset for help on using the changeset viewer.