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