+ Implemented support for ;public name XYZ; construct

git-svn-id: trunk@4133 -
This commit is contained in:
michael 2006-07-09 09:43:30 +00:00
parent ca37943c16
commit aa2d333b11

View File

@ -1492,10 +1492,27 @@ begin
begin
ExpectToken(tkSemicolon);
end
else if (UpperCase(CurTokenString) = 'EXTERNAL') then
else if (tok = 'EXTERNAL') then
repeat
NextToken;
until CurToken = tkSemicolon
else if (tok = 'PUBLIC') then
begin
NextToken;
{ Should be token Name,
if not we're in a class and the public section starts }
If (Uppercase(CurTokenString)<>'NAME') then
begin
UngetToken;
UngetToken;
Break;
end
else
begin
NextToken; // Should be export name string.
ExpectToken(tkSemicolon);
end;
end
else
begin
UnGetToken;