<aside> 📢

suffix notation (so stack-based)

</aside>

<aside> 📢

So everything is expression, (no stmt) and token sep is also line sep

e.g. newpath 1 1 moveto stroke

</aside>

Typical Template

%

newpath

stroke % or fill

showpage

%%EOF ← just a comment

Basic

<aside> 📢

i.e. literal is a must when one proc is required

</aside>

% comment

{expr } → proc/executable-array (when executed and when to end, all except the last stack item will be cleared)

expr1 expr2-takes-expr1 % e.g. /x 1 2 add 3 sub def → def(x, (1+2)-3)

Variable

In following: