Product Documentation
Cadence SKILL Development Reference
Product Version IC23.1, June 2023

pp

pp( 
s_functionName 
[ p_outputPort ] 
) 
=> nil

Description

Pretty prints the definition of a function. The function must not be read-protected. This is an nlambda function.

Each function definition is printed in a manner that allows it to be read back into SKILL. pp does not evaluate its first argument but does evaluate the second argument, if given.

Arguments

s_functionName

Name of the function to be pretty printed.

p_outputPort

Output port to print to. Default is poport.

Value Returned

nil

Pretty prints the function.

Examples

Defines the factorial function fac then pretty prints it to poport.

procedure(fac(n) if(n <= 1 1 n*fac(n-1)))=> fac
pp fac
procedure(fac(n)
if((n <= 1) 1
(n * fac(n - 1))
)
)
=> nil

Related Topics

Debug Functions

profile

printFunctions


Return to top
 ⠀
X