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

linereadstring

linereadstring( 
t_string 
) 
=> g_value / nil

Description

Executes lineread on a string and returns the first form read in. Anything after the first form is ignored.

Arguments

t_string

Input string.

Value Returned

g_value

The first form (line) read in from the argument string.

nil

No form is read (that is, the argument string is all spaces).

Examples

linereadstring "abc"                  
=> (abc)
linereadstring "f a b c"
=> (f a b c)
linereadstring "x + y"
=> ((x + y))

In the following example, only the first form is read in.

linereadstring "f a b c\n g 1 2 3"    
=> (f a b c)

Related Topics

evalstring

gets

instring

lineread


Return to top
 ⠀
X