Skip to content

Commit 36cd465

Browse files
authored
Merge pull request #20 from ryukinix/refs
Parametrize *notes* and add source/docs references
2 parents 3a51c46 + 0981316 commit 36cd465

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

web/webapp.lisp

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#:defapp)
1313
(:export #:start
1414
#:stop
15+
#:*notes*
1516
#:*proposition*
1617
#:*port*)
1718
(:nicknames #:webapp))
@@ -20,6 +21,11 @@
2021

2122
(defvar *proposition* "P => Q" "Default proposition")
2223
(defvar *port* (find-port:find-port))
24+
(defvar *notes*
25+
'("My lexer doesn't works very well for parenthesis."
26+
"Please, don't be evil. Use less than 10 variables."
27+
"Yes, [+] it's a XOR. Mathematically: p ⊕ q."
28+
"(=> ->) and (<=> <->) are aliases."))
2329

2430
(defapp truth-table
2531
:prefix "/"
@@ -82,11 +88,15 @@
8288
(:pre (format nil "Operators: ~a" inference:*valid-operators*))
8389
(:p "Some notes: "
8490
(:ul
85-
(loop for note in '("My lexer doesn't works very well for parenthesis."
86-
"Please, don't be evil. Use less than 10 variables."
87-
"Yes, [+] it's a XOR. Mathematically: p ⊕ q."
88-
"(=> ->) and (<=> <->) are aliases.")
89-
do (:li (render note)))))))
91+
(loop for note in *notes*
92+
do (:li (render note)))))
93+
(:span "Source: "
94+
(:a :href "https://github.com/ryukinix/lisp-inference"
95+
"ryukinix/lisp-inference"))
96+
(:br)
97+
(:span "Documentation: "
98+
(:a :href
99+
"https://lerax.me/lisp-inference" "lerax.me/lisp-inference"))))
90100

91101
(defmethod render ((string string))
92102
(with-html

0 commit comments

Comments
 (0)