$SyntaxHandler problem
- To: mathgroup at smc.vnet.net
- Subject: [mg113173] $SyntaxHandler problem
- From: Andrea <btlgs2000 at gmail.com>
- Date: Sat, 16 Oct 2010 13:12:41 -0400 (EDT)
I'm exploring functions in the tutorial/TheMainLoop section of Mathematica help but $SyntaxHandler doesn't seem to work. I copied and executed the following code from pag. 694 of "The Mathematica book" fourth edition: >>$SyntaxHandler = (Print[StringForm["Error at char `1` in `2`", #2, #1]]; $Failed) & then I wrote >> 3 + / obtaining >>Syntax::tsntxi: "3+/" is incomplete; more input is needed. >>Syntax::sntxi: Incomplete expression; more input is needed. but not my customized error string. Does anyone understand why? Thanks, Andrea