Website Summary Files Commits Branches @commit @diff @stats
path: root / homework / 0MI0800028 / commonlisp2html / example.lisp
diff options
context:
space:
mode:
Commitafd48a0fb4e8252f4e8c74c8442dd2a08d2787ca (patch)
Author
 Syndamia <kamen@syndamia.com>
2022-10-25 21:31:01 +0300
Committer
 Syndamia <kamen@syndamia.com>
2022-10-25 21:31:01 +0300
Filesd9400f53e5d3fd4db129594a71f726f976783648 /homework/0MI0800028/commonlisp2html/example.lisp
IPL-homework1.tar
IPL-homework1.tar.gz
IPL-homework1.zip
Parenta502d9eec7d768f757da5784aac7bd91ab10daf8 (diff)
Created a commonlisp to html lexer, with an example file and usage script homework1
1 files changed, 21 insertions, 0 deletions
-rw-r--r--homework/0MI0800028/commonlisp2html/example.lisp21
diff --git a/homework/0MI0800028/commonlisp2html/example.lisp b/homework/0MI0800028/commonlisp2html/example.lisp
new file mode 100644
index 0000000..cd7a577
--- /dev/null
+++ b/homework/0MI0800028/commonlisp2html/example.lisp
@@ -0,0 +1,21 @@
+(defvar *NAME* "John")
+(defvar *AGE* 23)
+(defvar *ABOUT* " T NIL cond decf block")
+
+;;; This is a stupid funciton
+(defun adult? ()
+ (>= *AGE* 18))
+
+(defun will-I-graduate? ()
+ NIL)
+
+(defun distance (p1 p2)
+ (sqrt (* p1 p1) (* p2 p2)))
+
+(defun bar (a b)
+ (if (and (> b a) (<= 10 b))
+ (format t "Valid")
+ (format t "Invalid")))
+
+(defun foo (&key ((:apple a)) ((:box b) 0) ((:charlie c) 0 c-supplied-p))
+ (list a b c c-supplied-p))