한국   대만   중국   일본 
PL/I - ?基百科,自由的百科全? 跳?到?容

PL/I

?基百科,自由的百科全?
PL/I
?程范型 ?程式 , 指令式 , ??化
設計者 IBM ? SHARE 英? SHARE (computing) ?言?展委??
實作者 IBM
?行?? 1964年 ,​60年前 ​( 1964
網站 www .ibm .com /products /pli-compiler-zos 編輯維基數據鏈接
衍生副語言
PL/M 英? PL/M , XPL 英? XPL , PL/P 英? PL/P , PL/C 英? PL/C , PL/S 英? IBM PL/S , PL/AS 英? PL/AS , PL/X 英? PL/X , PL/8 英? PL/8 , EPL [1]
?發語言
COBOL , Fortran , ALGOL
影響語言
SP/k 英? SP/k , B?言 , REXX , AS/400控制?言 英? AS/400 Control Language

PL/I / p ? l w ? n / ),源自 編程語言一? Programming Language One )的縮寫,一種 ?程式 指令式 程式語言 。由 IBM 公司在1960年代?明的第三代高??程?言,用于IBM的 MVS 英? MVS 、或 迪吉多 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
;

引用 [ ?? ]

  1. ^ R. A. Frieburghouse. The Multics PL/1 Compiler . Multicians.org. [ 2023-01-26 ] . (原始?容 存? 于2023-02-23).  
  2. ^ IBM Corporation. IBM Enterprise PL/I for z/OS, V5.3 . IBM. [ October 1, 2019] . ( 原始?容 存?于2020-07-28).  

外部連結 [ ?? ]