|
@@ -1864,7 +1864,7 @@ begin
|
|
while True do
|
|
while True do
|
|
begin
|
|
begin
|
|
NextToken;
|
|
NextToken;
|
|
- //writeln('TPasParser.ParseSection Token=',Scanner.CurTokenString,' ',CurToken);
|
|
|
|
|
|
+ // writeln('TPasParser.ParseSection Token=',CurTokenString,' ',CurToken, ' ',scanner.CurFilename);
|
|
case CurToken of
|
|
case CurToken of
|
|
tkend:
|
|
tkend:
|
|
begin
|
|
begin
|
|
@@ -2942,12 +2942,12 @@ var
|
|
BeginBlock: TPasImplBeginBlock;
|
|
BeginBlock: TPasImplBeginBlock;
|
|
SubBlock: TPasImplElement;
|
|
SubBlock: TPasImplElement;
|
|
begin
|
|
begin
|
|
- //writeln('TPasParser.ParseProcBeginBlock ');
|
|
|
|
|
|
|
|
BeginBlock := TPasImplBeginBlock(CreateElement(TPasImplBeginBlock, '', Parent));
|
|
BeginBlock := TPasImplBeginBlock(CreateElement(TPasImplBeginBlock, '', Parent));
|
|
Parent.Body := BeginBlock;
|
|
Parent.Body := BeginBlock;
|
|
repeat
|
|
repeat
|
|
NextToken;
|
|
NextToken;
|
|
|
|
+// writeln('TPasParser.ParseProcBeginBlock ',curtokenstring);
|
|
if CurToken=tkend then
|
|
if CurToken=tkend then
|
|
break
|
|
break
|
|
else if CurToken<>tkSemiColon then
|
|
else if CurToken<>tkSemiColon then
|
|
@@ -2959,6 +2959,7 @@ begin
|
|
end;
|
|
end;
|
|
until false;
|
|
until false;
|
|
ExpectToken(tkSemicolon);
|
|
ExpectToken(tkSemicolon);
|
|
|
|
+// writeln('TPasParser.ParseProcBeginBlock ended ',curtokenstring);
|
|
end;
|
|
end;
|
|
|
|
|
|
// Next token is start of (compound) statement
|
|
// Next token is start of (compound) statement
|
|
@@ -3241,7 +3242,6 @@ begin
|
|
//writeln(i,'EXCEPT');
|
|
//writeln(i,'EXCEPT');
|
|
el:=TPasImplTryExcept(CreateElement(TPasImplTryExcept,'',CurBlock));
|
|
el:=TPasImplTryExcept(CreateElement(TPasImplTryExcept,'',CurBlock));
|
|
TPasImplTry(CurBlock).FinallyExcept:=TPasImplTryExcept(el);
|
|
TPasImplTry(CurBlock).FinallyExcept:=TPasImplTryExcept(el);
|
|
-// CurBlock.AddElement(el);
|
|
|
|
CurBlock:=TPasImplTryExcept(el);
|
|
CurBlock:=TPasImplTryExcept(el);
|
|
end else
|
|
end else
|
|
ParseExc(SParserSyntaxError);
|
|
ParseExc(SParserSyntaxError);
|