Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.



Re: Mathematica does not see "}"
Posted:
Oct 28, 2013 11:12 PM


On Mon, Oct 28, 2013 at 12:40:48AM 0400, János Löbb wrote: > Hi, > Any good idea why Mathematica 9.0.1 on MacOSX 10.8.5 is complaining about this line below? Sorry for the Input text, but plain text do not show it. > In the code I copied and pasted this line from another place, but that should not matter. or should ? > Looks to me that Mathematica is not seeing the "}" character on this line. Looks like it puts some invisible dirt there. I do not want to retype every character in the code. Copy and Paste should work. > > pLfmDerivationArray = > Table[Read[rawfp, Word, WordSeparators > {"\042 "}],{1}] > > > Syntax::bktmcp : "Expression \"\[NoBreak]{"\042 "}],{1}]\ > \[IndentingNewLine]\[NoBreak]\" has no closing \"\[NoBreak]"}"\ > \[NoBreak]\"\[NoBreak]""\[NoBreak]." > > Syntax::bktmcp : "Expression \"\[NoBreak]{"\042 "}],{1}]\ > \[IndentingNewLine]\[NoBreak]\" has no closing \"\[NoBreak]"}"\ > \[NoBreak]\"\[NoBreak]""\[NoBreak]." > > Syntax::sntxi : "Incomplete expression; more input is needed \ > \[NoBreak]""\[NoBreak]." > > > or > > > pLfmDerivationArray = > Table[Read[rawfp, Word, WordSeparators > {"\042 "}],{1}] > > Syntax::bktmcp : "Expression \"\[NoBreak]{"\042 "}],{1}]\[NoBreak]\" \ > has no closing \"\[NoBreak]"}"\[NoBreak]\"\[NoBreak]""\[NoBreak]." > > Syntax::bktmcp : "Expression \"\[NoBreak]{"\042 "}],{1}]\[NoBreak]\" \ > has no closing \"\[NoBreak]"}"\[NoBreak]\"\[NoBreak]""\[NoBreak]." > > Syntax::sntxi : "Incomplete expression; more input is needed \ > \[NoBreak]""\[NoBreak]." > > > Thanks ahead, > J=E1nos > P.S. Trying to catch up from version 5.2 :) Vince and roby thanks for the good tips for reading bits. UnsignedInteger24 mastered to avoid my attention. > > After some deleting and retyping the same, finally Mathematica was satisfied with this line: > > pLfmDerivationArray = > Table[Read[rawfp, Word, WordSeparators > {"\042"}], {1}] > > I do not see any difference. Is this a bug or what ?
There is a slightly differencethere's no space following 2 in the string. However, that is mostly besides the point. This appears to be what we call a 'parse error'. The frontend is getting the wrong operator precedence on paste and setting up an invalid strucutre in the notebook. When you edit the string, the frontend notices the error and rewrites the cell correctly, so it suddenly works.
I'd be very interested in seeing the copy original source, whether it is a notebook (just the cell would be fine) or some other document you copied from. In any event, this is definitely a bug.  Itai Seggev Mathematica Algorithms R&D 2173980700



