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

📄 hanoi.l

📁 A very small LISP implementation with several packages and demo programs.
💻 L
字号:
# 10nov04abu# (c) Software Lab. Alexander Burger# Lisp(de hanoi (N)   (move N 'left 'center 'right) )(de move (N A B C)   (unless (=0 N)      (move (dec N) A C B)      (println 'Move 'disk 'from 'the A 'to 'the B 'pole)      (move (dec N) C B A) ) )# Pilog(be hanoi (@N)   (move @N left center right) )(be move (0 @ @ @) T)(be move (@N @A @B @C)   (@M - (-> @N) 1)   (move @M @A @C @B)   (@ println 'Move 'disk 'from 'the (-> @A) 'to 'the (-> @B) 'pole)   (move @M @C @B @A) )

⌨️ 快捷键说明

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