This is documentation for Mathematica 4, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

ToExpressionSyntaxLength

SyntaxQ

FilledSmallSquareSyntaxQ["string"] returns True if the string corresponds to syntactically correct input for a single Mathematica expression, and returns False otherwise.

FilledSmallSquare If SyntaxQ returns False, you can find the position of a syntax error using SyntaxLength.

FilledSmallSquare See The Mathematica Book: Section 2.8.13.

FilledSmallSquare See also: ToExpression, SyntaxLength, $SyntaxHandler, DelimiterFlashTime.

Further Examples

ToExpressionSyntaxLength