- Timestamp:
- 2016-05-31T10:52:13-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/5am-infix-print.lisp
r4007 r4008 62 62 (is (equal (infix-print-to-string '(sin x)) "SIN(X)")) 63 63 ;; TODO: Eliminate an extra level of parenthesis in expression below. This 64 ;; requires changing condition to parenthesize in INFIX-PRINT 64 ;; requires changing condition to parenthesize in INFIX-PRINT. The deeper 65 ;; complication is that the INFIX package defines the precedence of 66 ;; operators, and it defines token operators. Thus, consistency 67 ;; should be ensured so that the printed expression can be read back 68 ;; observing the precedence defined in the INFIX package 65 69 (is (equal (infix-print-to-string '(* 3 (sin x))) "3*(SIN(X))")) 66 70 )
Note:
See TracChangeset
for help on using the changeset viewer.