MathGroup Archive 2001

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Syntax errors in autogenerated packages

  • To: mathgroup at
  • Subject: [mg31969] Re: [mg31929] Syntax errors in autogenerated packages
  • From: jmt <jmt at>
  • Date: Fri, 14 Dec 2001 16:52:56 -0500 (EST)
  • References: <>
  • Sender: owner-wri-mathgroup at

I encountered the same kind of problems in version 4.0, in the following 
situation :
a long long compound expression, in a cell marked as "initialization cell", 
intended to generate a ".m" file.

The solution I adopted finally is to enclose the compound expression with (), 
i.e. :


I might be wrong, but I suspect the parser to be disturbed when compound 
expressions are longer than a certain integer.


On Wednesday 12 December 2001 10:14, Alan Mason wrote:
> Hello,
> Has anyone else encountered syntax errors when using Needs[...] to read
> into Mathematica (v4.1, Windows) a package created automatically from a
> master notebook using AutoGeneratedPackage?  I know the basic mechanism is
> working, because the *.m file is saved to disk together with the master
> *.nb file and looks OK.  Unfortunately, when I read the *.m file into a new
> notebook using Needs[...] I get spurious error messages and the load is
> Aborted.  A typical error message is
> "a[" cannot be followed by "[1, 1, 2]]"
> although this is normal Mathematica syntax and causes no trouble in the
> notebook.
> When I  examine the *.m file, there's nothing obviously amiss.  I searched
> the MathGroup Archive for AutoGeneratedPackage and Needs but couldn't find
> anything relevant.
> Thanks for any help.
> Alan

  • Prev by Date: Re: restrictions on parameters
  • Next by Date: Re: numerical approximation to the diffusion equation in Mathematica?
  • Previous by thread: Syntax errors in autogenerated packages
  • Next by thread: Re: Syntax errors in autogenerated packages