Skip to content

Commit a165389

Browse files
committed
Use infix notation as default to main
1 parent 1d7796d commit a165389

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/truth-table.lisp

+2-2
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,10 @@ a tautology."
204204

205205

206206
(defun main ()
207-
(format t "Example of usage: (^ p q)~%Operators: ~a ~%" *valid-operators*)
207+
(format t "Example of usage: (p ^ q)~%Operators: ~a ~%" *valid-operators*)
208208
(handler-case (loop do (princ "TRUTH-TABLE> ")
209209
do (force-output)
210-
do (print-truth-table (read)))
210+
do (print-truth-table (infix-to-prefix (read))))
211211
(end-of-file () )
212212
#+sbcl (sb-sys:interactive-interrupt () nil))
213213

0 commit comments

Comments
 (0)