Mathematica 9 is now available
 Documentation / Mathematica / Built-in Functions / Programming / String Manipulation  /
SyntaxQ

  • SyntaxQ[" string "] returns True if the string corresponds to syntactically correct input for a single Mathematica expression, and returns False otherwise.
  • If SyntaxQ returns False, you can find the position of a syntax error using SyntaxLength.
  • See the Mathematica book: Section 2.8.13.
  • See also: ToExpression, $SyntaxHandler, DelimiterFlashTime.


    Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
    THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
    SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.