---------------------------------------------------------------------

next up previous contents
Next: Composition of PAD and Up: PAD manual ( pad2ps Previous: Encapsulated PostScript(EPS)

---------------------------------------------------------------------

PADEL syntax

 

This chapter explains syntax of PADEL  (PAD Expression Language).

To draw PAD, you first write a PAD source file as a text file and then convert this file with pad2ps as described in chapter 2. The syntax of PADEL is very similar to that of C, so mastering PADEL is very easy if you know C syntax.

But there are some points you should pay attention. The most important point is that return code has special meaning. Therefore, if the following section tells you to make a new line, you should do so. This complexity is created as to enable writing any string freely. You can use space as you like. Especially spaces at head of lines are ignored, enabling to let you indent as you like.

The usage of string is more freely than other languages. You can use braces and parenthesis freely, and they need not to be paired. " and ' may also be used freely, and even one " is OK. Signs such as tex2html_wrap_inline2418 may be used quite as same as alphabets and numbers. Reason behind these loose restriction is my fundamental thought toward pad2ps series; that is, you should be able to use any characters in PADEL, thereby able to print any characters in PAD figure.

Therefore, you can write something like:

    if( (^_^;;; )
        m(_ _)m <=={ '"^\(-o-)

and still you can get PAD figure as it is.

tex2html_wrap2428

---------------------------------------------------------------------

Go back to pad2ps - automatic PAD drawer.
Go back to Seiichi Yoshida's Home Page.
Copyright(C) Seiichi Yoshida (comet@aerith.net). All rights reserved.
Sun Nov 10 01:36:04 JST 1996