diff options
author | jkh <jkh@FreeBSD.org> | 1994-10-04 12:10:06 +0800 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1994-10-04 12:10:06 +0800 |
commit | 640b9a14a5a3369c5cfe2bb5e9b4fd11a2aebf5a (patch) | |
tree | 9fa4c1a17c272a38c9de7bb08a1cd1e99012341b /lang/p2c/pkg-descr | |
parent | 7a1aa762025983bdfeee8f1617e79cb97d7d9836 (diff) | |
download | freebsd-ports-gnome-640b9a14a5a3369c5cfe2bb5e9b4fd11a2aebf5a.tar.gz freebsd-ports-gnome-640b9a14a5a3369c5cfe2bb5e9b4fd11a2aebf5a.tar.zst freebsd-ports-gnome-640b9a14a5a3369c5cfe2bb5e9b4fd11a2aebf5a.zip |
p2c - Pascal to C translator. By Jean-Marc Zucconi.
Submitted by: jmz
Diffstat (limited to 'lang/p2c/pkg-descr')
-rw-r--r-- | lang/p2c/pkg-descr | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lang/p2c/pkg-descr b/lang/p2c/pkg-descr new file mode 100644 index 000000000000..17a91b234b78 --- /dev/null +++ b/lang/p2c/pkg-descr @@ -0,0 +1,21 @@ +P2c is a tool for translating Pascal programs into C. The input +consists of a set of source files in any of the following Pascal +dialects: HP Pascal, Turbo/UCSD Pascal, DEC VAX Pascal, Oregon +Software Pascal/2, Macintosh Programmer's Workshop Pascal, +Sun/Berkeley Pascal, Texas Instruments Pascal, Apollo Domain Pascal. +Modula-2 syntax is also supported. Output is a set of .c and .h files +that comprise an equivalent program in any of several dialects of +C. Output code may be kept machine- and dialectindependent, or it may +be targeted to a specific machine and compiler. Most reasonable Pascal +programs are converted into fully functional C which will compile and +run with no further modifications, although p2c sometimes chooses to +generate readable code at the expense of absolute generality. P2c +endeavors to insert notes and warning messages into the output code to +point out areas which may require human intervention. Output code is +arranged to be readable and efficient, and to make use of C idioms +wherever possible. The main goal of the translation is to produce C +files which are pleasant and "natural" enough to be acceptable as the +new source files for a program. In a pinch, p2c will also serve as an +ad hoc Pascal compiler. The p2cc script makes it easy to use p2c as a +compiler. + |