Recent

Author Topic: Syntax Check button?  (Read 8027 times)

Possum

  • Jr. Member
  • **
  • Posts: 69
    • uDoPage
Syntax Check button?
« on: March 29, 2010, 01:02:40 pm »
Delphi has the Syntax Check button.

So you can check on your code before you compile it..

What is the Equivalent in Lazarus.

Thank You..

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2649
Re: Syntax Check button?
« Reply #1 on: March 29, 2010, 01:45:03 pm »
Run -> Quick Compile
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11454
  • Debugger - SynEdit - and more
    • wiki
Re: Syntax Check button?
« Reply #2 on: March 29, 2010, 01:51:03 pm »
Tools => Quick Syntax Check

defaults to ctrl-alt-c

Zoran

  • Hero Member
  • *****
  • Posts: 1949
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: Syntax Check button?
« Reply #3 on: April 01, 2010, 10:10:37 am »
Run -> Quick Compile
Tools => Quick Syntax Check

What is the diferrence between these two?

EDIT:
Actually, I understand what "Quick Compile" does -- If I'm not mistaken, it compiles the project files, but skips linking and that would be the equivalent of Delphi's "Syntax Check".

I don't know what "Quick Syntax Check" does.
I tested this -- I put a declaration
Code: [Select]
X: ThisTypeDoesNotExist;And "Quick Syntax Check" gives "Quick syntax check OK"!?
Compilation is, of course, impossible.
« Last Edit: April 01, 2010, 11:07:17 am by Zoran »
Swan, ZX Spectrum emulator https://github.com/zoran-vucenovic/swan

dfeher

  • New Member
  • *
  • Posts: 19
Re: Syntax Check button?
« Reply #4 on: April 01, 2010, 04:19:02 pm »
You get 'Quick syntax check OK' because your syntax is OK. Non-existent type is not a bad-syntax case.  :)

 

TinyPortal © 2005-2018