mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2025-01-06 00:29:41 +00:00
Remove support for separate . . . as equivalent to a ... token.
The scanner has been updated so that ... should always get recognized as a single token, so this is no longer necessary as a workaround. Any code that actually uses separate . . . is non-standard and will need to be changed.
This commit is contained in:
parent
6d8ca42734
commit
bdf212ec6b
@ -1508,14 +1508,7 @@ var
|
|||||||
NextToken;
|
NextToken;
|
||||||
varargs := true;
|
varargs := true;
|
||||||
done2 := true;
|
done2 := true;
|
||||||
end {if}
|
end; {if}
|
||||||
else if token.kind = dotch then begin
|
|
||||||
NextToken;
|
|
||||||
Match(dotch,89);
|
|
||||||
Match(dotch,89);
|
|
||||||
varargs := true;
|
|
||||||
done2 := true;
|
|
||||||
end; {else if}
|
|
||||||
end {if}
|
end {if}
|
||||||
else
|
else
|
||||||
done2 := true;
|
done2 := true;
|
||||||
|
15
Scanner.pas
15
Scanner.pas
@ -2579,21 +2579,8 @@ var
|
|||||||
done := false;
|
done := false;
|
||||||
end; {if}
|
end; {if}
|
||||||
end {if}
|
end {if}
|
||||||
else if token.kind in [dotch,dotdotdotsy] then begin
|
else if token.kind = dotdotdotsy then begin
|
||||||
if token.kind = dotdotdotsy then
|
|
||||||
NextToken
|
|
||||||
else begin
|
|
||||||
NextToken;
|
NextToken;
|
||||||
if token.kind = dotch then begin
|
|
||||||
NextToken;
|
|
||||||
if token.kind = dotch then
|
|
||||||
NextToken
|
|
||||||
else
|
|
||||||
Error(89);
|
|
||||||
end
|
|
||||||
else
|
|
||||||
Error(89);
|
|
||||||
end; {else}
|
|
||||||
new(np);
|
new(np);
|
||||||
np^.next := nil;
|
np^.next := nil;
|
||||||
np^.str := '__VA_ARGS__';
|
np^.str := '__VA_ARGS__';
|
||||||
|
Loading…
Reference in New Issue
Block a user