Data editing > Writing in the Quantum language > Dealing with possible syntax errors
 
Dealing with possible syntax errors
Quick reference
To treat possible syntax errors (that is, ones which Quantum can process even though they are not quite perfect) as fatal, type:
check_
at the start of the edit.
To flag, but ignore, possible syntax errors, type:
nocheck_
at the start of the edit. This is the default.
More information
When the Quantum compiler is checking a program and finds an error it flags the incorrect statement with an explanatory error message and continues with the next statement. If any of these errors are fatal (that is, Quantum cannot convert your statement into C code) the run stops.
Sometimes Quantum finds statements which are not quite correct, but which it can still convert into C. In these cases, the compiler flags the statement with the message ‘Possible syntax error’, and then continues as if nothing were wrong. You can choose to have this type of error treated as fatal and have the run terminated at the end of the compilation by entering the statement check_ (note the underscore at the end) at the start of your edit.
The statement nocheck_ causes possible syntax errors to be flagged but ignored, and this is the default.
See also
Writing in the Quantum language