Changeset 204 for branches/interpreter2/UFormMain.pas
- Timestamp:
- Apr 17, 2020, 11:07:37 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/interpreter2/UFormMain.pas
r203 r204 15 15 TFormMain = class(TForm) 16 16 ButtonCompile: TButton; 17 ButtonGenerate1: TButton; 17 18 ButtonRun: TButton; 18 19 ButtonGenerate: TButton; … … 24 25 SynFreePascalSyn1: TSynFreePascalSyn; 25 26 procedure ButtonCompileClick(Sender: TObject); 27 procedure ButtonGenerate1Click(Sender: TObject); 26 28 procedure ButtonGenerateClick(Sender: TObject); 27 29 procedure ButtonRunClick(Sender: TObject); … … 49 51 50 52 uses 51 UParser, UExecutor, UGenerator ;53 UParser, UExecutor, UGenerator, UGeneratorPhp; 52 54 53 55 { TFormMain } … … 107 109 end; 108 110 111 procedure TFormMain.ButtonGenerate1Click(Sender: TObject); 112 var 113 Generator: TGeneratorPhp; 114 begin 115 ButtonCompile.Click; 116 MemoOutput.Lines.Clear; 117 if Assigned(Prog) then begin 118 Generator := TGeneratorPhp.Create; 119 Generator.Prog := Prog; 120 Generator.Generate; 121 MemoOutput.Lines.Text := Generator.Output; 122 Generator.Free; 123 end; 124 end; 125 109 126 procedure TFormMain.ButtonGenerateClick(Sender: TObject); 110 127 var
Note:
See TracChangeset
for help on using the changeset viewer.