fcl-passrc parser requires semicolon before function modifiers
Original Reporter info from Mantis: sethdgrover@gmail.com
-
Reporter name: Seth Grover
Original Reporter info from Mantis: sethdgrover@gmail.com
- Reporter name: Seth Grover
Description:
The FPC compiler accepts either of the following:
procedure MyProcedure(const i : integer) overload;
AND
procedure MyProcedure(const i : integer); overload;
(note the semicolon before the overload.
However, the fcl-passrc (PasTree/PParser) only accepts the syntax WITH the semicolon. The former gives this error:
Expected "(" or ";" at token "Identifier overload" in file /path/to/file.pas at line 3111 column 22
It would be nice for this parser to accept the same syntax accepted by the compiler.
Thanks.
Mantis conversion info:
- Mantis ID: 25509
- Fixed in version: 2.6.4
- Monitored by: » sethdgrover@gmail.com (Seth Grover)
- Target version: 2.6.4