From: Leo B. <l_b...@us...> - 2014-04-23 19:13:33
|
Helmut Jarausch <jar...@ig...> writes: > On 04/23/2014 08:17:38 PM, Leo Butler wrote: >> Leo Butler <l_b...@us...> writes: >> >> >> As for your message: note that I simply load the lisp file attached to >> my previous message. I do not modify src/nparse.lisp and I do not >> recompile all of Maxima -- there is no need to do either to test the >> change. >> >> If you want to try the patched version out for a longer period and >> have it automatically loaded, you can add the line >> >> load("nparse-patch.lisp"); > > I've understood now, still it doesn't do what you made me expect. > >> Maxima 5.33.0 http://maxima.sourceforge.net > using Lisp SBCL 1.1.16 > Distributed under the GNU Public License. See the file COPYING. > Dedicated to the memory of William Schelter. > The function bug_report() provides bug reporting information. > (%i1) load("nparse-patch.lisp")$ > STYLE-WARNING: redefining MAXIMA::MREAD-SYNERR in DEFUN > > (%i2) load("Eulix_T5.mac"); > > /Src/Src/Math/Maxima/HJ/Eulix_T5.mac:221:incorrect syntax: !! is not a > prefix operator > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > this file name is an improvement, but 221 is still the byte offset, > not the line. You need to turn on line reporting, as my examples posted earlier showed. See below. > > Furthermore, if, .e.g, Eulix_T5.mac has a > load("Eulix.mac"); > which contains a syntax error, I still get "stdin" as filename and the > byte offset > as it was without your nparse-patch. Please post a simple example; I do not get this behaviour. Here is what I get when I turn on both flags that control syntax error reporting: (%i2) report_synerr_info : report_synerr_line : true$ (%i3) load("/tmp/err.mac"); /tmp/err2.mac:line 2:incorrect syntax: Y is not an infix operator \nx:1 y; ^ Here are the contents of the two files: err.mac: x:2* y; load("/tmp/err2.mac"); err2.mac: w : sin(1); x:1 y; > Thanks, > Helmut > > ------------------------------------------------------------------------------ > Start Your Social Network Today - Download eXo Platform > Build your Enterprise Intranet with eXo Platform Software > Java Based Open Source Intranet - Social, Extensible, Cloud Ready > Get Started Now And Turn Your Intranet Into A Collaboration Platform > http://p.sf.net/sfu/ExoPlatform -- Leo Butler <l_b...@us...> SDF Public Access UNIX System - http://sdf.lonestar.org |