Fcl-Passrc parsing bug?
Original Reporter info from Mantis: simone @simonetacconi
-
Reporter name: simone
Original Reporter info from Mantis: simone @simonetacconi
- Reporter name: simone
Description:
I detected a problem with the parser provided by fcl-passrc. I attach a demo code that try to parse procedure/function declarations in unit math. Above program show every declaration, reporting procedure/function name, parameter list (each with name and type), returning type for function and if this is a method of a class or not.
I find two problems.
- As shown in then output of demo code, the name of function 'power' is detect as
power(float,float):float
power(Int64,Int64):Int64
while I expect simply 'power'. The problem don't arise with other declarations in the unit.
- When a parameter type has spaces (as for example in 'MaxIntValue' function, where 'data' parameter is an 'array of integer'), the parser is not able to
detect it.
Thanks in advance for the help.
Steps to reproduce:
See the attached code.
Mantis conversion info:
- Mantis ID: 36134
- Version: 3.0.4