Changeset 146 for branches/easy compiler/UFormMain.pas
- Timestamp:
- Jan 17, 2018, 2:25:45 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/easy compiler/UFormMain.pas
r145 r146 51 51 procedure TForm1.FormShow(Sender: TObject); 52 52 begin 53 { with MemoSource.Lines do begin 53 with MemoSource.Lines do begin 54 Add('Begin'); 54 55 Add('var I Integer'); 55 56 Add('Assign I 10'); 56 Add('Repeat');57 //Add('Repeat'); 57 58 Add('Begin'); 58 Add('Decrement I 1');59 //Add('Decrement I 1'); 59 60 Add('IfZero I'); 60 Add('Break'); 61 Add('Print ''condition'''); 62 //Add('Break'); 61 63 Add('End'); 62 end; 63 } with MemoSource.Lines do begin 64 Add('End'); 65 end; 66 { with MemoSource.Lines do begin 64 67 Add('PrintLn ''Super Calculator'''); 65 68 Add('var Value1 Integer'); … … 78 81 Add('PrintLn Result'); 79 82 end; 80 {with MemoSource.Lines do begin83 with MemoSource.Lines do begin 81 84 Add('PrintLn ''Hello World!'''); 82 85 Add('print ''Hello'' PRINT '' World!''');
Note:
See TracChangeset
for help on using the changeset viewer.