SyntaxQ
Usage
• SyntaxQ["string"] returns True if the string corresponds to syntactically correct input for a single Mathematica expression, and returns False otherwise.
Notes
• If SyntaxQ returns False, you can find the position of a syntax error using SyntaxLength. • New in Version 2.
|