|
@@ -13,7 +13,7 @@ uses
|
|
{$ENDIF}
|
|
{$ENDIF}
|
|
Classes, SysUtils, CustApp,
|
|
Classes, SysUtils, CustApp,
|
|
Pas2jsFileUtils, Pas2jsLogger, Pas2jsCompiler,
|
|
Pas2jsFileUtils, Pas2jsLogger, Pas2jsCompiler,
|
|
- Pas2JSPCUCompiler, Pas2JSCompilerPP, Pas2JSCompilerCfg;
|
|
|
|
|
|
+ Pas2JSFSCompiler, Pas2JSCompilerPP, Pas2JSCompilerCfg;
|
|
|
|
|
|
Type
|
|
Type
|
|
|
|
|
|
@@ -21,14 +21,14 @@ Type
|
|
|
|
|
|
TPas2jsCLI = class(TCustomApplication)
|
|
TPas2jsCLI = class(TCustomApplication)
|
|
private
|
|
private
|
|
- FCompiler: TPas2jsPCUCompiler;
|
|
|
|
|
|
+ FCompiler: TPas2JSFSCompiler;
|
|
FWriteOutputToStdErr: Boolean;
|
|
FWriteOutputToStdErr: Boolean;
|
|
protected
|
|
protected
|
|
procedure DoRun; override;
|
|
procedure DoRun; override;
|
|
public
|
|
public
|
|
constructor Create(TheOwner: TComponent); override;
|
|
constructor Create(TheOwner: TComponent); override;
|
|
destructor Destroy; override;
|
|
destructor Destroy; override;
|
|
- property Compiler: TPas2jsPCUCompiler read FCompiler;
|
|
|
|
|
|
+ property Compiler: TPas2JSFSCompiler read FCompiler;
|
|
property WriteOutputToStdErr: Boolean read FWriteOutputToStdErr write FWriteOutputToStdErr;
|
|
property WriteOutputToStdErr: Boolean read FWriteOutputToStdErr write FWriteOutputToStdErr;
|
|
end;
|
|
end;
|
|
|
|
|
|
@@ -67,7 +67,7 @@ constructor TPas2jsCLI.Create(TheOwner: TComponent);
|
|
begin
|
|
begin
|
|
inherited Create(TheOwner);
|
|
inherited Create(TheOwner);
|
|
StopOnException:=True;
|
|
StopOnException:=True;
|
|
- FCompiler:=TPas2jsPCUCompiler.Create;
|
|
|
|
|
|
+ FCompiler:=TPas2JSFSCompiler.Create;
|
|
FCompiler.ConfigSupport:=TPas2JSFileConfigSupport.Create(FCompiler);
|
|
FCompiler.ConfigSupport:=TPas2JSFileConfigSupport.Create(FCompiler);
|
|
FCompiler.PostProcessorSupport:=TPas2JSFSPostProcessorSupport.Create(FCompiler);
|
|
FCompiler.PostProcessorSupport:=TPas2JSFSPostProcessorSupport.Create(FCompiler);
|
|
end;
|
|
end;
|