Changeset 4418
- Timestamp:
- 2016-06-08T09:09:18-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/infix-printer.lisp
r4417 r4418 54 54 (incf count) 55 55 56 ;; Th is is to handle unary minus and unary division.56 ;; The following code handles unary minus 57 57 ;; Thus: 58 58 ;; (+ x (- y z)) --> X + Y - Z … … 63 63 (endp (cddr arg)) 64 64 (eq alt-op (car arg))) 65 (setf arg (cadr arg) 66 true-sep alt-sep) 65 (psetf arg (cadr arg) 66 true-op (car arg) 67 alt-sep nil) 68 ;;(format t "Arg changed: ~S, true-sep: ~S~%" arg true-sep) 67 69 ) 68 70 … … 79 81 (return-from infix-print-separated-list (values))) 80 82 81 (infix-print -to-streamarg stream true-op print-level))))83 (infix-print arg stream true-op print-level)))) 82 84 (values)) 83 85
Note:
See TracChangeset
for help on using the changeset viewer.