Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-11

Syntax checking from Lazarus

4 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Bo Berglund

In Delphi I use the "Syntax check" function a lot to verify that my project does not contain any illegal constructs or missing begin-end terminators etc.

In Lazarus the only comparable such command I have found is "Quick Compile", but this is not really what I am after because:
1) It saves my edited files before I am really ready for this
2) It actually compiles the project
3) It takes longer than I expect

Is there a "syntax check" function that I have overlooked, which works the same way as in Delphi?

And what does "Quick" mean in regards to "quick compile"???

Bo Berglund Developer in Sweden

Reply by email

Sven Barth
to Bo Berglund
Bo Berglund wrote 13 lines
In Delphi I use the "Syntax check" function a lot to verify that my project does not contain any illegal constructs or missing begin-end terminators etc. In Lazarus the only comparable such command I have found is "Quick Compile", but this is not really what I am after because: 1) It saves my edited files before I am really ready for this 2) It actually compiles the project 3) It takes longer than I expect Is there a "syntax check" function that I have overlooked, which works the same way as in Delphi?

How about "Tools"->"Quick syntax check" (or similar, I'm using the German version). I haven't used that yet, so I can't tell you how good and up to date it is.

And what does "Quick" mean in regards to "quick compile"???

Sorry, can't tell you anything about this, cause I'm not using this as well.

Regards,
Sven

Reply by email

Mattias Gaertner
to Sven Barth
Show quoted text 8 lines
Am 30.11.2010 09:12, schrieb Bo Berglund: > In Delphi I use the "Syntax check" function a lot to verify that my > project does not contain any illegal constructs or missing begin-end > terminators etc. > > In Lazarus the only comparable such command I have found is "Quick > Compile", but this is not really what I am after because: > 1) It saves my edited files before I am really ready for this

Yes, the compiler needs files.

Show quoted text 10 lines
> 2) It actually compiles the project > 3) It takes longer than I expect > > Is there a "syntax check" function that I have overlooked, which works > the same way as in Delphi? > How about "Tools"->"Quick syntax check" (or similar, I'm using the German version). I haven't used that yet, so I can't tell you how good and up to date it is.

It is the syntax check of the codetools. They are much more tolerant than the compiler, but missing 'end's are spotted. It does not check identifiers and therefore it does not check expressions and statements.

> And what does "Quick" mean in regards to "quick compile"???

It tells the compiler to skip linking and assembling.

Sorry, can't tell you anything about this, cause I'm not using this as well.

Mattias

Reply by email