Star Micronics LS-5 TT Control operators, Type and attribute operators, increment to finish

Models: LS-5 TT LS-5 EX

1 182
Download 182 pages 62.94 Kb
Page 131
Image 131
Control operators

maxlength

Current capacity of diet

put

Associate kc}’ with value in dic~

store

Replace topmost definition of key

systemdict

System dictionary

userdict

Writable dictionary in local VM

where

Find dictionary in which key is defined

Control operators

Operator

Function

 

 

 

countexecstack

Count elements on exec stack

 

exec

Execute arbitrary object

 

execstack

Copy exec stack into arra}’

 

exit

Exit innermost active loop

 

for

Execute proc

with

values form start by

steps of

 

increment to finish

 

 

if

Execute proc

if bml

is true

 

ifelse

Execute procl

if bool

is true, proc~ if bool

is false

loop

Execute proc

an indefinite number of times

quit

Terminate interpreter

 

repeat

Execute proc

int times

 

start

Executed at interpreter startup

 

stop

Terminate stopped context

 

stopped

Establish context for catching stop

 

Type and attribute operators

Operator

Function

cvi

Convert to integer

cvlit

Make object be literal

cvn

Convert to name

cvr

Convert to real

Cvs

Convert to string

cvrs

Convert to string with radix

Cvx

Make object be executable

executeonly

Reduce access to execute-only

noaccess

Disallow any access

rcheck

Test read access

readonly

Reduce access to read-only

type

Return name identifying the type of any

wcheck

Test write access

xcheck

Test executable attribute

125

Page 131
Image 131
Star Micronics LS-5 TT, LS-5 EX Control operators, Type and attribute operators, increment to finish, if bool