Recent

Author Topic: Is there a syntax checking option only ?  (Read 758 times)

440bx

  • Hero Member
  • *****
  • Posts: 1414
Is there a syntax checking option only ?
« on: January 24, 2020, 07:23:02 pm »
Hello,

I'd like FPC to only do a syntax check on some source files (full parse but, no code generation.)  I didn't see a command line option that would tell FPC to only do syntax checking and, I'm wondering if I missed it or if the option doesn't exist.

That's my question: is there a command line switch that instructs FPC to do syntax checking only ?

Thank you for your help.
using FPC v3.0.4 and Lazarus 1.8.2 on Windows 7 64bit.

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 689
Re: Is there a syntax checking option only ?
« Reply #1 on: January 24, 2020, 07:36:40 pm »
There is no such option.

440bx

  • Hero Member
  • *****
  • Posts: 1414
Re: Is there a syntax checking option only ?
« Reply #2 on: January 24, 2020, 07:59:30 pm »
There is no such option.
Thank you Jonas.
using FPC v3.0.4 and Lazarus 1.8.2 on Windows 7 64bit.

bee

  • Sr. Member
  • ****
  • Posts: 392
Re: Is there a syntax checking option only ?
« Reply #3 on: January 25, 2020, 02:40:18 am »
I usually use -s to achieve such purpose. The option doesn't do syntax check but makes FPC does not call assembler and linker which is pretty much what syntax check does.
-Bee-

A long time pascal lover.

440bx

  • Hero Member
  • *****
  • Posts: 1414
Re: Is there a syntax checking option only ?
« Reply #4 on: January 25, 2020, 07:35:37 am »
I usually use -s to achieve such purpose. The option doesn't do syntax check but makes FPC does not call assembler and linker which is pretty much what syntax check does.
Good suggestion, thank you.
using FPC v3.0.4 and Lazarus 1.8.2 on Windows 7 64bit.