Cadence SKILL是一种由Cadence公司设计的编程语言。它是LISP语言的一种分支。[1][2]

事实速览 编程范型, 实作者 ...
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
关闭

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

参考资料

Wikiwand - on

Seamless Wikipedia browsing. On steroids.