Changeset 142 for branches/easy compiler/UFormMain.pas
- Timestamp:
- Jan 16, 2018, 3:19:23 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/easy compiler/UFormMain.pas
r141 r142 63 63 Add('InputLn Value2'); 64 64 65 Add('begin'); 65 66 Add('Assign Result Value1'); 66 67 Add('Increment Result Value2'); 67 68 Add('Print ''Sum of two values is: '''); 68 69 Add('PrintLn Result'); 70 Add('end'); 69 71 end; 70 72 { with MemoSource.Lines do begin … … 99 101 Add('Assign AnimalCount 2'); 100 102 Add('Repeat'); 101 Add('Begin Block');103 Add('Begin'); 102 104 Add('PrintLn ''Think an animal.'''); 103 105 Add('Assign I 0'); 104 106 Add('Repeat'); 105 Add('Begin Block');107 Add('Begin'); 106 108 Add('Print AnimalProperty[I]'); 107 109 Add('Print ''? (y/n)'''); 108 110 Add('InputLn Answer'); 109 111 Add('IfEqual Answer ''y'''); 110 Add('Begin Block');112 Add('Begin'); 111 113 Add('PrintLn ''That''s clear. It is '''); 112 114 Add('PrintLn AnimalName[I]'); 113 115 Add('Break'); 114 Add('End Block');116 Add('End'); 115 117 Add('Increment I'); 116 118 Add('IfHigherOrEqual I AnimalCount'); 117 119 Add('Break'); 118 Add('End Block');120 Add('End'); 119 121 Add('PrintLn ''I am lost. What is the animal?'''); 120 122 Add('InputLn AnimalName[I]'); … … 124 126 Add('Increment AnimalCount 1'); 125 127 Add('PrintLn '''''); 126 Add('End Block');128 Add('End'); 127 129 end; 128 130 }
Note:
See TracChangeset
for help on using the changeset viewer.