Changeset 230 for branches/xpascal/Parsers/ParserPascal.pas
- Timestamp:
- Jun 26, 2023, 12:08:45 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/xpascal/Parsers/ParserPascal.pas
r224 r230 347 347 Token: TToken; 348 348 TypeRef: TType; 349 ParamKind: TFunctionParamKind; 349 350 begin 350 351 Result := True; 352 if Tokenizer.CheckNext('var', tkKeyword) then begin 353 Tokenizer.GetNext; 354 ParamKind := pkVar; 355 end; 351 356 Token := Tokenizer.GetNext; 352 357 if Token.Kind = tkIdentifier then begin 353 358 Parameter := TFunctionParameter.Create; 359 Parameter.Kind := ParamKind; 354 360 Parameter.Name := Token.Text; 355 361 Tokenizer.Expect(':', tkSpecialSymbol);
Note:
See TracChangeset
for help on using the changeset viewer.