Certain operators are hyphenated in the following tables because of the editorial limitation
only. These operators must not be hyphenated to be executed.
KPDL Page Description Operators
The following table summarizes the page description operators including all language
levels of KPDL. In the following table, operators having the higher language level are
indicated by
2 (level 2) or 3 (level 3)
.
Table 7.45. KPDL Page Description Operators (Sheet 1 of 11)
Preceding stack Operator Result Description
obj = Write object to standard output
=print
=string
obj == Write object to standard output
with syntax markings
2 << mark Push mark object on operand
stack
mark key1 value1
...keyn valuen
2 >> dict Create a dictionary containing
the specified key-value pair
[ mark Push mark on stack
mark obj0...obj (n-1) ] array End array starting at topmost
mark
num1 abs num2 Get absolute value of num1
num1 num2 add sum Add num1 and num2
array aload a0...a(n-1) array Load array elements into stack,
below array
string target anchorsearch tail target true or
string false
Test whether target is initial
substring of string
int/bool1 int/bool2 and int/bool3 Bitwise or logical AND
x y r ang1 ang2 arc Create counterclockwise arc
x y r ang1 ang2 arcn Create clockwise arc
x1 y1 x2 y2 r 2 arct Create line ending in arc
x1 y1 x2 y2 r arcto xt1 yt1 xt2 yt2 Create line ending in arc; return
arc coordinates
int array array Create array of null objects
ax ay string ashow Print string with adjusted
character spacing
obj0...obj (n-1) array astore array Pop elements from stack into
array
num den atan angle Get arctangent of num/den in
degrees
cx cy chr ax ay string awidthshow Print string with ashow and
widthshow effects
dict begin Push dict on dictionary stack
proc bind proc Replace operator names in proc
by values
int1 count bitshift int2 Shift int1 bitwise by count
(positive is left)
file bytesavailable int Get number of bytes left to read
in file
cachestatus bsize bmax
msize mmax
csize cmax
blimit
Get font cache information
num1 ceiling num2 Find least integer not less than
num1
string bool charpath Create character outline
clear Clear entire stack
cleardictstack Clear dictionary stack