Product Documentation
Cadence SKILL Language Reference
Product Version IC23.1, November 2023

define

define( 
s_var 
g_expression 
) 
=> s_var
define( 
( 
s_var 
[ s_formalVar1 ... ] 
) 
g_body ... 
) 
=> s_var

Description

(SKILL++ mode only) Is a syntax form used to provide a definition for a global or local variable. The define syntax form has two variations.

Definitions are allowed only at the top-level of a program and at the beginning or within the body of following syntax forms: define (another call to define), lambda, let, letrec, defun, and letseq. If occurring within a body, the define's variable is local to the body.

    define( s_var 
lambda(( [sformalVar1 ...] ) g_body ...)

Examples

Related Topics

Function and Program Structure

let

letrec

letseq


Return to top
 ⠀
X