|
@@ -36,6 +36,7 @@ var
|
|
E: TPasTreeContainer;
|
|
E: TPasTreeContainer;
|
|
I: Integer;
|
|
I: Integer;
|
|
Decls: TList;
|
|
Decls: TList;
|
|
|
|
+ cmdl : string;
|
|
begin
|
|
begin
|
|
if Paramcount<1 then
|
|
if Paramcount<1 then
|
|
begin
|
|
begin
|
|
@@ -44,9 +45,13 @@ begin
|
|
writeln('usage: test_parser <commandline>');
|
|
writeln('usage: test_parser <commandline>');
|
|
halt;
|
|
halt;
|
|
end;
|
|
end;
|
|
|
|
+ cmdl:=paramstr(1);
|
|
|
|
+ if paramcount>1 then
|
|
|
|
+ for i:=2 to paramcount do
|
|
|
|
+ cmdl:=cmdl+' '+paramstr(i);
|
|
E := TSimpleEngine.Create;
|
|
E := TSimpleEngine.Create;
|
|
try
|
|
try
|
|
- M := ParseSource(E, ParamStr(1), 'linux', 'i386');
|
|
|
|
|
|
+ M := ParseSource(E, cmdl , 'linux', 'i386');
|
|
|
|
|
|
{ Cool, we successfully parsed the unit.
|
|
{ Cool, we successfully parsed the unit.
|
|
Now output some info about it. }
|
|
Now output some info about it. }
|