PL/I(),源自編程語言一号()的縮寫,一種过程式、指令式程式語言。由IBM公司在1960年代发明的第三代高级编程语言,用于IBM的、或迪吉多的VAX/VMS等操作系统中。
在系统软件,图像,仿真,文字处理,网络,商业软件等领域均可应用。
样例代码
Hello world程序
Hello2: proc options(main);
put list ('Hello, world!');
end Hello2;
查找字符串
/* Read in a line, which contains a string,
/ and then print every subsequent line that contains that string. /
find_strings: procedure options (main);
declare pattern character (100) varying;
declare line character (100) varying;
declare line_no fixed binary;
on endfile (sysin) stop;
get edit (pattern) (L);
line_no = 1;
do forever;
get edit (line) (L);
if index(line, pattern) > 0 then
put skip list (line_no, line);
line_no = line_no + 1;
end;
end find_strings;
引用
外部連結
- [https://web.archive.org/web/20021206103323/http://www.kednos.com/ Kednos PL/I] for HP OpenVMS VAX and Alpha
- [https://web.archive.org/web/20080622220338/http://www-306.ibm.com/software/awdtools/pli/ IBM PL/I] for IBM大型主機, and Windows
- [https://web.archive.org/web/20080304153614/http://www.users.bigpond.com/robin_v/resource.htm PL/I Resources]
- [https://archive.today/20060311035331/http://home.nycap.rr.com/pflass/pli.htm PL/I home]
- [https://web.archive.org/web/20080222150421/http://www.users.bigpond.com/robin_v/pli-n9.htm PL/I newsletter] April 2006
- [http://www.uni-muenster.de/ZIV/Mitarbeiter/EberhardSturm/PL1andC.html/ Power vs. Adventure - PL/I and C] A side-by-side comparison of PL/I and C。
- [http://pl1gcc.sourceforge.net/ PL/I for GCC] The pl1gcc project is an attempt to create a native PL/I compiler using the GNU Compiler Collection.
- [https://web.archive.org/web/20071210163809/http://home.nycap.rr.com/pflass/relate.htm Languages Related to PL/I]
- [https://web.archive.org/web/20071228062555/http://www.kednos.com/docs.html Kednos PL/I for OpenVMS Compiler Documentation]
- [http://www.cs.vu.nl/grammars/browsable/os-pli-v2r3/ PL/I grammar]
评论 (0)