Wolfram ResearchPRODUCTSPURCHASEFOR USERSCOMPANYOUR SITES
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.

Documentation / Mathematica / Built-in Functions / System Interface / Global Parameters /

$SyntaxHandler

FilledSmallSquare $SyntaxHandler is a global variable which, if set, is applied to any input string that is found to contain a syntax error.

FilledSmallSquare The arguments given to $SyntaxHandler are the complete input string and an integer specifying the character position at which the syntax error was detected.

FilledSmallSquare The first character in the string is taken to have position 1.

FilledSmallSquare Any string returned by $SyntaxHandler is used as a new version of the input string, and is fed to Mathematica. If the string does not end with a newline, Mathematica waits for input to complete the line.

FilledSmallSquare If $SyntaxHandler returns $Failed, input to Mathematica is abandoned if possible.

FilledSmallSquare Input is not assigned to InString[n] until after $SyntaxHandler is applied.

FilledSmallSquare $SyntaxHandler is not called for input from files obtained using Get.

FilledSmallSquare See Section 2.14.1.

FilledSmallSquare See also: SyntaxLength, SyntaxQ.

FilledSmallSquare New in Version 2.



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information


 © 2008 Wolfram Research, Inc.  Terms of Use  Privacy Policy | [ja] |
Sign up for our newsletter: