spike-2 / Spike-2

Server specific Discord bot
https://spike-2.github.io
1 stars 0 forks source link

Add Slisp and removed Spike-lisp #59

Closed jwMaxwell closed 2 years ago

jwMaxwell commented 3 years ago

Related bugs/feature requests

Describe the changes

Created a whole new interpreter that functions as lisp in discord. This lisp will be a lot easier for users to learn and a lot more powerful that the previous implementation

Expected behavior

Screenshots

New npm dependencies

Testing Instructions

$slisp
```lisp
(print (cons 'a '(b c d)))

$slisp

(print (car '("car" "gets" "the" "first" "element")))

$slisp

(defun reverse (arr) 
  (cond ((null? arr) (arr))
    ('t (append (reverse (cdr arr)) (car arr)))))
(print (reverse '(1 2 3 4 5 6)))

**Additional context**
Hopefully you will be able to tell what the expected output should be for these. If you have any questions feel free to ask.
brandoningli commented 3 years ago

Resolves #53 with the removal of Spike Lisp