mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 00:08:12 +02:00
* Instantiate FS compiler
git-svn-id: trunk@40452 -
This commit is contained in:
parent
2c7f401bf7
commit
b9905f6a2c
@ -6,7 +6,7 @@ program nodepas2js;
|
||||
uses
|
||||
JS, NodeJSApp,
|
||||
Classes, SysUtils,
|
||||
Pas2jsFileUtils, Pas2jsLogger, Pas2jsCompiler;
|
||||
Pas2jsFileUtils, Pas2jsLogger, pas2jscompiler, Pas2jsfscompiler;
|
||||
|
||||
type
|
||||
|
||||
@ -14,13 +14,13 @@ type
|
||||
|
||||
TPas2jsCLI = class(TNodeJSApplication)
|
||||
private
|
||||
FCompiler: TPas2jsCompiler;
|
||||
FCompiler: TPas2jsFSCompiler;
|
||||
protected
|
||||
procedure DoRun; override;
|
||||
public
|
||||
constructor Create(TheOwner: TComponent); override;
|
||||
destructor Destroy; override;
|
||||
property Compiler: TPas2jsCompiler read FCompiler;
|
||||
property Compiler: TPas2jsFsCompiler read FCompiler;
|
||||
end;
|
||||
|
||||
procedure TPas2jsCLI.DoRun;
|
||||
@ -65,7 +65,7 @@ constructor TPas2jsCLI.Create(TheOwner: TComponent);
|
||||
begin
|
||||
inherited Create(TheOwner);
|
||||
StopOnException:=True;
|
||||
FCompiler:=TPas2jsCompiler.Create;
|
||||
FCompiler:=TPas2jsFSCompiler.Create;
|
||||
end;
|
||||
|
||||
destructor TPas2jsCLI.Destroy;
|
||||
|
Loading…
Reference in New Issue
Block a user