Changeset 4409 for branches/f4grobner
- Timestamp:
- 2016-06-07T19:51:22-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/infix-printer.lisp
r4408 r4409 47 47 (incf count) 48 48 49 ;; TODO: Determine why this is here and fix it. 50 ;; If uncommented, causes (+ x (- y z)) print as "X-Y" 51 ;; which is not correct 49 ;; This is to handle unary minus and unary division. 50 ;; Thus: 51 ;; (+ x (- y z)) --> X + Y - Z 52 ;; (+ x (- y)) --> X - Y 52 53 (when (and alt-op 53 54 (> count 1) … … 121 122 (cond ((eq (car expr) '+) '-) 122 123 ((eq (car expr) '-) '-) 124 ((eq (car expr) '*) '/) 125 ((eq (car expr) '/) '/) 123 126 (t nil)))) 124 127
Note:
See TracChangeset
for help on using the changeset viewer.