[Implemented] Compiler Feature : Check for Syntax

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post by rsts »

Raybarg wrote:
JCV wrote:
Kaeru Gaman wrote:would it be possible to add some "compile but don't run" feature? e.g. Shift-F5
This is definitely helpful if you only intend to check syntax specially on large projects. I sometimes compile my project just to check if there are syntax errors and just imagine how long the compiled program will open and you will just terminate it. This will save time.
Could you just add End in the beginning of your code? It still compiles everything, right?
With a solution this simple, I would prefer Fred and Fr34k work on things other than making this some kind of option.

cheers
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Why don't you assign a shortcut to the "create executable" menu option instead? It compiles without running, which is basically what was asked for.
User avatar
Blue
Addict
Addict
Posts: 964
Joined: Fri Oct 06, 2006 4:41 am
Location: Canada

Post by Blue »

Trond wrote:Why don't you assign a shortcut to the "create executable" menu option instead? It compiles without running, which is basically what was asked for.
Close, but not quite since you then have a selector window opening up and some additional steps to take care of.

The "End" command at the beginning of the file is more practical and closer to a true "check syntax" command, plus it works for sources (!!!) that haven't yet been saved.

But that's still a nice workaround.

Many heads are definitely better than my single little one... :lol:
PB Forums : Proof positive that 2 heads (or more...) are better than one :idea:
Post Reply