<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Using Mark Kantrowitz old but very handy infix we noticed some peculiar pattern of errors where very basic expressions do not correctly convert infix expressions into prefix ones. The version I just tried was this one: <a href="http://www.cliki.net/infix">http://www.cliki.net/infix</a><div><br></div><div>in => pre, <font class="Apple-style-span" color="#f90a17">red for incorrect</font></div><div><br></div><div>"a + 1"  <span class="Apple-tab-span" style="white-space:pre">          </span>=> (+ A 1)</div><div>"s + 1"  <span class="Apple-tab-span" style="white-space:pre">           </span>=>  <font class="Apple-style-span" color="#f90a17">S+1</font></div><div>"s - 1"  <span class="Apple-tab-span" style="white-space: pre; ">             </span>=>  <font class="Apple-style-span" color="#f90a17">S-1</font></div><div>"s * 1"<span class="Apple-tab-span" style="white-space: pre; ">            </span>=> (* S 1)</div>"a + 1.5" <span class="Apple-tab-span" style="white-space:pre">     </span>=> (+ A 1.5)<br><div>"s + 1.5" <span class="Apple-tab-span" style="white-space:pre">               </span>=> (+ S 1.5)<br>"s + s"<span class="Apple-tab-span" style="white-space:pre">             </span>=> (+ S S)<br>"s + 1 + 1"<span class="Apple-tab-span" style="white-space:pre">   </span>=> <font class="Apple-style-span" color="#f90a17">(+ S+1 1)</font></div><div>"s + 1e1"<span class="Apple-tab-span" style="white-space: pre; ">     </span>=> (+ S 10.0)</div><div><br></div><div>Can somebody see a pattern here? AFAIK, the combination of the one letter variables names that are characters D, E, F, L, or S followed by "+" or "-" and then followed by an int does not work. </div><div><br></div><div>Is this a bug or some very special case that is supposed to work like this for no (to me) obvious reason? If this is bug, how could this have slipped through the net for so many years? I know many people have using this software. I tried various versions of infix.lisp. Are D, E, F, L, or S special tokens? If so, what do they mean, and where are they declared?</div><div><br></div><div>Confused,  Alex</div><div><br></div><div><br></div><div>---- test program spitting out the variable names not working ------</div><div><br></div><div>This should print nothing:</div><div><br></div><div><div><div>(map </div><div>   nil</div><div>   #'(lambda (Char)</div><div>       (when (symbolp (read-from-string (format nil "#i(~A + 1)" Char))) ;; should be a list, NOT a symbol!</div><div>         (print Char)))</div><div>   "ABCDEFGHIJKLMNOPQRSTUVWXYZ")</div></div></div><div><br></div><div>but prints:</div><div><br></div><div><div>#\D </div><div>#\E </div><div>#\F </div><div>#\L </div><div>#\S </div></div><div><br></div><div><br><br><div>Prof. Alexander Repenning<br><br>University of Colorado<br>Computer Science Department<br>Boulder, CO 80309-430<br><br>vCard: <a href="http://www.cs.colorado.edu/~ralex/AlexanderRepenning.vcf">http://www.cs.colorado.edu/~ralex/AlexanderRepenning.vcf</a><br><br></div><br></div></body></html>