Remove ads
来自维基百科,自由的百科全书
Cadence SKILL是一种由Cadence公司设计的编程语言。它是LISP语言的一种分支。[1][2]
此条目需要扩充。 (2018年5月25日) |
SKILL最初是根据Franz Lisp发展而来,由加州大学柏克莱分校的Richard J. Fateman创造。[3]
注释可以像传统的Lisp分号分隔,
(car mylist) ; Comment from semicolon to end of the line
或者像C-样式注释
/* Comment */ car(mylist) /* Another comment */
;; C style
procedure (factorial(n)
if ( n <= 1 then
1
else
n * factorial(n-1)
)
)
;; LISP style
(procedure (factorial n)
(if (leqp n 1)
then 1
else (times n (factorial (difference n 1)))))
;; Hybrid style
(procedure (factorial n)
(if n <= 1
then 1
else n * (factorial n-1)))
Seamless Wikipedia browsing. On steroids.
Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.
Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.