Changeset 37 in CGBLisp
- Timestamp:
- Feb 1, 2009, 11:21:16 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/infix-printer.lisp
r36 r37 11 11 12 12 (defpackage "INFIX-PRINTER" 13 (:use "INFIX" "COMMON-LISP") 13 (:use "COMMON-LISP" 14 "INFIX" ;for operator-lessp 15 ) 14 16 (:export infix-print)) 15 17 16 18 (in-package "INFIX-PRINTER") 17 18 19 19 20 20 (defun infix-print-separated-list (lst sep stream op print-level … … 29 29 (format stream "#")) 30 30 (t 31 (dolist (arg lst )31 (dolist (arg lst (infix-print arg stream op print-level)) 32 32 (setf true-sep sep) 33 33 (incf count) … … 39 39 (format stream "~a" true-sep)) 40 40 (when (and (numberp *print-length*) (> count *print-length*)) 41 (format stream "..." true-sep) 42 (return-from infix-print-separated-list)) 43 (infix-print arg stream op print-level))))) 41 (format stream "...")) 42 (return-from infix-print-separated-list))))) 44 43 45 44
Note:
See TracChangeset
for help on using the changeset viewer.