(IDE) Check syntax.

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User_Russian
Addict
Addict
Posts: 1520
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

(IDE) Check syntax.

Post by User_Russian »

It would be cool if the IDE would be able to check syntax without creating an executable file and without launching the program.
User avatar
Demivec
Addict
Addict
Posts: 4260
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Re: (IDE) Check syntax.

Post by Demivec »

User_Russian wrote:It would be cool if the IDE would be able to check syntax without creating an executable file and without launching the program.
It currently can be done by simply placing 'End' at the beginning of the source and then compiling.
MachineCode
Addict
Addict
Posts: 1482
Joined: Tue Feb 22, 2011 1:16 pm

Re: (IDE) Check syntax.

Post by MachineCode »

Demivec wrote:It currently can be done by simply placing 'End' at the beginning of the source and then compiling.
Nope, that still creates a temp executable.
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
User avatar
Demivec
Addict
Addict
Posts: 4260
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Re: (IDE) Check syntax.

Post by Demivec »

MachineCode wrote:
Demivec wrote:It currently can be done by simply placing 'End' at the beginning of the source and then compiling.
Nope, that still creates a temp executable.
I had neglected looking for a 'temp executable' and appreciate you pointing that out. On the other hand it is temporary and deleted in the process and so I don't see it as much of a drawback for what was requested.

It would be nicer to have the simple syntax check done. Would the syntax checking only involve the way the statements are formed or would include non-declared variables and such?
MachineCode
Addict
Addict
Posts: 1482
Joined: Tue Feb 22, 2011 1:16 pm

Re: (IDE) Check syntax.

Post by MachineCode »

Depending on the source, such temp executables can take several seconds to build. I assume the original poster just wanted a fast syntax check, without any such slow overhead of exe-building. It's been requested before, anyway.
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
Post Reply