New compiler cli commands /IGNOREERROR and /CHECKALL

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

New compiler cli commands /IGNOREERROR and /CHECKALL

Post by GPI »

When you use the /Preproccess command, there is a syntax-check on the file. Sometimes it makes sense to ignore the syntax. For example when you want to write a preproccessor. It is easier to use the "/preproccess" file, because all macros and compilerifs are expanded and you have only one big file.

also for the "/check" parameter. It would be nice to check the complete file and don't stop on the first error. In many cases there are more than one error and they don't affect each other.

Code: Select all

EnableExplicit

Define a,b,c

a=10
b=20

d=30

a=10

e=40

here on line 9 and 13 are two errors, d and e are not definied.
User avatar
Josh
Addict
Addict
Posts: 1183
Joined: Sat Feb 13, 2010 3:45 pm

Re: New compiler cli commands /IGNOREERROR and /CHECKALL

Post by Josh »

GPI wrote:When you use the /Preproccess command, there is a syntax-check on the file. Sometimes it makes sense to ignore the syntax. For example when you want to write a preproccessor. It is easier to use the "/preproccess" file, because all macros and compilerifs are expanded and you have only one big file.
+1

Same request here (the example wasn't the best :( )
sorry for my bad english
Post Reply