Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #16113 > unrolled thread
| Started by | János Löbb <janos@lobb.com> |
|---|---|
| First post | 2013-10-28 04:08 +0000 |
| Last post | 2013-10-29 03:03 +0000 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
Mathematica does not see "}" János Löbb <janos@lobb.com> - 2013-10-28 04:08 +0000
Re: Mathematica does not see "}" David Bailey <dave@removedbailey.co.uk> - 2013-10-29 03:03 +0000
| From | János Löbb <janos@lobb.com> |
|---|---|
| Date | 2013-10-28 04:08 +0000 |
| Subject | Mathematica does not see "}" |
| Message-ID | <l4knvg$4tu$1@smc.vnet.net> |
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 ?
[toc] | [next] | [standalone]
| From | David Bailey <dave@removedbailey.co.uk> |
|---|---|
| Date | 2013-10-29 03:03 +0000 |
| Message-ID | <l4n8ir$avp$1@smc.vnet.net> |
| In reply to | #16113 |
On 28/10/2013 04:08, 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 ?
>
I tested this on version 8. Pasting the expression into Mathematica, I
get the same strange result as you do, however, if I remove the
backslash character, and then re-type it, the problem goes away!
Clearly you have found a bug in the Mathematica frontend, but you can
use the above trick to circumvent it. Since a notebook is stored in
BoxForm, once fixed, the problem should remain fixed (I checked this by
saving and restoring the notebook).
David Bailey
http://www.dbaileyconsultancy.co.uk
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web