Files
Basalt2/node_modules/shiki/samples/lisp.sample
Robert Jelic 31787b0e9b Fix
2025-02-16 18:04:24 +01:00

26 lines
538 B
Plaintext

;;; testing.lisp
;;; by Philip Fong
;;;
;;; Introductory comments are preceded by ";;;"
;;; Function headers are preceded by ";;"
;;; Inline comments are introduced by ";"
;;;
;;
;; Triple the value of a number
;;
(defun triple (X)
"Compute three times X." ; Inline comments can
(* 3 X)) ; be placed here.
;;
;; Negate the sign of a number
;;
(defun negate (X)
"Negate the value of X." ; This is a documentation string.
(- X))
;;; From https://www2.cs.sfu.ca/CourseCentral/310/pwfong/Lisp/1/tutorial1.html