Recent

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

440bx

  • Hero Member
  • *****
  • Posts: 3946
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.
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v3.2) on Windows 7 SP1 64bit.

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1058
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: 3946
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.
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v3.2) on Windows 7 SP1 64bit.

bee

  • Sr. Member
  • ****
  • Posts: 393
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: 3946
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.
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v3.2) on Windows 7 SP1 64bit.

 

TinyPortal © 2005-2018