Menu

#4086 /* comment */ :lisp does not work

None
open
nobody
3
2024-06-03
2023-01-24
No

It might be the case that you have something like

/* And now for something completely different: */
:lisp (print "BOOOM!!!")

in a .mac file you then want to batch. But, this produces

incorrect syntax: : is not a prefix operator
:l
^

and might make you think :lisp cannot be used in a file processed by batch.

It would be nice to have that fixed, or at least mentioned in the docs that you cannot use :lisp after a comment.

Related

Bugs: #3262

Discussion

  • Robert Dodier

    Robert Dodier - 2023-01-27
    • labels: :lisp, batch --> :lisp, batch, parser
     
  • Wolfgang Dautermann

    (Currently) one can not use :lisp after anything, not even a single space character. :lispmust be at the beginning of the line.
    For me that would be okay, if it would be documented.

     
  • Wolfgang Dautermann

    I mentioned that now in the documentation, see commit: [8816f0]

     

    Related

    Commit: [8816f0]

  • Kris Katterjohn

    Kris Katterjohn - 2024-06-03

    The :lisp construct has several other known limitations as well:

    https://sourceforge.net/p/maxima/mailman/message/37128965/

    If you're interested, the lisp_eval described in that post is now in Maxima under the name eval_string_lisp.

     

Log in to post a comment.