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



FilledSmallSquareSyntaxLength["string"] finds the number of characters starting at the beginning of a string that correspond to syntactically correct input for a single Mathematica expression.

FilledSmallSquareSyntaxLength effectively returns the position of a syntax error, if one exists.

FilledSmallSquare If SyntaxLength returns a position past the end of the string, it indicates that the string is syntactically correct as far as it goes, but needs to be continued in order to correspond to input for a complete Mathematica expression.

FilledSmallSquare See The Mathematica Book: Section 2.8.13.

FilledSmallSquare See also: SyntaxQ, $SyntaxHandler.

Further Examples