| 1 | <h2>Comments and strings</h2> |
| 2 | <pre><code>%This makes a comment. |
| 3 | "While this is a string."</code></pre> |
| 4 | |
| 5 | <h2>Numbers</h2> |
| 6 | <pre><code>0 1.2 .3</code></pre> |
| 7 | |
| 8 | <h2>Operators</h2> |
| 9 | <pre><code>eps*256>=1<>true |
| 10 | ""&ditto |
| 11 | z1..z2--z3 |
| 12 | 5+-+4=3</code></pre> |
| 13 | |
| 14 | <h2>Types</h2> |
| 15 | <pre><code>path p[],q[]</code></pre> |
| 16 | |
| 17 | <h2>Concrete example</h2> |
| 18 | <pre><code>% From plain.mf |
| 19 | vardef penpos@#(expr b,d) = |
| 20 | (x@#r-x@#l,y@#r-y@#l)=(b,0) rotated d; |
| 21 | x@#=.5(x@#l+x@#r); y@#=.5(y@#l+y@#r) enddef;</code></pre> |