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

ilgFindParenthesis

ilgFindParenthesis( 
x_column 
x_row 
[ ?level S_level ]
[ ?direction S_direction ]
[ ?tab w_tab ]
) 
=> l_coord / nil

Description

Returns the closest parenthesis in a file currently open in the SKILL IDE editor.

Arguments

x_column

Column coordinates of the specified location.

x_row

Row coordinates of the specified location.

?level S_level

Specifies whether to search the closest outer or inner parenthesis in a file. Default is outer.

?direction S_direction

Search direction (symbol). Valid values are forward and backward. Default is forward.

?tab w_tab

The window ID of the SKILL IDE editor window. Default is the current tab window.

Value Returned

l_coord

List containing the coordinates of the pair of parenthesis.

nil

No parenthesis pair was found.

Examples

If the first row in SKILL IDE tab is: "a ( b ((c)) ) d"

ilgFindParenthesis(1 1) 
=> nil
ilgFindParenthesis(1 1 ?level 'inner) 
=> ((3 1) (9 1))
ilgFindParenthesis(4 1 ?level 'outer) 
=> ((3 1) (9 1))
ilgFindParenthesis(10 1 ?level 'inner ?direction 'backward) 
=> ((3 1) (9 1))

Related Topics

SKILL IDE Functions


Return to top
 ⠀
X