Skip to content

Commit 9b2de50

Browse files
committed
Add global parameters for truth and false string (T|F)
1 parent a165389 commit 9b2de50

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Diff for: src/truth-table.lisp

+5-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33

44
(in-package :lisp-inference)
55

6+
(defparameter *truth-string* "T")
7+
(defparameter *false-string* "F")
8+
69
(defun propositionp (symbol)
710
"Check if the given SYMBOL can be a proposition (letters)"
811
(and (atom symbol)
@@ -106,8 +109,8 @@
106109

107110
(defun pretty-values (v)
108111
(if (not (null v))
109-
"T"
110-
"F"))
112+
*truth-string*
113+
*false-string*))
111114

112115
(defun prepare-table (evaluated-cases)
113116
"Get the evaluated cases after EVAL-OPERATIONS

0 commit comments

Comments
 (0)