close Warning: Can't synchronize with repository "(default)" (The repository directory has changed, you should resynchronize the repository with: trac-admin $ENV repository resync '(default)'). Look in the Trac log for more information.

Changeset 4412 for branches/f4grobner


Ignore:
Timestamp:
2016-06-07T21:00:08-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/infix-printer.lisp

    r4409 r4412  
    2323                                   &optional (alt-op nil) (alt-sep alt-op)
    2424                                   &aux
    25                                    (beg t)
    26                                    (count 0)
    27                                    true-sep)
     25                                     (beg t)
     26                                     (count 0)
     27                                     true-op
     28                                     true-sep)
    2829  "Print a list LST using SEP as separator, to stream STREAM. Every argument
    2930is printed usin OP as main operator. PRINT-LEVEL is used to control
     
    4445    (dolist (arg lst)
    4546      ;;(format t "Processing arg: ~S~%" arg)
    46       (setf true-sep sep)
     47      (setf true-op op
     48            true-sep sep)
     49
    4750      (incf count)
    48 
     51         
    4952      ;; This is to handle unary minus and unary division.
    5053      ;; Thus:
     
    6972        (return-from infix-print-separated-list (values)))
    7073     
    71       (infix-print arg stream op print-level))))
     74      (infix-print-to-stream arg stream true-op print-level))))
    7275  (values))
    7376
Note: See TracChangeset for help on using the changeset viewer.