Japanese version Home page |
Updated on March 15, 1997 |
|
Overview about pad2psPad2ps series (pad2ps, pad2tex, and pad2eps) are tools to convert a PAD source written as a text file to PostScript, LaTeX, and Encapsulated PostScript(EPS) file.PAD, which stands for Problem Analysis Diagram, is a way to illustrate the flow or structure of programs. PAD is similar to flowchart, but they are not quite the same. The flowchart is good for charting programs written in languages like BASIC, a language with GOTO statement. To chart structured programs, like ones written in C, however, PAD is much handy than flowchart. To draw PAD figures using this pad2ps, you first create PADEL (PAD Expression Language) file by using editor. Because the PADEL is very similar to C in syntax, most people has no trouble writting PADEL. Here is an example. /* pad2ps: title = Ackermann Function */ ack(m,n) { if(m = 0) return (n+1) else{ if(n = 0) return ack(m-1,1) else return ack(m-1,ack(m,n-1)) } }The PADEL program above is converted by pad2ps into the following PAD figure.
In addition, pad2ps can even translate the original programs sources directly into PAD figure. The current version can translate C, C++, Bourne shell, C shell, Jave, and AWK program sources to PAD figures. This pad2ps will be useful for those peoples who want to analyze structure of someone's programs, who are in trouble of finding mistakes, and who want to make your report better. pad2ps is a free software copyrighted by Seiichi Yoshida (comet@aerith.net) .
|
Current versionThe latest version of pad2ps is 3.11, released on Nov. 23, 1996.You can get the latest version of pad2ps from here.
|
About pad.styThe pad2ps package contains a style file pad.sty made by Mr. Satoshi Kuramochi (satoshi@ueda.info.waseda.ac.jp) . This is required when you make a PAD figure in LaTeX with pad2tex. The LaTeX codes made by pad2tex use macros defined in pad.sty.The version of pad.sty in the current pad2ps package is 1.1. To get more information on it in detail, please see also PAD style file for LaTeX . You can get the latest version there, too. pad.sty is a free software copyrighted by Mr. Satoshi Kuramochi.
|
Bugs and incompletenesspad2ps 3.1j has some bugs and incompleteness as follows. If you find some more else, please tell me.
|
To do in the futureSupporting other languages is our biggest problem now. It has two meanings.
In near future, pad2java, a module that outputs a Java program which draws the PAD, will be added. By using this program, you can put your PAD figures in your homepage. There is also a plan to support flowchart. This means, we are to create FLOWEL, a language to experss flowchart. You will create the text file under this FLOWEL syntax and named it .flow, and convert this file into PADEL by flow2pad. Finally, you will get PAD figures with pad2ps. The problem here is we also need a tool that would draw real flowchart from .flow file. The project is in progress, so stay tuned for a while. Seveal other plans exist, but all of these will not be implemented for a while.
|