⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 edit.l

📁 A very small LISP implementation with several packages and demo programs.
💻 L
字号:
# 21jan07abu# (c) Software Lab. Alexander Burger# "*F" "*Lst" "*X" "*K"(de edit @   (let *Dbg NIL      (setq "*F" (tmp '"edit"))      (catch NIL         ("edit" (rest)) ) ) )(de "edit" ("Lst")   (let "N" 1      (loop         (out "*F"            (setq "*Lst"               (make                  (for "S" "Lst"                     ("loc" (printsp "S"))                     ("loc" (val "S"))                     (pretty (val "S"))                     (prinl)                     (for "X" (sort (getl "S"))                        ("loc" "X")                        (space 3)                        (if (atom "X")                           (println "X" T)                           (printsp (cdr "X"))                           (pretty (setq "X" (car "X")) -3)                           (cond                              ((type "X")                                 (prin "  # ")                                 (print @) )                              ((>= 799999 "X" 700000)                                 (prin "  # " (datStr "X")) ) )                           (prinl) ) )                     (prinl)                     (println '(********))                     (prinl) ) ) ) )         (call 'vim            "+set isk=@,33-34,36-38,42-90,92,94-95,97-125"            "+map K yw:call setline(line(\"$\"), \"(\" . line(\".\") . \" \" . @@ . \")\")^MZZ"            "+map Q GC(0)^[ZZ"            (pack "+" "N")            "*F" )         (apply ==== "*Lst")         (in "*F"            (while (and (setq "*X" (read)) (atom "*X"))               (def "*X" (read))               (until (= '(********) (setq "*K" (read)))                  (def "*X" "*K" (read)) ) ) )         (====)         (NIL "*X" (throw))         (T (=0 (car "*X")))         (setq "N" (car "*X"))         ("edit" (conc (cdr "*X") "Lst")) ) ) )(de "loc" ("X" "Lst")   (cond      ((memq "X" "Lst"))      ((and (str? "X") (not (memq "X" (made))))         (link "X") )      ((pair "X")         (push '"Lst" "X")         ("loc" (car "X") "Lst")         ("loc" (cdr "X") "Lst") ) ) )

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -