Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: Mathematica does not see "}"
Replies: 8   Last Post: Oct 30, 2013 12:12 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
John Fultz

Posts: 736
Registered: 12/7/04
Re: Mathematica does not see "}"
Posted: Oct 28, 2013 11:13 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

The front end is recognizing \042 as a quote character and matching it against the opening quote of the string, which then messes up what is being sent to the kernel.

You can avoid the problem completely if you replace all instances of \042 with \ (i.e., a string-escaped quote).

John Fultz
jfultz@wolfram.com
User Interface Group
Wolfram Research, Inc.



On Oct 27, 2013, at 11:40 PM, J=E1nos L=F6bb <janos@lobb.com> 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 ?
>






Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.