|Jeroen Demeyer on Sun, 13 Jul 2008 12:33:47 +0200|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|Detecting syntax errors?|
Hello,I have a certain automatic (i.e. non-interactive) gp-script and I would like to be able to detect syntax errors. In other words, I would like gp to abort on a syntax error. Using trap() doesn't seem to help catch syntax errors.
For example, the following gp script will just continue past the syntax error and print Pi:
trap(,print("\nERROR");quit()); SYNT@X ERROR Pi Is there a solution for this within the current gp? Cheers, Jeroen.