summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorBoutade <thegoofist@protonmail.com>2019-05-03 23:52:19 -0500
committerBoutade <thegoofist@protonmail.com>2019-05-03 23:52:19 -0500
commit7f445c67fe8e703d3c118d0e11a4d34d2e41c8ae (patch)
tree121555b863b67853c35a5d9f9190c0244f037e05 /examples
parent730189a11ee4a1d9734cd1ef191ce0534b72049e (diff)
tweaks
Diffstat (limited to 'examples')
-rw-r--r--examples/numbers.lisp5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/numbers.lisp b/examples/numbers.lisp
index 523ad2d..f6b1994 100644
--- a/examples/numbers.lisp
+++ b/examples/numbers.lisp
@@ -117,12 +117,15 @@
(defun natural-language-calc ()
+ (format t "Hello! And Welcome To the Super Practical Natural Language Calculator!~%~%")
+ (format t "Type quit to quit~%")
+ (format t "> ")
(loop named goof-calc
for line = (read-line)
do
(if (equal line "quit")
(return-from goof-calc "OK")
- (let ((parsed (parse line <calc< t)))
+ (let ((parsed (parse (string-downcase line) <calc< t)))
(if parsed
(format t "EQUALS ~R~%> " parsed)
(format t "No no no.. all wrong...~%> "))))))