Changeset 224
- Timestamp:
- Jun 16, 2023, 12:20:51 AM (19 months ago)
- Location:
- branches/interpreter2
- Files:
-
- 3 edited
- 19 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/interpreter2/Executor.pas
r223 r224 1 unit UExecutor; 2 3 {$mode delphi} 1 unit Executor; 4 2 5 3 interface 6 4 7 5 uses 8 Classes, SysUtils, USource, Contnrs;6 Classes, SysUtils, Source, Contnrs; 9 7 10 8 type … … 885 883 end; 886 884 887 888 885 end. 889 886 -
branches/interpreter2/Forms/FormMain.lfm
r223 r224 11 11 OnActivate = FormActivate 12 12 OnClose = FormClose 13 OnCreate = FormCreate 13 14 OnDestroy = FormDestroy 14 15 OnShow = FormShow 15 LCLVersion = '2. 0.10.0'16 LCLVersion = '2.2.6.0' 16 17 object PanelMessages: TPanel 17 18 Left = 0 -
branches/interpreter2/Forms/FormMain.pas
r223 r224 1 unit UFormMain; 2 3 {$mode delphi}{$H+} 1 unit FormMain; 4 2 5 3 interface 6 4 7 5 uses 8 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls,Menus,9 ActnList, ExtCtrls, SynHighlighterPas, SynEdit, USource, UOptimizer,10 UGenerator;6 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, Menus, 7 ActnList, ExtCtrls, SynHighlighterPas, SynEdit, Source, Optimizer, 8 Generator, FormSource, FormMessages, FormOutput; 11 9 12 10 type … … 44 42 procedure AGeneratePhpExecute(Sender: TObject); 45 43 procedure AGenerateXmlExecute(Sender: TObject); 44 procedure FormCreate(Sender: TObject); 46 45 procedure Optimize(Features: TOptimizeFeatures); 47 46 procedure ARunExecute(Sender: TObject); … … 53 52 Prog: TProgram; 54 53 Initialized: Boolean; 54 FormSource: TFormSource; 55 FormMessages: TFormMessages; 56 FormOutput: TFormOutput; 55 57 procedure Generate(GeneratorClass: TGeneratorClass); 56 58 procedure ExecutorOutput(Text: string); … … 58 60 procedure UpdateInterface; 59 61 procedure DockForm(Form: TForm; DockSite: TWinControl); 60 public61 62 62 end; 63 63 … … 71 71 72 72 uses 73 UParser, UExecutor, UGeneratorPascal, UGeneratorPhp, UFormMessages, UFormSource,74 UGeneratorCSharp, UGeneratorXml, UFormOutput, UParserPascal;73 Parser, Executor, GeneratorPascal, GeneratorPhp, 74 GeneratorCSharp, GeneratorXml, ParserPascal; 75 75 76 76 { TFormMain } … … 93 93 begin 94 94 if Assigned(Prog) then FreeAndNil(Prog); 95 FreeAndNil(FormSource); 96 FreeAndNil(FormMessages); 95 97 end; 96 98 97 99 procedure TFormMain.FormShow(Sender: TObject); 98 100 begin 101 FormMessages := TFormMessages.Create(nil); 102 FormMessages.Show; 99 103 DockForm(FormMessages, PanelMessages); 104 FormSource := TFormSource.Create(nil); 105 FormSource.Show; 100 106 DockForm(FormSource, PanelSource); 107 FormOutput := TFormOutput.Create(nil); 108 FormOutput.Show; 101 109 DockForm(FormOutput, PanelOutput); 102 110 UpdateInterface; … … 184 192 end; 185 193 194 procedure TFormMain.FormCreate(Sender: TObject); 195 begin 196 end; 197 186 198 procedure TFormMain.Optimize(Features: TOptimizeFeatures); 187 199 var -
branches/interpreter2/Forms/FormMessages.pas
r223 r224 1 unit UFormMessages; 2 3 {$mode delphi} 1 unit FormMessages; 4 2 5 3 interface … … 15 13 Label1: TLabel; 16 14 MemoLog: TMemo; 17 private18 19 15 public 20 16 procedure Clear; … … 22 18 end; 23 19 24 var25 FormMessages: TFormMessages;26 20 27 21 implementation -
branches/interpreter2/Forms/FormOutput.pas
r223 r224 1 unit UFormOutput; 2 3 {$mode delphi} 1 unit FormOutput; 4 2 5 3 interface … … 21 19 SynPHPSyn1: TSynPHPSyn; 22 20 SynXMLSyn1: TSynXMLSyn; 23 private24 25 21 public 26 22 procedure Clear; … … 28 24 end; 29 25 30 var31 FormOutput: TFormOutput;32 26 33 27 implementation -
branches/interpreter2/Forms/FormSource.pas
r223 r224 1 unit UFormSource; 2 3 {$mode delphi} 1 unit FormSource; 4 2 5 3 interface … … 17 15 SynEditSource: TSynEdit; 18 16 SynFreePascalSyn1: TSynFreePascalSyn; 19 private20 21 public22 23 17 end; 24 25 var26 FormSource: TFormSource;27 18 28 19 implementation -
branches/interpreter2/Generator.pas
r223 r224 1 unit UGenerator; 2 3 {$mode delphi} 1 unit Generator; 4 2 5 3 interface 6 4 7 5 uses 8 Classes, SysUtils, strutils, USource;6 Classes, SysUtils, strutils, Source; 9 7 10 8 type -
branches/interpreter2/Generators/GeneratorCSharp.pas
r223 r224 1 unit UGeneratorCSharp; 2 3 {$mode delphi} 1 unit GeneratorCSharp; 4 2 5 3 interface 6 4 7 5 uses 8 Classes, SysUtils, strutils, USource, UGenerator;6 Classes, SysUtils, strutils, Source, Generator; 9 7 10 8 type -
branches/interpreter2/Generators/GeneratorPascal.pas
r223 r224 1 unit UGeneratorPascal; 2 3 {$mode delphi} 1 unit GeneratorPascal; 4 2 5 3 interface 6 4 7 5 uses 8 Classes, SysUtils, strutils, USource, UGenerator;6 Classes, SysUtils, strutils, Source, Generator; 9 7 10 8 type … … 40 38 end; 41 39 40 42 41 implementation 43 42 -
branches/interpreter2/Generators/GeneratorPhp.pas
r223 r224 1 unit UGeneratorPhp; 2 3 {$mode delphi} 1 unit GeneratorPhp; 4 2 5 3 interface 6 4 7 5 uses 8 Classes, SysUtils, strutils, USource, UGenerator;6 Classes, SysUtils, strutils, Source, Generator; 9 7 10 8 type -
branches/interpreter2/Generators/GeneratorXml.pas
r223 r224 1 unit UGeneratorXml; 2 3 {$mode delphi} 1 unit GeneratorXml; 4 2 5 3 interface 6 4 7 5 uses 8 Classes, SysUtils, USource, UGenerator;6 Classes, SysUtils, Source, Generator; 9 7 10 8 type -
branches/interpreter2/Optimizer.pas
r223 r224 1 unit UOptimizer; 2 3 {$mode delphi} 1 unit Optimizer; 4 2 5 3 interface 6 4 7 5 uses 8 Classes, SysUtils, USource;6 Classes, SysUtils, Source; 9 7 10 8 type -
branches/interpreter2/Parser.pas
r223 r224 1 unit UParser; 2 3 {$mode delphi}{$H+} 1 unit Parser; 4 2 5 3 interface 6 4 7 5 uses 8 Classes, SysUtils, UTokenizer, USource;6 Classes, SysUtils, Tokenizer, Source; 9 7 10 8 type -
branches/interpreter2/Parsers/ParserPascal.pas
r223 r224 1 unit UParserPascal; 2 3 {$mode delphi} 1 unit ParserPascal; 4 2 5 3 interface 6 4 7 5 uses 8 Classes, SysUtils, UParser, UTokenizer, USource;6 Classes, SysUtils, Parser, Tokenizer, Source; 9 7 10 8 type -
branches/interpreter2/Source.pas
r223 r224 1 unit USource; 2 3 {$mode delphi} 1 unit Source; 4 2 5 3 interface … … 1518 1516 end; 1519 1517 1520 1521 1518 end. 1522 1519 -
branches/interpreter2/Tokenizer.pas
r223 r224 1 unit UTokenizer; 2 3 {$mode delphi}{$H+} 1 unit Tokenizer; 4 2 5 3 interface … … 325 323 end; 326 324 327 328 329 325 end. 330 326 -
branches/interpreter2/UInterpreter.pas
r201 r224 1 1 unit UInterpreter; 2 3 {$mode delphi}4 2 5 3 interface 6 4 7 5 uses 8 Classes, SysUtils, UParser, UExecutor;6 Classes, SysUtils, Parser, Executor; 9 7 10 8 type … … 23 21 destructor Destroy; override; 24 22 end; 23 25 24 26 25 implementation … … 52 51 Executor.Free; 53 52 Parser.Free; 54 inherited Destroy;53 inherited; 55 54 end; 56 55 -
branches/interpreter2/interpreter.lpi
r221 r224 2 2 <CONFIG> 3 3 <ProjectOptions> 4 <Version Value="1 1"/>4 <Version Value="12"/> 5 5 <General> 6 <Flags> 7 <CompatibilityMode Value="True"/> 8 </Flags> 6 9 <SessionStorage Value="InProjectDir"/> 7 <MainUnit Value="0"/>8 10 <Title Value="interpreter"/> 9 11 <Scaled Value="True"/> … … 62 64 <RunParams> 63 65 <FormatVersion Value="2"/> 64 <Modes Count="0"/>65 66 </RunParams> 66 67 <RequiredPackages Count="2"> … … 78 79 </Unit0> 79 80 <Unit1> 80 <Filename Value=" UParser.pas"/>81 <Filename Value="Parser.pas"/> 81 82 <IsPartOfProject Value="True"/> 82 83 </Unit1> 83 84 <Unit2> 84 <Filename Value=" UTokenizer.pas"/>85 <Filename Value="Tokenizer.pas"/> 85 86 <IsPartOfProject Value="True"/> 86 87 </Unit2> 87 88 <Unit3> 88 <Filename Value=" USource.pas"/>89 <Filename Value="Source.pas"/> 89 90 <IsPartOfProject Value="True"/> 90 91 </Unit3> 91 92 <Unit4> 92 <Filename Value=" UExecutor.pas"/>93 <Filename Value="Executor.pas"/> 93 94 <IsPartOfProject Value="True"/> 94 95 </Unit4> … … 98 99 </Unit5> 99 100 <Unit6> 100 <Filename Value=" UGenerator.pas"/>101 <Filename Value="Generator.pas"/> 101 102 <IsPartOfProject Value="True"/> 102 103 </Unit6> 103 104 <Unit7> 104 <Filename Value="Forms/ UFormMessages.pas"/>105 <Filename Value="Forms/FormMessages.pas"/> 105 106 <IsPartOfProject Value="True"/> 106 107 <ComponentName Value="FormMessages"/> … … 109 110 </Unit7> 110 111 <Unit8> 111 <Filename Value="Forms/ UFormSource.pas"/>112 <Filename Value="Forms/FormSource.pas"/> 112 113 <IsPartOfProject Value="True"/> 113 114 <ComponentName Value="FormSource"/> … … 116 117 </Unit8> 117 118 <Unit9> 118 <Filename Value=" UOptimizer.pas"/>119 <Filename Value="Optimizer.pas"/> 119 120 <IsPartOfProject Value="True"/> 120 121 </Unit9> 121 122 <Unit10> 122 <Filename Value="Forms/ UFormOutput.pas"/>123 <Filename Value="Forms/FormOutput.pas"/> 123 124 <IsPartOfProject Value="True"/> 124 125 <ComponentName Value="FormOutput"/> … … 127 128 </Unit10> 128 129 <Unit11> 129 <Filename Value="Forms/ UFormMain.pas"/>130 <Filename Value="Forms/FormMain.pas"/> 130 131 <IsPartOfProject Value="True"/> 131 132 <ComponentName Value="FormMain"/> … … 134 135 </Unit11> 135 136 <Unit12> 136 <Filename Value="Generators/ UGeneratorCSharp.pas"/>137 <Filename Value="Generators/GeneratorCSharp.pas"/> 137 138 <IsPartOfProject Value="True"/> 138 139 </Unit12> 139 140 <Unit13> 140 <Filename Value="Generators/ UGeneratorPascal.pas"/>141 <Filename Value="Generators/GeneratorPascal.pas"/> 141 142 <IsPartOfProject Value="True"/> 142 143 </Unit13> 143 144 <Unit14> 144 <Filename Value="Generators/ UGeneratorPhp.pas"/>145 <Filename Value="Generators/GeneratorPhp.pas"/> 145 146 <IsPartOfProject Value="True"/> 146 147 </Unit14> 147 148 <Unit15> 148 <Filename Value="Generators/ UGeneratorXml.pas"/>149 <Filename Value="Generators/GeneratorXml.pas"/> 149 150 <IsPartOfProject Value="True"/> 150 151 </Unit15> 151 152 <Unit16> 152 <Filename Value="Parsers/ UParserPascal.pas"/>153 <Filename Value="Parsers/ParserPascal.pas"/> 153 154 <IsPartOfProject Value="True"/> 154 155 </Unit16> … … 185 186 <Linking> 186 187 <Debugging> 188 <DebugInfoType Value="dsDwarf2Set"/> 187 189 <UseHeaptrc Value="True"/> 188 190 </Debugging> -
branches/interpreter2/interpreter.lpr
r221 r224 8 8 {$ENDIF}{$ENDIF} 9 9 Interfaces, SysUtils, // this includes the LCL widgetset 10 Forms, UParser, UTokenizer, USource, UExecutor, UInterpreter,11 UGenerator, UFormMessages,12 UFormSource, UOptimizer, UFormOutput, UFormMain, UParserPascal10 Forms, Parser, Tokenizer, Source, Executor, UInterpreter, 11 Generator, FormMessages, 12 FormSource, Optimizer, FormOutput, FormMain, ParserPascal 13 13 { you can add units after this }; 14 14 … … 28 28 Application.Scaled:=True; 29 29 Application.Initialize; 30 Application.CreateForm(TFormMain, FormMain); 31 Application.CreateForm(TFormMessages, FormMessages); 32 Application.CreateForm(TFormSource, FormSource); 33 Application.CreateForm(TFormOutput, FormOutput); 30 Application.CreateForm(TFormMain, FormMain.FormMain); 34 31 Application.Run; 35 32 end.
Note:
See TracChangeset
for help on using the changeset viewer.