Recent

Author Topic: Issue with fcl-passrc  (Read 873 times)

simone

  • Hero Member
  • *****
  • Posts: 573
Issue with fcl-passrc
« on: October 03, 2019, 12:46:28 pm »
I detected a problem with the parser provided by fcl-passrc. Using the demo code in https://wiki.freepascal.org/fcl-passrc in order to parse the unit math, the declaration of function power is not correctly recognized, beacause the parser extracts as name:

Interface item 62: power(float,float):float
Interface item 63: power(Int64,Int64):Int64

while I expect simply 'power'. The problem don't arise with other declarations in the unit.

I attached the code for convenience. Could it be a bug? Or do I miss something?

Thanks in advance for the help.
Microsoft Windows 10 64 bit - Lazarus 3.0 FPC 3.2.2 x86_64-win64-win32/win64

simone

  • Hero Member
  • *****
  • Posts: 573
Re: Issue with fcl-passrc
« Reply #1 on: October 03, 2019, 10:50:10 pm »
This is not a bug. I apologize. The definitions of ** operators are parsed with the name "Power" as well.

(see https://bugs.freepascal.org/view.php?id=36134).
Microsoft Windows 10 64 bit - Lazarus 3.0 FPC 3.2.2 x86_64-win64-win32/win64

 

TinyPortal © 2005-2018