We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b2de50 commit 618fdb6Copy full SHA for 618fdb6
src/package.lisp
@@ -40,6 +40,7 @@
40
#:make-biconditional
41
#:*valid-operators*
42
#:prefix-to-infix
43
+ #:infix-to-prefix
44
#:print-truth-table ;; truth-table.lisp
45
#:eval-expression
46
#:equal-expression
t/test.lisp
@@ -102,4 +102,17 @@
102
'(p))
103
"EQUAL EXPRESSION 2")
104
105
+(diag "== Infix Parsing")
106
+
107
+(is (infix-to-prefix '(~ (p v q)))
108
+ '(~ (v p q)))
109
110
+(is (infix-to-prefix '(p => q))
111
+ '(=> p q))
112
113
+(is (infix-to-prefix '((p v q) <=> ((~ p) ^ (~ q))))
114
+ '(<=> (v p q)
115
+ (^ (~ p)
116
+ (~ q))))
117
118
(finalize)
0 commit comments