Cadence SKILL

維基百科,自由的百科全書
SKILL
編程範型函數式, OOP
實作者Cadence Design Systems
面市時間1990
型態系統動態
主要實作產品
Cadence Allegro, Cadence APD, Cadence Concept HDL and Cadence Virtuoso. Major LISP implementation — Cadence UniCAD.
衍生副語言
SKILL, SKILL++
啟發語言
Scheme, Common Lisp, CLOS

Cadence SKILL是一種由Cadence公司設計的程式語言。它是LISP語言的一種分支。[1][2]

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)))

參考資料[編輯]

  1. ^ 俞宏峰; 黃艷; 耿衛東; 潘雲鶴. 基于SKILL的EDA系统二次开发技术探讨. 計算機應用研究. 2001, 18 (8): 85–88 [2018-06-24]. (原始內容存檔於2018-06-24). 
  2. ^ 馬亮. 基于VC的Cadence二次开发. 電子科技. 2011, 24 (2): 98–101 [2018-06-24]. (原始內容存檔於2018-06-24). 
  3. ^ Re: SKILL stands for ...?. [2017-10-24]. (原始內容存檔於2011-09-28).