⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 p2c.doc

📁 又一个Pascal 到C的转换器
💻 DOC
字号:
NAME    p2c	- Pascal to C translatorSYNOPSIS    p2c < foo.pas > foo.cDESCRIPTION    p2c converts many Pascal structures to their C equivalent.    The Pascal source can be in upper, lower, or mixed case; case is    preserved during translation.    Structures translated properly include simple assignment    and comparison statments, variable, type, and label declarations,     enumerated types, and procedure and function declarations and instances.    Structures NOT translated properly include sets, constant declarations,    variant records, files, subrange types, VAR parameters, CASE, FOR,     WITH, READ, and WRITE statements, and nested procedures.    The translator provides hints about untranslated regions by inserting    UPPERCASE messages enclosed with /* and */ into the translated source.    Error messages are of the form /***# Expected ... ***/.    Human massaging of the output will certainly be needed.    In fact, you may want to modify the keyword translation table    to better translate your particular variant of Pascal.IMPLEMENTATION    Written in C for Sun UNIX workstations; ought to compile on other     systems without change...    Some of the translation is done with a keyword table, but most of    the work is done by a recursive-descent parser.BUGS    Not well tested.    Error recovery is very poor- the first error in translation inside    the recursive-descent section will result in a very long stream of    error messages.    Some of the bread-and-butter structures of Pascal- like CASE and FOR-    are not translated properly, although it would be easy to extend    the parser to understand them.    I welcome bug reports, and invite anyone interested to implement    more PASCAL structures; I probably won't work on it much, because    I don't use Pascal these days.VERSION    This version by Daniel Kegel <dan@srs.UUCP> or <seismo!rochester!srs!dan>,    25 March 87.    Based on a program by James A Mullens  <jcm@ornl-msr.arpa>  29-Jan-87    which was in turn based on two nearly identical programs by Robert Heller      (1 Feb 1985) and Rick Walker <walker@hpl-opus.hp.COM> (8 Sep 1986)    which were reportedly derived from a similar program in the Feb 85 Byte    which did a C TO PASCAL conversion.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -