Changeset 202 for branches/interpreter2/UFormMain.pas
- Timestamp:
- Apr 17, 2020, 12:09:15 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/interpreter2/UFormMain.pas
r201 r202 6 6 7 7 uses 8 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, USource; 8 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, 9 SynHighlighterPas, SynEdit, USource; 9 10 10 11 type … … 17 18 Label1: TLabel; 18 19 Label2: TLabel; 19 MemoSource: TMemo;20 20 MemoLog: TMemo; 21 21 MemoOutput: TMemo; 22 SynEditSource: TSynEdit; 23 SynFreePascalSyn1: TSynFreePascalSyn; 22 24 procedure ButtonCompileClick(Sender: TObject); 23 25 procedure ButtonRunClick(Sender: TObject); … … 53 55 if not Initialized then begin 54 56 Initialized := True; 55 MemoSource.Lines.LoadFromFile('Test.pas');57 SynEditSource.Lines.LoadFromFile('Test.pas'); 56 58 ButtonRun.Click; 57 59 end; … … 95 97 Parser := TParser.Create; 96 98 Parser.OnError := InterpreterError; 97 Parser.Source := MemoSource.Lines.Text;99 Parser.Source := SynEditSource.Lines.Text; 98 100 Parser.Parse; 99 101 if Assigned(Prog) then Prog.Free;
Note:
See TracChangeset
for help on using the changeset viewer.