Loading AI tools
来自维基百科,自由的百科全书
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.