LISP uses parentheses. A lot of parentheses. Indeed, it was commonly (and very appropriately) said that LISP stands for, or should stand for, "Lots of Irritating Superfluous Parentheses". (It really stands for LISt Processing language.) A "Hello, World" program in LISP looks like this:
(princ "Hello, world!\n")
Yes, really. As you can see, LISP code also looks sort of like it was written by someone with a lisp.
Here's how to make your own functions in LISP:
(defun myfunc() (princ "This gets printed three times!\n")) (myfunc) (myfunc) (myfunc)
...And here's how to do user input/output in LISP:
(princ "Enter some stuff here:") (setq InputtedStuff(read)) (princ InputtedStuff)
Here's how to do math in LISP:
(princ "Enter first number to add:") (setq 1stvar(read)) (princ "Enter second number to add:") (setq 2ndvar(read)) (princ (+ 1stvar 2ndvar)) ;; An alternative to the above line might be: ;; ;; (setq a(+ 1stvar 2ndvar)) ;; (princ a) ;; ;; This would create a variable called a, which would be the sum of ;; and 2ndvar, then print a.
Well, that's enough LISPing for now. I may add more to this page if I actually ever learn anything else about LISP.
Back to the main page