mirror of git://git.qorg11.net/kill9.git
Index code uses pandoc syntax highlighter instead of inline css
This commit is contained in:
parent
ba67c27767
commit
888623da7b
25
index.md
25
index.md
|
@ -63,21 +63,22 @@ typos" to a whole new article. Anyways, I hope it helps you.
|
|||
|
||||
![](/satania.png)
|
||||
|
||||
<pre style="color:#000000; font-size:10pt; font-family:'Courier New',monospace;"><span style="color:#000000">(</span><span style="color:#000000; font-weight:bold">defconstant</span> NUMBER_OF_PEOPLE <span style="color:#b07e00">10</span><span style="color:#000000">)</span>
|
||||
<span style="color:#000000">(</span><span style="color:#000000; font-weight:bold">defvar</span> <span style="color:#000000">*</span>i<span style="color:#000000">*</span> <span style="color:#b07e00">0</span><span style="color:#000000">)</span>
|
||||
~~~{.commonlisp}
|
||||
|
||||
<span style="color:#000000">(</span><span style="color:#000000; font-weight:bold">defun</span> <span style="color:#0057ae">rewrite</span> <span style="color:#000000">(</span><span style="color:#000000; font-weight:bold">n</span><span style="color:#000000">)</span> n<span style="color:#000000">)</span>
|
||||
<span style="color:#000000">(</span><span style="color:#000000; font-weight:bold">defun</span> <span style="color:#0057ae">memory</span> <span style="color:#000000">(</span><span style="color:#000000; font-weight:bold">n</span><span style="color:#000000">)</span> n<span style="color:#000000">)</span>
|
||||
|
||||
<span style="color:#000000">(</span><span style="color:#000000; font-weight:bold">format</span> t <span style="color:#bf0303">"Beginning system reset....."</span><span style="color:#000000">)</span>
|
||||
<span style="color:#000000">(</span><span style="color:#000000; font-weight:bold">if</span> <span style="color:#000000">(</span><span style="color:#000000; font-weight:bold">y-or-n-p</span> <span style="color:#bf0303">"ALL RESET?"</span><span style="color:#000000">)</span>
|
||||
<span style="color:#000000">(</span><span style="color:#000000; font-weight:bold">loop</span> while <span style="color:#000000">(<= *</span>i<span style="color:#000000">*</span> NUMBER_OF_PEOPLE<span style="color:#000000">)</span>
|
||||
(defconstant NUMBER_OF_PEOPLE 10)
|
||||
(defvar *i* 0)
|
||||
|
||||
(defun rewrite (n) n)
|
||||
(defun memory (n) n)
|
||||
|
||||
(format t "Beginning system reset.....")
|
||||
(if (y-or-n-p "ALL RESET?")
|
||||
(loop while (<= *i* NUMBER_OF_PEOPLE)
|
||||
do
|
||||
<span style="color:#000000">(</span><span style="color:#000000; font-weight:bold">rewrite</span> <span style="color:#000000">(</span><span style="color:#000000; font-weight:bold">memory</span> <span style="color:#000000">*</span>i<span style="color:#000000">*))</span>
|
||||
<span style="color:#000000">(</span><span style="color:#000000; font-weight:bold">defparameter</span> <span style="color:#000000">*</span>i<span style="color:#000000">* (</span><span style="color:#000000; font-weight:bold">1</span><span style="color:#000000">+ *</span>i<span style="color:#000000">*))))</span>
|
||||
|
||||
</pre>
|
||||
|
||||
(rewrite (memory *i*))
|
||||
(defparameter *i* (1+ *i*))))
|
||||
~~~
|
||||
|
||||
car car car car cdr cdr cdr cdr car cdr eval apply car cdr eval apply car cdr eval apply car cdr eval apply car cdr eval apply car cdr eval apply
|
||||
|
||||
|
|
Loading…
Reference in New Issue