In article <bic3a2$nsg$2...@newsserv.ics.es.osaka-u.ac.jp> sai...@ist.osaka-u.ac.jp writes:
>> ãããããæ§é äœã®æŽå²çèµ·æºã£ãŠCOBOLã®ãã®ã ãšæããã§ããã
>> ïŒãã以åãååšããããšã埡åç¥ã®æ¹ã¯åŸ¡æ瀺ãã ããïŒ
>Cã®structã¯ãPDP-11ã®ã¢ã»ã³ãã©ã®ãFRAMEç䌌åœä»€ã
>èµ·æºã ãšæããŸããã
çŽæ¥ã®èµ·æºãã¿ãŒã²ããæ©ã®ã¢ã»ã³ãã©ã«æ±ããŸããâŠâŠ
ãããèšèªããé«çŽã¢ã»ã³ãã©ãã ããã£ãŠã
ããã ããèµ·æºã ãšæå®ããã®ã¯ã©ãã§ããããã
ãŸããã¢ã»ã³ãã©ã«ããããç䌌åœä»€ãæºåãããšããã®ãã
éå»ã®é«çŽèšèªããã®çºæ³ãšããå¯èœæ§ãããããã§ããâŠâŠ
ç§ã®æççãªç¥èãããã£ãšãŸãšããŠã¿ãŸããã
(1)algolã«ã¯æ§é äœã«çžåœããæŠå¿µã¯ç¡ãã
FORTRANã®COMMONãããã¯ã¯ã
ãã€ããªã¬ãã«ã§ã¯å€éšæ§é äœïŒïŒ£èšèªã®extern structïŒãš
åçã«æ±ãããããšãå€ããšæãããããçºæ³ã¯éãããã
å³ã¡ã1950幎代ã«éçºãããé«çŽèšèªã®ã埡äžå®¶ãã§ã
æ§é äœã«çžåœããæŠå¿µãããã®ã¯COBOLã ãã§ããã
(2)ããããCOBOLã§ã¯ãæ§é äœïŒstructureïŒããšããçšèªã¯çšããŠããªãã
ãã®çšèªãèŠæ Œã¬ãã«ã§åºãŠããã®ã¯ãPL/IïŒ1964幎ïŒã§ã¯ãªãããš
æããããã確ããªèšŒæ ã¯ä»ã®ãšããåŸãããŠããªãã
(3)PascalïŒ1968幎ïŒã§ã¯æ§é äœã«çžåœãããã®ããrecordåããšåŒãã§ããã
ãã®åŒç§°ã¯ãCOBOLã®æ§é äœããã¡ã€ã«å
¥åºåã«ããããrecordãã®æŠå¿µãš
å¯æ¥ã«çµã³ã€ããŠãããšããããæ¥ãŠããã®ã§ã¯ãªãããšã®æšæž¬ãæãç«ã€ãã
ãããŸã§æšæž¬ã«éããªãã
ã¡ãªã¿ã«ãèšèªã¯1972幎ã«éçºãããããšã«ãªã£ãŠããã
å身ãé¡ããšïŒ¢èšèªïŒ1970幎ïŒâBCPLïŒ1967幎ïŒâCPLïŒ1963幎ïŒãšãªãããã§ãã
ïŒCPLã®å身ã¯algolãŸã§è¡ãçããŠããŸãïŒ
COBOLã«ãããæ§é äœã®æŠå¿µããã¡ã€ã«å
¥åºåãšå¯æ¥ã«çµã³ã€ããŠãã
ãšããããšã¯ãåé»ã§ã
In article <bi73b2$u5m$1...@bluegill.lbm.go.jp> I write:
>COBOLã®æ§é äœã¯ããã¡ã€ã«å
¥åºåã®åäœããšããæ§æ Œã
>æ確ã«äž»åŒµããä»æ§ã«ãªã£ãŠããŸãã
>ãããããCOBOLã¯ãç£æ°ããŒãäžã®ããŒã¿ãèªã¿èŸŒãã§ãå å·¥ããŠã
>å¥ã®ç£æ°ããŒãã«æžãåºããåŠçãè¡ããšããçºæ³ã§èšèšãããŠããŠã
>å€æ°ã¯å
¥åºåããã€ã¹ã«ãªã³ã¯ããŠããã®ãããããŒãã§ããã
>ããã§ã¯ãªããäœæ¥çšäžæå€æ°ãã¯ç¶åæ±ãã§ãã
ãšèª¬æããéãã§ãããããå°ã詳ãã説æããŠã¿ãŸãã
COBOL以å€ã®ã»ãšãã©ã®é«çŽèšèªã®ãã¡ã€ã«å
¥åºåã§ã¯ã
äŸãã°åºåã®å Žåã«ã¯ãããã°ã©ã äžã§èšè¿°ãããå€æ°é åã®ããŒã¿ãã
ããã°ã©ã ã§ã¯çŽæ¥èŠããªããå
¥åºåãããã¡ãé åã«è€åããŠ
ïŒæžåŒã€ãåºåã®å Žåã«ã¯ãæžåŒã«åŸã£ãå€æçµæããããã¡é åã«æžèŸŒãã§ïŒã
ãã®ïŒçŽæ¥èŠããªãïŒããŒã¿ãããã€ã¹ã«åŒãæž¡ããšããæé ã ãšæããŸãã
ãšããããCOBOLã§ã¯ãå
¥åºåãããã¡ãã®äžã«ã
åœè©²å
¥åºåããã€ã¹å°çšã®ïŒããã°ã©ã ããèŠããïŒå€æ°ã確ä¿ãã
ãšããçºæ³ã«ãªã£ãŠããŸãã
ïŒå®éã«ã¯ãããã€ã¹ãšã®éã«ã¯ã³ã¯ãã·ã§ã³çœ®ãå®è£
ãå€ããšæããããã
èšèªã®ç¿åŸã«éããŠã¯ããã®ããšãæèããªãæ¹ã解ããããïŒ
æžåŒã€ãåºåã«ããŠããåºåãããã¡å
ã®å€æ°ããžã®
代å
¥ã«éããŠæžåŒã«åŸã£ãå€æãè¡ããããšããçºæ³ã§ãã
ïŒã€ãŸããããã¡å
ã®åå€æ°ã®å±æ§ã®ïŒã€ãšããŠâæžåŒâãããïŒ
ãããããšãå
¥åºååäœã§ãããã¬ã³ãŒããã¯ã
ãå
容ã¯å€çš®å€æ§ã ããçµïŒåç°ããã®ããâtupleâïŒãšããŠ
ãŸãšãŸã£ãŠããããŒã¿çŸ€ãã«ãªããŸãããã
ãã®äžèº«ã¯èªãããæ§é äœã®æ§æ Œãæããããšã«ãªããŸãã
ãã®ãããCOBOLã§ã¯ä»ã®æ§é äœã®èŠçŽ ã§ã¯ãªããäžçªäžã®ã¬ãã«ã®ãæ§é äœãšã
å
¥åºååäœã§ãããã¬ã³ãŒãããå矩èªã«ãªããã§ããã
ãªãããäžçªäžã®ã¬ãã«ãã«éããªããäžéã¬ãã«ãå«ããæ§é äœã®ããšã¯ã
COBOLã§ã¯éå£é
ç®ïŒgroup itemïŒãšåŒãã§ããŸãã
FORTRANã ãšããã€ããªå
¥åºåã«ããå
¥åºå䞊ã³ãããã£ãŠã
ã¬ã³ãŒãã¯åã
ã®å
¥åºåæã®äžŠã³ã§ãïŒåããšã«å®çŸ©ãããã
ãå¶ã
ãã®å Žã«å±
åãããšããã ãã®éå£ããšããæèŠã§ããã
COBOLã§ã¯ããããæåžžçãªç€ŸäŒéå£(??)ãã§ããããšãèŠæ±ããŠããããã§ãã
ãã®ç¹ãPL/Iã§ã¯æžåŒãªãã®READ/WRITEïŒRECORDå
¥åºåïŒã§ã¯
ã䞊ã³ãã§ã¯ãªããïŒåã®å€æ°ïŒïŒæ§é äœãæ³å®ïŒããåŒæ°ãšããã®ã«å¯ŸããŠã
æžåŒã€ãã®GET/PUTïŒSTREAMå
¥åºåïŒã§ã¯åŒæ°ã¯ã䞊ã³ããšäœ¿ãåããããŠããŸãã
èšèªã§ãfread/fwriteã§å
¥åºåãããããŒã¿ã¯ãïŒåã®åŒæ°ããªã®ã«å¯ŸããŠã
fscanf/fprintfã§ã¯ãäžå®æ°ã®åŒæ°ãã«ãªããšããã®ã¯äŒŒããããªçºæ³ã§ããã
ãã ãPL/Iã«ããŠãèšèªã«ããŠãã
å€æ°ãèšèªä»æ§äžã¯ãåœè©²ããã€ã¹å°çšãã§ã¯ãªããšãããšãããã
COBOLãšç°ãªããŸãã
æžç° åïŒ æ»è³çç«çµç¶æ¹åç©é€š
to...@lbm.go.jp
èšèªã®ãæ§é äœãã®èãæ¹ã®å
ã¯ãPL/1 ã ãšæããŸããæ£ç¢ºã«
ã¯ãPL/IãšãããPL/1 ã®ãµãã»ããã§ãMultics ã®èšè¿°ã«äœ¿ãã
ããã®ã
èšèªã® /**/ ã®ã³ã¡ã³ãããPL/1 ãšåãã§ãã
In article <bieihv$p5r$1...@bluegill.lbm.go.jp>
to...@lbm.go.jp writes:
> (2)ããããCOBOLã§ã¯ãæ§é äœïŒstructureïŒããšããçšèªã¯çšããŠããªãã
> ãã®çšèªãèŠæ Œã¬ãã«ã§åºãŠããã®ã¯ãPL/IïŒ1964幎ïŒã§ã¯ãªãããš
> æããããã確ããªèšŒæ ã¯ä»ã®ãšããåŸãããŠããªãã
PL/1 ã¯ãFortran ãš Cobol ãäŒãããŠïŒã€ã§èšè¿°ããããšããã
ãšã§äœãããèšèªãªã®ã§ãC ã®æ§é äœã®å
ã Cobol ãšããã®ã¯ã
ããæå³ã§ã¯æ£è§£ãªãã§ãããã
ãå
ã«å匷ããŠãã PL/1 ãèŠãæã«ã¯ãPL/1 ã¯ããã£ãæªã
æããããŸãããæ§é äœã®å®çŸ©ã§ããã¹ãã®ã¬ãã«ãçŸãã®ã«æ°å
ãæžããªããšãããªãã£ããšæããŸãã
ãæ°åãéãïŒãããããããããïŒã
ãç波倧åŠãé»åã»æ
å ±ããããããã
æ
å ±ããããšãããããŸãã
ãšããã§ãSubject:ã«ã¯ãPL/Mããšããã®ã§ããã
æ¬æã®æ¹ãæžã誀ããšèããŠè¯ãã§ããããïŒ
ïŒPL/Iã®ãµãã»ããã®PL/Mãšããã®ã¯èãèŠããããã®ã§âŠâŠïŒ
>ãå
ã«å匷ããŠãã PL/1 ãèŠãæã«ã¯ãPL/1 ã¯ããã£ãæªã
>æããããŸãããæ§é äœã®å®çŸ©ã§ããã¹ãã®ã¬ãã«ãçŸãã®ã«æ°å
>ãæžããªããšãããªãã£ããšæããŸãã
ãã®ä»æ§ã¯ãCOBOLãã®ãŸããŸã§ãã
æžç° åïŒ æ»è³çç«çµç¶æ¹åç©é€š
to...@lbm.go.jp
to...@lbm.go.jp wrote:
>>Cã®structã¯ãPDP-11ã®ã¢ã»ã³ãã©ã®ãFRAMEç䌌åœä»€ã
>>èµ·æºã ãšæããŸããã
> çŽæ¥ã®èµ·æºãã¿ãŒã²ããæ©ã®ã¢ã»ã³ãã©ã«æ±ããŸããâŠâŠ
> ãããèšèªããé«çŽã¢ã»ã³ãã©ãã ããã£ãŠã
> ããã ããèµ·æºã ãšæå®ããã®ã¯ã©ãã§ããããã
> ãŸããã¢ã»ã³ãã©ã«ããããç䌌åœä»€ãæºåãããšããã®ãã
> éå»ã®é«çŽèšèªããã®çºæ³ãšããå¯èœæ§ãããããã§ããâŠâŠ
æ§é äœ(ã®æŠå¿µ)ã®èµ·æºãFRAMEã ãšã¯ãã£ãŠãŸããããããŸã§ãCã®
structã®è©±ã§ãã
ä»ã®èšèªã«æ§é äœããã£ãããCã«ãstructæ©èœãã€ããããš
çºæ³ããã®ã§ã¯ãªããã¢ã»ã³ãã©ã§FRAMEæ©èœã䜿ã£ãŠããã®ã
容æã«ç§»è¡ã§ããããã«structãå°å
¥ããã®ã§ã¯ãªãã§ããã
ããã
éœè€æçŽãsai...@ist.osaka-u.ac.jp
<to...@lbm.go.jp> wrote in message news:bif0l6$u7v$1...@bluegill.lbm.go.jp...
> In article <YAS.03Au...@kirk.is.tsukuba.ac.jp> y...@is.tsukuba.ac.jp
writes:
> >èšèªã®ãæ§é äœãã®èãæ¹ã®å
ã¯ãPL/1 ã ãšæããŸããæ£ç¢ºã«
> >ã¯ãPL/IãšãããPL/1 ã®ãµãã»ããã§ãMultics ã®èšè¿°ã«äœ¿ãã
> >ããã®ã
>
> ãšããã§ãSubject:ã«ã¯ãPL/Mããšããã®ã§ããã
> æ¬æã®æ¹ãæžã誀ããšèããŠè¯ãã§ããããïŒ
> ïŒPL/Iã®ãµãã»ããã®PL/Mãšããã®ã¯èãèŠããããã®ã§âŠâŠïŒ
PL/1ãšPL/Iã¯åãã§ã¯ãªãã®ã§ãããããã¡ãã£ãšæ¢ããŠã¿ãŸãããïŒPL/Iã®äžäœã®
èšèªãèŠã€ãããŸããã§ãããPL/Iã®ãµãã»ããã§EPLãšããã®ã¯ïŒèŠã€ãããŸãã
ãã
ãšããã§ïŒãæ§é äœãã®èãæ¹ã®å
ãPL/Iãšããã®ã¯ïŒãã®éãããç¥ããŸãããã
ãšããã§
The Development of the C Languageã
Dennis M. Ritchie
Bell Labs/Lucent Technologies
Murray Hill, NJ 07974 USA
(http://www.cs.bell-labs.com/who/dmr/chist.html)
ã«ä»¥äžã®ãããªèšè¿°ããããŸããã
äžç¥
Embryonic C
äžç¥
These semantics represented an easy transition from B, and I experimented
with them for some months. Problems became evident whenãI tried to extend
the type notation, especially to add structured (record) types. Structures,
it seemed, should map in an intuitive way onto memory in the machine, but in
a structure containing an array, there was no good place to stash the
pointer containing the base of the array, nor anyãconvenient way to arrange
that it be initialized.
ãªãããŒã¯ïŒæ§é äœã®å®è£
ã«ããªãèŠåŽããããã§ããïŒãã®äžŠã³ã«ã€ããŠã¯çŽæç
ã«ã¡ã¢ãªã«å²ãä»ããã¹ããšèããŠããããã§ããïŒçŽæçãšã¯ïŒäžŠã³é ã«çŽ çŽã«å²
ãä»ãããšããæå³ã§ãããããïŒ
äžç¥
ãŸãïŒïŒ£ã«ãããåã®ãã¶ã€ã³ïŒæ§é äœãå«ãïŒã«ã€ããŠã¯ïŒ
The scheme of type composition adopted by C owes considerable debt to Algol
68, although it did not, perhaps, emerge in a form that Algol's adherents
would approve of. The central notion I captured from Algol was a type
structure based on atomic types (including structures), composed into
arrays, pointers (references), and functions (procedures). Algol 68's
concept of unions and casts also had an influence that appeared later.
Algol 68ã«è² ããšãããå€ããšèšã£ãŠããããã§ãã
--
******************************
keizi kounoike
******************************
> PL/1ãšPL/Iã¯åãã§ã¯ãªãã®ã§ãããããã¡ãã£ãšæ¢ããŠã¿ãŸãããïŒPL/Iã®äžäœã®
> èšèªãèŠã€ãããŸããã§ãããPL/Iã®ãµãã»ããã§EPLãšããã®ã¯ïŒèŠã€ãããŸãã
> ãã
http://www.net.intap.or.jp/oiia/cont1/p0302.html{0recid=10112.html
ã«ãããš
ããPL/I(åæã«ã¯PL/1ãšè¡šèšãããŠããããçŸåšã¯PL/Iãæ£ãã)
ããã§ãã
--
--
Akihito Nakamura( Chun )
In article <bif0l6$u7v$1...@bluegill.lbm.go.jp>
to...@lbm.go.jp writes:
> ãšããã§ãSubject:ã«ã¯ãPL/Mããšããã®ã§ããã
> æ¬æã®æ¹ãæžã誀ããšèããŠè¯ãã§ããããïŒ
ãã¿ãŸãããééããŸãããMultics ã ãã M ããªããšã
Subject: ãæžãæã«æã£ãŠããã®ã§ãããæ¬ææžãæã«ã¯ãPL/1
ã§ããããšæã£ãŠã
http://www.multicians.org/pl1-raf.html
------------------------------------------------------------
The language
The Multics PL/1 language is the language defined by the IBM
"PL/1 Language Specifications" dated March 1968. At the time
this paper was written most language features were
implemented by the compiler but the run time library did not
include support for input and output, as well as several
lesser features. Since the multi-tasking primitives provided
by the Multics operating system were not well suited to PL/1
tasking, PL/1 tasking was not implemented. Inter-process
communication (Multics tasking) may be performed through
calls to operating system facilities.
------------------------------------------------------------
> >ãå
ã«å匷ããŠãã PL/1 ãèŠãæã«ã¯ãPL/1 ã¯ããã£ãæªã
> >æããããŸãããæ§é äœã®å®çŸ©ã§ããã¹ãã®ã¬ãã«ãçŸãã®ã«æ°å
> >ãæžããªããšãããªãã£ããšæããŸãã
> ãã®ä»æ§ã¯ãCOBOLãã®ãŸããŸã§ãã
ããã§ããããCobol ã¯ãæžããããšããªãã®ã§ã
http://www.users.bigpond.com/robin_v/c2pli.htm ããæ§é äœã®
宣èšã®ä»æ¹ã®å¯Ÿæ¯ããã£ãã®ã§æãåºããŠãããŸãã
Cèšèª:
struct S {
int p;
float q;
};
PL/1:
DECLARE 1 S,
3 p FIXED BINARY,
3 q FLOAT DECIMAL;
Cèšèª(ããããã£ãŒã«ã)
struct T {
unsigned int u : 1;
unsigned int v : 2;
unsigned int w : 0;
};
Note that a zero field is filled out to a byte boundary as shown.
PL/1:
DECLARE 1 T,
3 u BIT (1) UNALIGNED,
3 v BIT (2) UNALIGNED,
3 w BIT (5) UNALIGNED;
éå»ã®è©±ããããã§ãããæªæ¥ã®è©±ããã£ãšãããã§ããã
çŸåšã®ïŒ£ã®èŠæ Œããæªæ¥æ°žå«å€ãããã§ããªããã
> ãªãããŒã¯ïŒæ§é äœã®å®è£
ã«ããªãèŠåŽããããã§ããïŒãã®äžŠã³ã«ã€ããŠã¯çŽæç
> ã«ã¡ã¢ãªã«å²ãä»ããã¹ããšèããŠããããã§ããïŒçŽæçãšã¯ïŒäžŠã³é ã«çŽ çŽã«å²
> ãä»ãããšããæå³ã§ãããããïŒ
ãã®ããäžã®ãã£ã¬ã¯ããªãšã³ããªããã¡ã€ã«ããèªãäŸã§ïŒ
I wanted the structure not merely to characterize an abstract object
but also to describe a collection of bits that might be read from a directory.
ãšãããšãããèå³æ·±ãã§ããïŒãã£ã±ãïŒåãªãæœè±¡çãªã¿ãã«ã®è¡šçŸã§ãª
ãïŒã¡ã¢ãªäžïŒãã¡ã€ã«äžã®ããããã¿ãŒã³ããã®ãŸãŸèšè¿°ã§ãããã®ã«ãã
ãã£ããã§ããïŒ
åç°æŠåž
In article <bihokq$o3q$1...@nn-tk102.ocn.ad.jp> ch...@bekkoame.ne.jp writes:
>> PL/1ãšPL/Iã¯åãã§ã¯ãªãã®ã§ãããããã¡ãã£ãšæ¢ããŠã¿ãŸãããïŒPL/Iã®äžäœã®
>> èšèªãèŠã€ãããŸããã§ãããPL/Iã®ãµãã»ããã§EPLãšããã®ã¯ïŒèŠã€ãããŸãã
>> ãã
>http://www.net.intap.or.jp/oiia/cont1/p0302.html{0recid=10112.html
>ã«ãããš
>ããPL/I(åæã«ã¯PL/1ãšè¡šèšãããŠããããçŸåšã¯PL/Iãæ£ãã)
>ããã§ãã
ã§ããIãããoneããšèªããã§ãããã
ãIBMã®Iãã ãšãã話ããããã§ããã
èªã¿æ¹ãããããšãããŒãæ°åã®å£±ããªã®ããªãïŒ
ãIBM as No.1ãã£ãŠããšïŒ
In article <bihqr1$1ga$1...@dnknews.denken.or.jp> take...@criepi.denken.or.jp writes:
> >PL/1 ã¯ãFortran ãš Cobol ãäŒãããŠïŒã€ã§èšè¿°ããããšããã
> >ãšã§äœãããèšèªãªã®ã§ãC ã®æ§é äœã®å
ã Cobol ãšããã®ã¯ã
> >ããæå³ã§ã¯æ£è§£ãªãã§ãããã
>PL/Iã¯FORTRANãšCOBOLãšALGOLãäžã€ã«ãããšã©ããã§èãããããªã
>åºæã¯ããæ¶ããŠããªãã
æãè¡åäœã§ã¯ãªãã;ãã§åºåããšããçºæ³ã¯ãééãç¡ãalgolèµ·æºã§ããã
ãã ãalgolã®ã;ããåé¢èšå·ïŒdelimiterïŒãªã®ãã
PL/Iã§ã¯çµç«¯èšå·ïŒterminatorïŒã«å€ãã¡ãã£ãã
ã€ãã§ã«ãalgolã§ã¯ãæãšããåäœããè¶
è¶ããèšå·ãã ã£ã
ãbeginãããendããªã©ããFORTRANçãªçºæ³ã®ãå¶åŸ¡æãã«å€ãã¡ãããŸããã
ãBEGIN;ããEND;ããšãã;ããä»ããŠãããã§ïŒã€ã®ãæããªãã§ããã
ããã¯ãè¡ãšããåäœã«ææ³äžã®æå³ãããFORTRANãCOBOLãšã®
芪åæ§ãæ±ããçµæãªãã ãšæããŸãã
ïŒPL/Iã®ãBEGIN;ãã¯ã€ã³ã©ã€ã³ã®ãæç¶ãããšãèšãããããªåŒ·ãåºåããªã®ã§ã
ïŒalgolã®ãbeginãã¯ãDO;ãã«çžåœãããšèããæ¹ãæ£ç¢ºãããããŸããã
ã;ããçµç«¯èšå·ã§ãããšããç¹åŸŽã¯ïŒ£èšèªã«ãåãç¶ãããŠããŸããã
å®éãPascalãå匷ããŠãããšãã«ã€ã©ã€ã©ããããšãªãã§ããã
ãããã°ã©ã ã®å
¥ãåæ§é ã段äžãã§è¡šçŸãããããããªã©ã
ïŒæ¬¡å
çãªåºããã®äžã§ããã°ã©ã ãç解ããŠèªã¿æžãããããšãããšã
ã;ããalgolåŒã«åé¢èšå·ã§ãããšããå®çŸ©ãšã¯çžå®¹ããªãã®ã§ãã
åé¢èšå·ã®ã;ãã¯ããããŸã§ããã°ã©ã ãïŒæ¬¡å
çã«ç解ããããšã
åæã«ããæµåã ãšèšããïŒæ¬¡å
çã«ããã°ã©ã ãæžãçŸå®ã«ã¯
ããããªããã®ã ãšæã£ãŠããŸãã
ãã®ç¹ãèšèªã¯PL/Iã®ç¹åŸŽãè¯ãå
·åã«åãç¶ãã ãšèšãããšæããŸãã
æžç° åïŒ æ»è³çç«çµç¶æ¹åç©é€š
to...@lbm.go.jp
In article <bii43j$2m4$1...@bluegill.lbm.go.jp>, to...@lbm.go.jp writes
> PL/Mãšããã®ã¯CP/Mã®èšè¿°èšèªã§ãMulticsãšã¯é¢ä¿ç¡ãããã§ãã
> http://contest.thinkquest.gr.jp/tqj1999/20204/bbs/f/freetalk/10/
PL/M ã¯ã€ã³ãã«ã®ãã€ã¯ãããã»ããµçšã®èšèªã§ãã
CP/M 80ãPL/Mã§ããããŠããã£ãŠã®ã¯åã¯ä¿¡ããããªãã§ãã
CP/M ã¯ããã¶ããã¢ã»ã³ãã©ã§æžãããŠãããã ãããšæãã
CP/M 86 ãšã 68k ã¯éãããç¥ããŸãããã
äžåã ã䜿ã£ãããšãããã ãã©ããããèšèªã ãšæã£ãã
ååž°ãã ããšãã€ãŸããªãå¶çŽããã£ããããªæ°ããããã
> èªã¿æ¹ãããããšãããŒãæ°åã®å£±ããªã®ããªãïŒ
> ãIBM as No.1ãã£ãŠããšïŒ
Programming Language 1 ã§ãããã1 ã€ã§ããŸãããã£ãŠãã
æå³ã ã£ããããPL ã ãã§ã¯å°ãªããšæã£ããã ãããªã
> ãã ãalgolã®ã;ããåé¢èšå·ïŒdelimiterïŒãªã®ãã
> PL/Iã§ã¯çµç«¯èšå·ïŒterminatorïŒã«å€ãã¡ãã£ãã
declare ã de ãšãæžãã®ãæ®éã«ãªã£ãæç¹ã§çµã£ãããããªã
ããšæããŸãã
> ã;ããçµç«¯èšå·ã§ãããšããç¹åŸŽã¯ïŒ£èšèªã«ãåãç¶ãããŠããŸããã
> å®éãPascalãå匷ããŠãããšãã«ã€ã©ã€ã©ããããšãªãã§ããã
> ãããã°ã©ã ã®å
¥ãåæ§é ã段äžãã§è¡šçŸãããããããªã©ã
> ïŒæ¬¡å
çãªåºããã®äžã§ããã°ã©ã ãç解ããŠèªã¿æžãããããšãããšã
> ã;ããalgolåŒã«åé¢èšå·ã§ãããšããå®çŸ©ãšã¯çžå®¹ããªãã®ã§ãã
C ã®å®çšçã§ãããã
---
Shinji KONO @ Information Engineering, University of the Ryukyus,
PRESTO, Japan Science and Technology Corporation
æ²³éçæ²» @ çç倧åŠå·¥åŠéšæ
å ±å·¥åŠç§,
ç§åŠæè¡æ¯èäºæ¥å£ããããç 究21(æ©èœãšæ§æ)
ko...@ie.u-ryukyu.ac.jp (Shinji KONO) writes:
> In article <bii43j$2m4$1...@bluegill.lbm.go.jp>, to...@lbm.go.jp writes
>> PL/Mãšããã®ã¯CP/Mã®èšè¿°èšèªã§ãMulticsãšã¯é¢ä¿ç¡ãããã§ãã
>> http://contest.thinkquest.gr.jp/tqj1999/20204/bbs/f/freetalk/10/
>
> PL/M ã¯ã€ã³ãã«ã®ãã€ã¯ãããã»ããµçšã®èšèªã§ãã
>
> CP/M 80ãPL/Mã§ããããŠããã£ãŠã®ã¯åã¯ä¿¡ããããªãã§ãã
> CP/M ã¯ããã¶ããã¢ã»ã³ãã©ã§æžãããŠãããã ãããšæãã
CP/Mã®æ¬äœã§ããBDOSã¯èªãã éãæããã«ã¢ã»ã³ãã©ã§æžãããã³ãŒãã§ãã
ã³ãã³ãããã»ããµã®CCPãã¢ã»ã³ãã©ã
BIOSã®ãµã³ãã«ãã¢ã»ã³ãã©æäŸã
ãã©ã³ãžã§ã³ãã³ãã³ã(å€éšã³ãã³ã)ã®ããã€ããPL/Mã§æžãããŠããããã§ãã
SUBMITãšããã²ãšã€äœã(STATã ã£ãã)ãèªã¿ãŸããããã¬ãžã¹ã¿ãç¹åŸŽçãª
䜿ããæ¹ãããŠãããäœããã®ã³ã³ãã€ã©èšèª(ããããPL/M)ã§æžãããŠããããšã
èªã¿åããŸãã
XSUBã¯å€éšã³ãã³ãã§ãããåžžé§ãããããã¢ã»ã³ãã©ã§æžãããŠãŸããã
PL/Mãšã¯å¥ã«ãCP/Mçšã®PL/Iã³ã³ãã€ã©ã¯ãããŸããããã¬ãã«Fã ãGã ãã®
ãµãã»ãããšããããšã§ãããã
--
oo
In article <bii43j$2m4$1...@bluegill.lbm.go.jp> I write:
>>PL/Iã¯FORTRANãšCOBOLãšALGOLãäžã€ã«ãããšã©ããã§èãããããªã
>>åºæã¯ããæ¶ããŠããªãã
>æãè¡åäœã§ã¯ãªãã;ãã§åºåããšããçºæ³ã¯ãééãç¡ãalgolèµ·æºã§ããã
>ãã ãalgolã®ã;ããåé¢èšå·ïŒdelimiterïŒãªã®ãã
>PL/Iã§ã¯çµç«¯èšå·ïŒterminatorïŒã«å€ãã¡ãã£ãã
>ã;ããçµç«¯èšå·ã§ãããšããç¹åŸŽã¯ïŒ£èšèªã«ãåãç¶ãããŠããŸããã
ãåé¢èšå·ãããdelimiterããšèš³ããŸãããã
ãseparatorãã®æ¹ãè¯ãããã§ããã
Pascalã®éçºè
ã§ããWirthãJensenãš1974幎ã«å
±èã§åºããæç§æž
ïŒåç°è³¢äžèš³ïŒå¹é¢šé€š1981ïŒã§ã¯ã
ã;ãã¯ãstatement separatorãã§ãããšããŠã
ãPL/Iã®ãããªstatement terminatorã§ã¯ãªãããšãŸã§å¿µæŒãããŠãããŸãã
æžç° åïŒ æ»è³çç«çµç¶æ¹åç©é€š
to...@lbm.go.jp
æžç° åïŒ æ»è³çç«çµç¶æ¹åç©é€š
to...@lbm.go.jp
to...@lbm.go.jpããã¯æžããŸããã
> ãšããããã
> http://www.lbm.go.jp/toda/comp/struct.html
> ã®ãããªåœ¢ã«ãŸãšããŠã¿ãŸããã
é¢çœãã§ããFRAMEç䌌åœä»€ãèµ·æºãšããã®ã¯ã¡ãã£ãšæµæãããªãã
ã¡ãªã¿ã«ä»ã®ã¢ã»ã³ãã©ã§ãã¡ã¢ãªã¯å²ãåœãŠãã«ãªãã»ããæ¯ãã ã
ã®ç䌌åœä»€ã¯ãããŸãããã360ç³»ãšãã«ããã©ã£ã¡ããšãããšãåœæ
ã¢ã»ã³ããªèšèªã³ãŒãã§æ®éã«äœ¿ãããŠãããã€ã³ãã¯ã¹+ãªãã»ããã
ã¿ãããªã¢ãã¬ã·ã³ã°ã«ãã®ãŸãŸå¯Ÿå¿ã¥ãããããããªèšèªã¡ã«ããºã
ãšããŠãšãâŠ
ããããèšèªã¡ã«ããºã ãšãããªãCã®ç¥å
BCPLã芪æBLISSã調ã¹ã
å¿
èŠã¯ããããããªãã§ããããã
ãšããã€ã€èª¿ã¹ãŠããªãç§ã ä¹
é
In article <binp21$1...@utogw.gssm.otsuka.tsukuba.ac.jp> ku...@gssm.otsuka.tsukuba.ac.jp writes:
>> ãšããããã
>> http://www.lbm.go.jp/toda/comp/struct.html
>> ã®ãããªåœ¢ã«ãŸãšããŠã¿ãŸããã
> é¢çœãã§ããFRAMEç䌌åœä»€ãèµ·æºãšããã®ã¯ã¡ãã£ãšæµæãããªãã
>ã¡ãªã¿ã«ä»ã®ã¢ã»ã³ãã©ã§ãã¡ã¢ãªã¯å²ãåœãŠãã«ãªãã»ããæ¯ãã ã
>ã®ç䌌åœä»€ã¯ãããŸãããã360ç³»ãšãã«ãã
ãªãã»ã©ã
ãšãããããæå®ãé¿ããè¡šçŸã«æ¹ããŠã¿ãŸããã
ä»ã«ããèªåã§èªã¿çŽããŠã¿ãŠæ°ã«ãªã£ãéšåããã£ãšããã£ãŠãããŸãã
> ããããèšèªã¡ã«ããºã ãšãããªãCã®ç¥å
BCPLã芪æBLISSã調ã¹ã
>å¿
èŠã¯ããããããªãã§ããããã
ã§ããããããšãalgol 68ãèŠãŠãããããã ãã©ã
æç§æžæ¢ãããå§ããã°ãªããªãç¶æ³ã§ãã
ãŸããã®ãã¡äœãšãããŠããã¡ããšå匷ããæ©äŒãäœã£ãŠã
ããã«åºã¥ããŠèªåã®è²¬ä»»ã§æ¹èšããããšãç®æããŸããã
æ¢ã«åŸ¡åç¥ã®æ¹ãã埡ææãããã ããã°ã
ãšããããåœé¢ã®æ¹èšã¯ã§ããã®ã§ããããããé¡ãããŸãã
ïŒå°å·ç©ãšéã£ãŠãééç¡ãæ¹èšã§ããã^_^;
æžç° åïŒ æ»è³çç«çµç¶æ¹åç©é€š
to...@lbm.go.jp
Pascalã®ãšããã«ããAlgol 60ã¯ãã®åŠ¹ããšãããã§ããã
ãAlgol 68ã¯ãã®ééããããªããããã
æžç° åïŒ æ»è³çç«çµç¶æ¹åç©é€š
to...@lbm.go.jp
ãå
šãåäžããç¡ããŠãããã°ã©ã ãšããŠã¯ç䟡ã§ãããšããã®ã§ãããCOBOLãããã§ããã£ãïŒ
確ããåäžããæ£ãããªããšã³ã³ãã€ã«æã«ãšã©ãŒãè¿ã£ãŠãããããªèŠããâŠã
Aé åãšBé åã«å¶éããããŸããã
äžè¬çãªåäžãã¯ãã§ãã¯å¯Ÿè±¡ã§ã¯ãããŸããã
--
ãããããšãã¿ kash...@cup.com
ãããã£ãæå³ã§ã¯ãIBMã¡ã€ã³ãã¬ãŒã ã®PL/I(çŸçšã®PL/Iã£ãŠã¡ã€ã³ãã¬ãŒã
ã ãã§ãããã)ã§ã¯ãããã°ã©ã ã¯2ã«ã©ã ç®ãã72ã«ã©ã ç®ã®éã«æžããŸãã
1ã«ã©ã ç®ã¯ç¡èŠãããŸãã(ã³ã³ãã€ã«ãªãã·ã§ã³ã§å€æŽã§ããŸãã)
äœæ
æšæºã§1ã«ã©ã ç®ãç¡èŠããã®ãçç±ã¯ããããŸããããã³ã¡ã³ãã®éå§èšå·ãš
JCLã®ãªã³ãã¢ããã¥ã¡ã³ãã®çµç«¯èšå·ãã©ã¡ãã /* ãªã®ãé¢ä¿ããŠããã®ããã
unix颚ã«æžããšãããªæãã§ãïŒ
pli <<'/*'
sample:proc options(main);
/* nanchara kanchara */
end sample;
/*
--
oo
to...@lbm.go.jp writes:
> In article <binuft$49p$1...@bluegill.lbm.go.jp> to...@lbm.go.jp writes:
>>> ããããèšèªã¡ã«ããºã ãšãããªãCã®ç¥å
BCPLã芪æBLISSã調ã¹ã
>>>å¿
èŠã¯ããããããªãã§ããããã
>>ã§ããããããšãalgol 68ãèŠãŠãããããã ãã©ã
>>æç§æžæ¢ãããå§ããã°ãªããªãç¶æ³ã§ãã
> ãšããããšã§ããšããããWebã§å°ãã¯å€ããªãããš
> ããããæ¢ããŠããã
algol68 struct union esac ã§ã°ã°ã£ãŠã
http://www.cs.virginia.edu/~evans/cs655-S00/Spring-1999/Slides/05a68_pasc.pdf
ã http://page.inf.fu-berlin.de/~wolff/Algol68-OCCL.html
ãšããã®ãèŠã€ããŸããã
20幎ã»ã©åã«è§£èª¬æžã1åèªãã ã®ã§ããããããèŠãŠå°ãæãåºããŠããŸããã
æžç°ããã®ãµã³ãã«ãalgol68ã§æžããšã
STRUCT (
INT maindata,
STRUCT (
INT subdata,
[0:3] CHAR subtext
) subsets,
[0:79] CHAR maintext
) datasets;
ã§ãããããäžçª C ãšäŒŒãŠãŸããã(algol68 ã®ããã°ã©ã ã®èšè¿°ã«ã¯2çš®é¡ã®æåã
å¿
èŠãªã®ã§ãšããããããŒã¯ãŒããååã倧æåã«ããŸãã)
union ããããŸããããã㯠C ãšããã¶ãéããC ã§ã¯ã©ã®åã®ããŒã¿ãå
¥ã£ãŠãã
ãã¯ããã°ã©ãã管çããŸãããalgol68 ã§ã¯åŠçç³»ã管çããŸãã
宣èšïŒ
UNION (INT,REAL) foo;
代å
¥ïŒ
foo := 1.5;
foo := 123;
åç
§ïŒ
CASE foo IN
(INT i): print(("integer=",i)),
(REAL f): print(("real=",f))
ESAC
代å
¥ããåãšéãåã§åç
§ãããã«ãæ¹æ³ãç¡ããi ã®æå¹ç¯å²ã¯ , ãŸã§ãªã®ã§
(REAL f)ã®åŸã®åŒã§ã¯äœ¿ããŸãããf ãéã«åãã
printæç¶ãã®åŒæ°ãä»»æã®åã®unionã§ããäžèšäŸã§ã¯ãSTRUCT(STRING,INT)åã
STRUCT(STRING,REAL)åã®è¡šèšã§ãã
ã¡ãªã¿ã« ; ã¯åºåãã§ãçµç«¯ã§ããªãæŒç®åã§ããC ã® , æŒç®åãšåæã
åŠçç³»ãããã£ãããšãç¡ãã ãã«æ§ãã®èšèªã§ããã
ãµãæåã®èšæ¶ã§æžããŠããã®ã§ééã£ãŠããããããªããã
--
oo
> ãšããããšã§ããšããããWebã§å°ãã¯å€ããªãããš
> ããããæ¢ããŠããã
> http://www.page.sannet.ne.jp/mnagai/msj/pgm_lang.htm
> ãªããŠããããŒãžãåºãŠããŸããã
> ãŸãããããšããã§ããŠãããªã
politically incorrectã§ã¯ãããŸããïŒ
# å®éïŒèªãã§ããŸãæ°åãè¯ããªãã§ãïŒ
> Pascalã®ãšããã«ããAlgol 60ã¯ãã®åŠ¹ããšãããã§ããã
> ãAlgol 68ã¯ãã®ééããããªããããã
å§ã効ãsisterã ãã©ïŒå¹Žéœ¢ããèšãã°Algol 60ãå§ã§ããããïŒ
OOTANI TAKASHI <tks...@anet.ne.jp> writes:
> algol68 struct union esac ã§ã°ã°ã£ãŠã
> http://www.cs.virginia.edu/~evans/cs655-S00/Spring-1999/Slides/05a68_pasc.pdf
> ã http://page.inf.fu-berlin.de/~wolff/Algol68-OCCL.html
> ãšããã®ãèŠã€ããŸããã
http://dmoz.org/Computers/Programming/Languages/Algol_68/
ãšããããŒãžããããŸããïŒ Revised Reportããããããã©ã£ãŠèªããŸãïŒ
(æãããèªã¿ã«ãããâŠ)
> union ããããŸããããã㯠C ãšããã¶ãéããC ã§ã¯ã©ã®åã®ããŒã¿ãå
¥ã£ãŠãã
> ãã¯ããã°ã©ãã管çããŸãããalgol68 ã§ã¯åŠçç³»ã管çããŸãã
Pascalã®å Žåã¯ãå¯å€ã¬ã³ãŒããã§ãã(ãã¶ãïŒunionãšããäºçŽèªã1ã€
ã±ãã£ã?)ïŒ Algol68ãšã®å€§ããªéãã¯ïŒ
ã»ã©ã®åã®ããŒã¿ãå
¥ã£ãŠããããè¡šããã¿ã°ããéœã«æžãïŒ
type
nodetype = (interim, leaf);
node = record
case tag: nodetype of
interim: (left, right: ^node);
leaf: (value: integer);
end
ã»ãšãããïŒã¿ã°ãçç¥ããããšãåºæ¥ãã®ã ããã§ã(åã·ã¹ãã ã®æãç©Ž)ïŒ
type
node = record
case boolean of
false: (left, right: ^node);
true: (value: integer);
end
ãã£ã¡(ã¿ã°ãªãã®å¯å€ã¬ã³ãŒã)ã¯ïŒCã®unionãšæ©èœçã«åçã§ãïŒ
> åŠçç³»ãããã£ãããšãç¡ãã ãã«æ§ãã®èšèªã§ããã
äžã®ããŒãžã«ã¯ïŒåŠçç³»ãããã€ãèŒã£ãŠããŸãïŒ
åç°æŠåž
>> Pascalã®ãšããã«ããAlgol 60ã¯ãã®åŠ¹ããšãããã§ããã
>> ãAlgol 68ã¯ãã®ééããããªããããã
>å§ã効ãsisterã ãã©ïŒå¹Žéœ¢ããèšãã°Algol 60ãå§ã§ããããïŒ
ãšãããã
ç³»èçã«èšãã°ãPascalãšAlgol 68ãå§åŠ¹ã§ã
å
±ã«Algol 60ã®åšãšããã®ã劥åœãªããããªããã
ãšããããšãªãã§ããã©ã
ïŒãã®çºæ³ã§è¡ããšãAlgol 60ã¯åããå沢山ãã«ãªã£ãŠããŸãâŠâŠ
æžç° åïŒ æ»è³çç«çµç¶æ¹åç©é€š
to...@lbm.go.jp
ããã°ã©ã ãæžããã«ã¯çšé ãç¶æ³ã§ããã
äœãšãªãalgol 68ã®é°å²æ°ã解ã£ãŠããã®ã§ã
http://www.lbm.go.jp/toda/comp/struct.html
ãæ¹èšããŠã¿ãŸããã
ãCOBOLããPL/Iãžãã®éšåã¯ãç¶æ³èšŒæ ãããªãæ確ãªãã§ããã
ãèšèªãžã®åœ±é¿ãã«ãªã£ãŠãããšããã©ã£ã¡ã®åœ±é¿ã匷ããã®ã
æ確ã§ç¡ããªã£ãŠããŸãããã¡ãã£ãšæ¯åãã®æªãæžãæ¹ã«ãªã£ãŠããŸããŸããã
>ã¡ãªã¿ã« ; ã¯åºåãã§ãçµç«¯ã§ããªãæŒç®åã§ããC ã® , æŒç®åãšåæã
algolç³»ã®ãåŒãšæãåºå¥ããªããçºæ³ã®å»¶é·ã§ããã
Pascalã¯ãã®çºæ³ãæšãŠãŠããã®ã§ã
FORTRANâBasicâPL/IâCOBOLâPascalâalgolâCãšããé ã§
åŠç¿ããŠãã身ãšããŠã¯ã
algolã®ãšããã§ã«ã«ãã£ãŒã·ã§ãã¯ãåããŸãã^_^;
æžç° åïŒ æ»è³çç«çµç¶æ¹åç©é€š
to...@lbm.go.jp
to...@lbm.go.jp writes:
> In article <u7k4rg...@anet.ne.jp> tks...@anet.ne.jp writes:
> ãèšèªãžã®åœ±é¿ãã«ãªã£ãŠãããšããã©ã£ã¡ã®åœ±é¿ã匷ããã®ã
> æ確ã§ç¡ããªã£ãŠããŸãããã¡ãã£ãšæ¯åãã®æªãæžãæ¹ã«ãªã£ãŠããŸããŸããã
ã¡ãã£ãšãããŸããã
Cãšæ·±ãé¢ä¿ãæã£ãŠããunixã®ããã²ãšã€ã®äž»èŠèšèªã§ãã Bourne shell ã«ã¯
alogl68ã®åœ±é¿ã倧ããèŠãããŸããif/then/elif/else/fiãcase/in/esac ã¯åäžã
for/while/do/od ã¯odãdoneã«ããã£ãã ãã(odã³ãã³ããå
ã«ãã£ããããïŒ)
ããŒã¯ãŒãåã®äžèŽã ãã§ãªããBourne shell ã§ã
while read a,b
test a -gt 0
do foo bar $a $b
done < file
ã®ããã«æ¡ä»¶éšåã«è€æ°ã®æ/åŒããããããšãåãã§ããã
ãã¹ãŠã®ã³ãã³ãå®è¡ãå¥ã®é¢ããèŠããšæ¡ä»¶åŒã§ããã®ãåŒèšèªãæãããŸãã
program |
case "$opt" in
-format) pr ;;
*) cat ;;
esac | lpr
ã®ããã«æ§é æããã€ãã®äžã§äœ¿ããã®ãããããalgol68ã§ã¯å€ãæã€ããšãš
䌌ãŠãããããªæ°ãããŸãã
> http://www.lbm.go.jp/toda/comp/struct.html
> ãæ¹èšããŠã¿ãŸããã
ããããåŒçšïŒ
>COBOLã®åå空éã¯å
šäœã§ïŒã€ã§ãããã¡ã³ããŒå€æ°ã®ååãåã
ã®æ§é äœããšã«
>å€ããã°ãªããªãããããŠãæ§é äœå€æ°ã®ä»£å
¥ã¯åžžã«äžŠã³é ç
§åã§ããã
ããã¯ééã£ãŠãŸãã
>PL/Iã§ã¯ãç°ãªãæ§é äœã«åäžåã®ã¡ã³ããŒãå±ããããšã蚱容ã
>ïŒãããåäžæ§é ã®æ§é äœã«ã¯åäžã¡ã³ãåãçšããããšãæšå¥šãïŒã
>代å
¥ã«éããŠååã§ç
§åãããBY NAMEãæå®ãå°å
¥ããã
ãšæžããŠããPL/Iãšåãã§ããåãååã®èŠçŽ ã®åç
§ã¯ããèŠçŽ å OF 芪ã®åã
ã§åç
§ããŸããèŠçŽ åãããã°ã©ã äžã§ãŠããŒã¯ãªããOF 芪ã®åãã¯çç¥å¯ã
ååã§ç
§åããŠä»£å
¥ãèšç®ããã®ã¯ CORRESPONDING ã
>ã¡ãªã¿ã«ãCOBOLã§æ§é ã®ç°ãªãæ§é äœå€æ°ãžä»£å
¥ããå Žåã¯ãäžæŠãã€ãåã«
>å解ããŠé ããå€æ°ã«åãçŽããšããæãããä»æ§ïŒãã¡ã€ã«å
¥åºåã®ãããã¡
>ãšããçºæ³ããããã°èªç¶ãïŒïŒã«ãªã£ãŠããã
ããã¯ã¡ãã£ãšæå³ãããããŸãããæ§é ã®ç°ãªãæ§é äœå€æ°ãžã®ä»£å
¥ã¯
ããæ®éã«èŠªã®ååã䜿ã£ãŠ MOVE ããã°ã§ããã®ã§ã¯ïŒ
COBOL,PL/Iã®ãªãã¡ã¬ã³ã¹ã¯ãhttp://www.jbooksrv.yamato.jp.ibm.com/ ãããã§ãã
--
oo
tks...@anet.ne.jpãã:
> Cãšæ·±ãé¢ä¿ãæã£ãŠããunixã®ããã²ãšã€ã®äž»èŠèšèªã§ãã Bourne shell ã«ã¯
> alogl68ã®åœ±é¿ã倧ããèŠãããŸããif/then/elif/else/fiãcase/in/esac ã¯åäžã
> for/while/do/od ã¯odãdoneã«ããã£ãã ãã(odã³ãã³ããå
ã«ãã£ããããïŒ)
ãªãã»ã©ãããã Bourne shellã¯Unix V7ããã ããCããã¯ããªïœãåŸ
ã®èšèªãšããå°è±¡ã§ããV6ãŸã§ã®shellã¯å
šç¶èšèªã£ãœããªãã
BCPLã¯ããããŒããŠãã人ãããªãã®ããªâŠ ä¹
é
In article <uu17rw...@anet.ne.jp> tks...@anet.ne.jp writes:
>> http://www.lbm.go.jp/toda/comp/struct.html
>> ãæ¹èšããŠã¿ãŸããã
>ããããåŒçšïŒ
>>COBOLã®åå空éã¯å
šäœã§ïŒã€ã§ãããã¡ã³ããŒå€æ°ã®ååãåã
ã®æ§é äœããšã«
>>å€ããã°ãªããªãããããŠãæ§é äœå€æ°ã®ä»£å
¥ã¯åžžã«äžŠã³é ç
§åã§ããã
>ããã¯ééã£ãŠãŸãã
æ å ±ããããšãããããŸãã
ãã ãç§ã®ç¥ãåŸãæ
å ±ãç·åããéãã§ã¯ã
ãééã£ãŠãããã®ã§ã¯ãªããæ
å ±ãå€ããã®ã§ã¯ãªãããšæãã®ã§ããã
åŠäœã§ããããïŒ
å®ã¯ç§ã®COBOLã«é¢ããç¥èã¯ãïŒæãããããšã«ïŒ1982幎ã§åãŸã£ãŠãããŸããŠã
åŸã£ãŠãã第ïŒæ¬¡èŠæ ŒãïŒANSI 1985, ISO 1985, JIS 1988ïŒä»¥åãªã®ã§ãã
䜿ã£ãŠããæç§æžã«ãã
ãæ§é åããã°ã©ãã³ã°ãå°å
¥ããæ¹èšã®èŠæ Œåãé²ããããŠããããš
ã³ã©ã ã®äžã§è§ŠããããŠããŠã
æç¶ãéšã®æžãæ¹ã«é¢ããç°¡åãªäŸãæããããŠããã ãã§ã
詳现ãªå
容ã¯ãããŸããã
>>PL/Iã§ã¯ãç°ãªãæ§é äœã«åäžåã®ã¡ã³ããŒãå±ããããšã蚱容ã
>>ïŒãããåäžæ§é ã®æ§é äœã«ã¯åäžã¡ã³ãåãçšããããšãæšå¥šãïŒã
>>代å
¥ã«éããŠååã§ç
§åãããBY NAMEãæå®ãå°å
¥ããã
>ãšæžããŠããPL/Iãšåãã§ããåãååã®èŠçŽ ã®åç
§ã¯ããèŠçŽ å OF 芪ã®åã
>ã§åç
§ããŸããèŠçŽ åãããã°ã©ã äžã§ãŠããŒã¯ãªããOF 芪ã®åãã¯çç¥å¯ã
>ååã§ç
§åããŠä»£å
¥ãèšç®ããã®ã¯ CORRESPONDING ã
ãšããã®ããçºæ³çã«ã¯algolç³»ã®äžçããæã£ãŠãã
ïŒçŽæ¥ã«ã¯PL/Iããé茞å
¥ããïŒïŒãšèããããå
容ãªã®ã§ã
第ïŒæ¬¡èŠæ Œã®éã«å°å
¥ãããã®ã§ã¯ãªãããšãã©ãã§ããã®ã§ããã
è£ä»ããæ
å ±ãå
šãåŸãããŠããŸããã
ã©ããã«ã第ïŒæ¬¡èŠæ Œã®éã®æ¹å®å
容ã®è©³çŽ°ã
ç°¡æœã«ãŸãšããããã¹ãã£ãŠç¡ãã§ããããïŒ
>>ã¡ãªã¿ã«ãCOBOLã§æ§é ã®ç°ãªãæ§é äœå€æ°ãžä»£å
¥ããå Žåã¯ãäžæŠãã€ãåã«
>>å解ããŠé ããå€æ°ã«åãçŽããšããæãããä»æ§ïŒãã¡ã€ã«å
¥åºåã®ãããã¡
>>ãšããçºæ³ããããã°èªç¶ãïŒïŒã«ãªã£ãŠããã
>ããã¯ã¡ãã£ãšæå³ãããããŸãããæ§é ã®ç°ãªãæ§é äœå€æ°ãžã®ä»£å
¥ã¯
>ããæ®éã«èŠªã®ååã䜿ã£ãŠ MOVE ããã°ã§ããã®ã§ã¯ïŒ
ãå解ããšãããããå±éããšè¡šçŸããæ¹ãè¯ãã£ãããªïŒ
äŸãã°ã
01 ORGNSTRC.
10 ORGNTEXT1 PIC X(4).
10 ORGNTEXT2 PIC X(6).
ãš
01 DESTSTRC.
10 DESTTEXT1 PIC X(6).
10 DESTTEXT2 PIC X(4).
ããã£ãŠã
ORGNTEXT1ã®å
容ãã1234ããORGNTEXT2ã®å
容ããABCDEFãã ã£ããšãã«
MOVE ORGNSTRC TO DESTSTRC.
ãšãããšã
DESTTEXT1ã®å
容ã¯ã1234ABããDESTTEXT2ã®å
容ã¯ãCDEFãã«ãªã
ïŒã€ãŸããã¡ã³ãå€æ°éã®åºåããç¡èŠãããïŒãšããããšã§ãã
æžç° åïŒ æ»è³çç«çµç¶æ¹åç©é€š
to...@lbm.go.jp
to...@lbm.go.jpãã:
> å®ã¯ç§ã®COBOLã«é¢ããç¥èã¯ãïŒæãããããšã«ïŒ1982幎ã§åãŸã£
> ãŠãããŸããŠãåŸã£ãŠãã第ïŒæ¬¡èŠæ ŒãïŒANSI 1985, ISO 1985, JIS
> 1988ïŒä»¥åãªã®ã§ãã
ããŒããmove corresponding(æ§é äœã³ããŒã§ååã®ãã®ã察å¿ã¥ã
ã)ã£ãŠ1982ã«ã¯ãªãã£ãã§ããã£ã?
ä»æå
ã«åèæžããªã⊠ä¹
é
ãããããããŸãããåŠçæ代COBOLã®å
¥éæžãèªãã ããšã¯ãããŸããã
é¢çœããªãèšèªã ã£ãã®ã§è©³çŽ°ãŸã§ã¯èŠããŠãªãã£ãã¯ãã
(ä»ã«ãã£ãšé¢çœãèšèªããã£ãã®ã§)
ã¡ã€ã³ãã¬ãŒã COBOLã®ããã¥ã¢ã«ãèªãã ã®ã¯1985幎以éã§ãã
é茞å
¥ãããã£ãšããã§ãããä»ã¯OO-COBOLãšãããããã
倱瀌ããŸããã
>>>ã¡ãªã¿ã«ãCOBOLã§æ§é ã®ç°ãªãæ§é äœå€æ°ãžä»£å
¥ããå Žåã¯ãäžæŠãã€ãåã«
>>>å解ããŠé ããå€æ°ã«åãçŽããšããæãããä»æ§ïŒãã¡ã€ã«å
¥åºåã®ãããã¡
>>>ãšããçºæ³ããããã°èªç¶ãïŒïŒã«ãªã£ãŠããã
>>ããã¯ã¡ãã£ãšæå³ãããããŸãããæ§é ã®ç°ãªãæ§é äœå€æ°ãžã®ä»£å
¥ã¯
>>ããæ®éã«èŠªã®ååã䜿ã£ãŠ MOVE ããã°ã§ããã®ã§ã¯ïŒ
> ãå解ããšãããããå±éããšè¡šçŸããæ¹ãè¯ãã£ãããªïŒ
æå³ã¯äºè§£ããŸããããããããå解ããšã¯ïŒããããçµåãã§ã¯ãªãã§ããããïŒ
PL/Iã ãšUNSPECé¢æ°ãUNSPECæ¬é¢æ°ãã€ãã£ãŠæ§é äœãã²ãšãŸãšãã«ããã€ã¡ãŒãžã
ïŒã¡ãªã¿ã«ãCOBOLã§æ§é ã®ç°ãªãæ§é äœå€æ°ãžä»£å
¥ããå Žåã¯ãäžæŠå
šäœã1ã€ã®
ïŒãã€ãåãšèŠãªããŠããããé ããå€æ°ã«åãçŽããšããæãããä»æ§
ã§ã©ãã§ããããã
ãšããããŸã§æžããŠããå解ããšæžãããæå³ãããããŸããã
ããã€ãåããšããèšèã®ã€ã¡ãŒãžã®é£ãéãã§ããã
--
oo
æžç° åïŒ æ»è³çç«çµç¶æ¹åç©é€š
to...@lbm.go.jp
In article <bjhms9$lvj$1...@bluegill.lbm.go.jp> to...@lbm.go.jp writes:
>>ããããåŒçšïŒ
>>>COBOLã®åå空éã¯å
šäœã§ïŒã€ã§ãããã¡ã³ããŒå€æ°ã®ååãåã
ã®æ§é äœããšã«
>>>å€ããã°ãªããªãããããŠãæ§é äœå€æ°ã®ä»£å
¥ã¯åžžã«äžŠã³é ç
§åã§ããã
>>ããã¯ééã£ãŠãŸãã
>ãã ãç§ã®ç¥ãåŸãæ
å ±ãç·åããéãã§ã¯ã
>ãééã£ãŠãããã®ã§ã¯ãªããæ
å ±ãå€ããã®ã§ã¯ãªãããšæãã®ã§ããã
>åŠäœã§ããããïŒ
>å®ã¯ç§ã®COBOLã«é¢ããç¥èã¯ãïŒæãããããšã«ïŒ1982幎ã§åãŸã£ãŠãããŸããŠã
>åŸã£ãŠãã第ïŒæ¬¡èŠæ ŒãïŒANSI 1985, ISO 1985, JIS 1988ïŒä»¥åãªã®ã§ãã
ãµãšæãã€ããŠãç§ã䜿ã£ãŠããæç§æžã®çŽ¢åŒã§
ãidentiferïŒäžæåïŒãã玢ããŠã¿ãŸããã
ããããã
>>>PL/Iã§ã¯ãç°ãªãæ§é äœã«åäžåã®ã¡ã³ããŒãå±ããããšã蚱容ã
>>>ïŒãããåäžæ§é ã®æ§é äœã«ã¯åäžã¡ã³ãåãçšããããšãæšå¥šãïŒã
>>>代å
¥ã«éããŠååã§ç
§åãããBY NAMEãæå®ãå°å
¥ããã
>>ãšæžããŠããPL/Iãšåãã§ããåãååã®èŠçŽ ã®åç
§ã¯ããèŠçŽ å OF 芪ã®åã
>>ã§åç
§ããŸããèŠçŽ åãããã°ã©ã äžã§ãŠããŒã¯ãªããOF 芪ã®åãã¯çç¥å¯ã
ãããã£ããåºãŠããŸãã^_^;
ïŒãèŠçŽ å IN 芪ã®åãã§ãè¯ãããã§ãã
ãã ããã®æç§æžã®èè
ã®ç«å ŽãšããŠã¯ã
ãã®æ©èœã¯ã極å䜿ãã¹ãã§ã¯ãªãããšèããŠããããã§ãã
åå空éäºã
ãšããåäžæ§é ã¯åäžåã§èå¥ããã¹ããšãããèãã¯é ã«ç¡ãã
åã«åœåããææããããããã®æ©èœãšã§ãèªèããŠããã®ã§ã¯ãªãããšæããŸãã
ãã®ããã極åãã®æ©èœãé ãããã«èšè¿°ããŠããŸããã
ãã£ããéšãããŠããŸã£ã^_^;
æžç° åïŒ æ»è³çç«çµç¶æ¹åç©é€š
to...@lbm.go.jp
ãšãããããå ã®è©±é¡ã«é¢é£ãããšããã§ã¯ã
(1)ãæ§é äœããšããæŠå¿µã¯BCPLã«ã¯ç¡ã
ããŒã¿åãç¡ãïŒåŸè¿°ïŒã®ã§ã
çš®é¡ã®ç°ãªãããŒã¿ãïŒã€ã®é
åïŒãã¯ã¿ïŒã«æ··åšãããããšã¯ã§ããŸããã
èŠçŽ ããææšæ°å€ãã§ã¯ãªããååãã§èå¥ãããšãããã®ã¯ãããŸããã
ãªãã»ããå€ãå®æ°åïŒãããã§ã¹ãå®æ°ïŒãšããŠå®çŸ©ããããšã«ãã£ãŠã
å®è³ªçã«ãååã«ããèŠçŽ ã®èå¥ããè¡ãããšã¯ã§ããŸããã
æ§é äœã®ããã«ã³ã³ãã€ã©ãèªåçã«ãªãã»ããå€ãèšç®ããã®ã§ã¯ãªãã
ããã°ã©ãããªãã»ããå€ãèšç®ããŠããã°ã©ã ã«èšè¿°ããã°ãªããŸããã
(2)èšèªãPL/IããçŽæ¥åãç¶ãã ãšæãããç¹åŸŽã¯BCPLèµ·æºã§ã¯ãªã
泚éã«â/* */âã䜿ãæµåã§ã¯ãããŸããã
â//âããè¡æ«ãŸã§ã泚éã§ãâŠâŠã£ãŠã
æè¿ã®C++ãšãã«è¿œå ããã泚éã®æžæ³ãšåãã ^_^;
ãŸããâ;âã¯åé¢èšå·ã§ããäœããè¡æ«ãåé¢èšå·ã§ããããã¯ããã¯ãªã
æ£ç¢ºã«ã¯ãè¡ã®æåŸã®ããŒã¯ã³ãææ«ã«äœçœ®ãåŸããã®ã§ããã°åé¢èšå·ã§ã
ææ«ã«äœçœ®ãåŸãªãããŒã¯ã³ã§çµãã£ãŠããã次è¡ã«ç¶ç¶ããŸãã
äœã¡ã
ãæãæ§ãªä»æ§ã âŠâŠ
ïŒïŒïŒïŒïŒïŒïŒïŒïŒïŒïŒïŒïŒïŒïŒïŒïŒïŒïŒïŒïŒïŒïŒïŒïŒïŒïŒïŒïŒïŒïŒïŒ
å
ã®è©±é¡ãšçŽæ¥é¢ä¿ãªãç¹ã§èå³ãåŒãããšãããšããŠã¯ã
(3)ããŒã¿åã®åºå¥ãç¡ã
CPLããBCPLãžã®æ倧ã®å€æŽç¹ã¯ããã®ç¹ãªãã ããã§ãã
åºå¥ãç¡ããšèšã£ãŠããAWKãPerlã®ããã«ã
"123"ãšããæååãæ°åŒã«çŸãããã123ããšããæ°å€ã«ãªã
ãšãããããªã人éå¯ããã®ãåºå¥ã®ç¡ããã§ã¯ãããŸããã
ããŒã¿ã¯èšèªã¬ãã«ã§ã¯å
éšè¡šçŸãšããŠã®ã¿æå³ãããã
ãã®å
éšè¡šçŸã«ã©ãããæå³ãæããããã¯ããã°ã©ã次第
ãšããæå³ã§ãæ©æ¢°å¯ããã®ãåºå¥ã®ç¡ããã§ãã
ãŸããã¢ã»ã³ããªããã°ã©ãã«ãšã£ãŠã¯çŽ çŽãªçºæ³ã§ããã
ãããããã®èãæ¹ãèšèªã«åŒãç¶ããã
ãããäœã§ãããããäžäŸ¿ã ãšããã®ã§
èšèªã§æºãæ»ããããšããããšãªãã§ããããã
ïŒïŒ¢èšèªã®è©³çŽ°ãç¥ããªãã®ã§ããã®éšåã¯æšæž¬ã§ãïŒ
ãšã¯ãããã·ã¹ãã èšè¿°ã®äžã§éèŠãª
ãæååããŒã¿ã¯ããã®å
éšè¡šçŸãå€ãšããæŽæ°åããŒã¿ã§ãããã
ãã¢ãã¬ã¹ããŒã¿ïŒãã€ã³ã¿ïŒã¯ã
ãã®å
éšè¡šçŸãå€ãšããæŽæ°åããŒã¿ãšçžäºã«å€æã§ããããšãããããª
ãããŒã¿ã®äºé¢æ§ãã¯ïŒ£èšèªã«ãŸã§åŒãç¶ãããããã§ãã
ã¡ãã£ãšæ°ã«ãªã£ãã®ãã
èšèªã®ãcharãšshort intãšlong intãã«çžåœããåºå¥ãç¡ãããšã
ã€ãŸãåŠäœãªãããŒã¿ãåäžéã®èšæ¶åãå æãããšããããšã§ãã
ãã®ä»æ§ã£ãŠCPUãéžãã§ããŸãããããªãã§ããããïŒ
ãªããæååã«é¢ããŠã¯ãïŒé
åèŠçŽ ã«äœæåãã詰蟌ãã§åæ±ã
ã©ã€ãã©ãªãæšæºã§æºåãããŠããŸãã
èšèªãPascalãšéã£ãŠã詰蟌ãŸããæååã«å¯Ÿããæäœã
é
åæäœãšåãæžåŒã§è¡ãããšã¯ã§ãããå°çšã®ã©ã€ãã©ãªãèŠããŸãã
(4)IFæ§é ã«çžåœãããã®ãELSEã®æç¡ã§åºå¥ãããŠãã
IFã«ã¯THENç¯ã®ã¿ã§ELSEç¯ããããŸããã
THENç¯ãšELSEç¯ãå
±åããå Žåã¯IFã«ä»£ããŠTESTã䜿ããŸãã
ããããèšèªã£ãŠåããŠèŠãŸããã
ã¡ãªã¿ã«ãUNLESSïœDOãšããã®ããã£ãŠã
ELSEç¯ã ããã£ãŠTHENç¯ãç¡ãç¶æ³ã«çžåœããŸãã
(5)FORã«ãŒãã®å¶åŸ¡å€æ°ã®ã¹ã³ãŒãã¯ããã®ã«ãŒãå
ïŒFORTRANãPL/Iã®DOã«ãŒãã«çžåœïŒ
ãã«ãŒããé£åºããæã®å€ãåç
§ãããææ³ã䜿ããªããšããããšã§ãã
ãã®ãããå¶åŸ¡å€æ°ã®å€ãéäžã§å€ããŠããŸã£ãŠã
ç¹°ãè¿ãåæ°ã«åœ±é¿ãäžããããšã¯èªããããŠããŸããå€ãªã®ã
å¶åŸ¡å€æ°ã¯FORã«ãŒãã®åœ¢åŒã«èšè¿°ããããšã«ãã£ãŠå®£èšããã
æ¹ããŠå€æ°ã宣èšããå¿
èŠã¯ç¡ã
âŠâŠãšãããããæ¹ããŠå®£èšããŠã¯ãªããªãããšã«ãªã£ãŠããŸãã
(6)âA < B < Câãšããæ¡ä»¶åŒãèªç¶èšèªã®æ°åŒãšåãæå³ãæãã
ã€ãŸãããA < BãANDãB < Cããšããæå³ã«ãªããŸãã
ãããåããŠèŠãâŠâŠ
(7)é
åïŒãã¯ã¿ïŒã宣èšãããšãååã®åçŽå€æ°ãåæã«ç¢ºä¿ããã
åœè©²é
åãžã®ãã€ã³ã¿ã§åæåããã
ããã®ããããç¡é§ãªä»æ§ã§ããã
åœè©²é
åãžã®ãã€ã³ã¿ãå€ãšããå®æ°åãšããã®ãçŽ çŽãªãã§ããã©ã
ïŒïŒ£èšèªã¯ããŸãã«ããïŒ
(8)ã€ã³ã©ã€ã³ã®æç¶ããã芪æç¶ãã®å±æå€æ°ã«ã¢ã¯ã»ã¹ã§ããªã
ã¢ã¯ã»ã¹ãå¿
èŠãªå Žåã¯ã°ããŒãã«å€æ°ã䜿ãããšã«ãªããŸããã
芪æç¶ãã®äžã§å®çŸ©ããã°ã芪æç¶ãã®å€ã§ã¯èŠããªãã®ã§ã
ã¹ã³ãŒãçã«ã¯çŽ çŽã«èŠªåã§ã®å€æ°å
±æã«ãªããŸãã
ããããå€æ°ã®ã¡ã¢ãªç®¡çïŒå¯¿åœãªã©ïŒã¯ããããŸã§ã°ããŒãã«ã§ãã
æžç° åïŒ æ»è³çç«çµç¶æ¹åç©é€š
to...@lbm.go.jp
to...@lbm.go.jp wrote:
> M.Richards and C.Whitby-StrevensïŒåç°è±äžèš³ïŒ
> BCPLèšèªãšãã®ã³ã³ãã€ã©ïŒå
±ç«åºç1985ïŒISBN4-320-02245-9
> (3)ããŒã¿åã®åºå¥ãç¡ã
ãBCPLã¯åç¡ãèšèªã§ããããšããã®ã¯æåã§ãããã
> ããŒã¿ã¯èšèªã¬ãã«ã§ã¯å
éšè¡šçŸãšããŠã®ã¿æå³ãããã
> ãã®å
éšè¡šçŸã«ã©ãããæå³ãæããããã¯ããã°ã©ã次第
> ãšããæå³ã§ãæ©æ¢°å¯ããã®ãåºå¥ã®ç¡ããã§ãã
èŠã¯ãwordãã§ãããã
> ã¡ãã£ãšæ°ã«ãªã£ãã®ãã
> èšèªã®ãcharãšshort intãšlong intãã«çžåœããåºå¥ãç¡ãããšã
> ã€ãŸãåŠäœãªãããŒã¿ãåäžéã®èšæ¶åãå æãããšããããšã§ãã
> ãã®ä»æ§ã£ãŠCPUãéžãã§ããŸãããããªãã§ããããïŒ
PDP-11ãªã©ã§ã¯å°ããŸããã
å€ãã®ã¡ã€ã³ãã¬ãŒã ã®ãããªã¯ãŒããã·ã³ã§ã¯å°ããªãã£ãã®
ã ãšããããŸãã
> (7)é
åïŒãã¯ã¿ïŒã宣èšãããšãååã®åçŽå€æ°ãåæã«ç¢ºä¿ããã
> åœè©²é
åãžã®ãã€ã³ã¿ã§åæåããã
>
> ããã®ããããç¡é§ãªä»æ§ã§ããã
> åœè©²é
åãžã®ãã€ã³ã¿ãå€ãšããå®æ°åãšããã®ãçŽ çŽãªãã§ããã©ã
> ïŒïŒ£èšèªã¯ããŸãã«ããïŒ
å®æ°ãªãã©ã³ãã¢ãã¬ã¹ã«ã¢ã¯ã»ã¹ããã¢ãã¬ãã·ã³ã°ã¢ãŒãããªã
èšç®æ©ãæ³å®ããŠããã®ã§ã¯ïŒïŒæ£ç¢ºã«ã¯ãã¢ãã¬ã¹ç©ºéå
šäœã¯
ã¢ã¯ã»ã¹ã§ããªãïŒãæè¿ã§ã¯CASLãããã§ãããããªã®ã¯ã
ããããCPUã§ã®ã¢ã»ã³ãã©ã®ãäœæ³ã«åŒãããããã
(ãã¿ãŸãããæãã€ãã§ã)
éœè€æçŽ sai...@ist.osaka-u.ac.jp
SAITOH akinori <sai...@ist.osaka-u.ac.jp> writes:
> to...@lbm.go.jp wrote:
> > (7)é
åïŒãã¯ã¿ïŒã宣èšãããšãååã®åçŽå€æ°ãåæã«ç¢ºä¿ããã
> > åœè©²é
åãžã®ãã€ã³ã¿ã§åæåããã
> >
> > ããã®ããããç¡é§ãªä»æ§ã§ããã
> > åœè©²é
åãžã®ãã€ã³ã¿ãå€ãšããå®æ°åãšããã®ãçŽ çŽãªãã§ããã©ã
> > ïŒïŒ£èšèªã¯ããŸãã«ããïŒ
>
> å®æ°ãªãã©ã³ãã¢ãã¬ã¹ã«ã¢ã¯ã»ã¹ããã¢ãã¬ãã·ã³ã°ã¢ãŒãããªã
> èšç®æ©ãæ³å®ããŠããã®ã§ã¯ïŒïŒæ£ç¢ºã«ã¯ãã¢ãã¬ã¹ç©ºéå
šäœã¯
> ã¢ã¯ã»ã¹ã§ããªãïŒãæè¿ã§ã¯CASLãããã§ãããããªã®ã¯ã
> ããããCPUã§ã®ã¢ã»ã³ãã©ã®ãäœæ³ã«åŒãããããã
> (ãã¿ãŸãããæãã€ãã§ã)
ããã¯ã
> > ããŒã¿ã¯èšèªã¬ãã«ã§ã¯å
éšè¡šçŸãšããŠã®ã¿æå³ãããã
> > ãã®å
éšè¡šçŸã«ã©ãããæå³ãæããããã¯ããã°ã©ã次第
> > ãšããæå³ã§ãæ©æ¢°å¯ããã®ãåºå¥ã®ç¡ããã§ãã
>
> èŠã¯ãwordãã§ãããã
ãã£ã¡ãšé¢ä¿ãããã®ã§ã¯ãªãããšæããŸãã
é
å宣èšã§ãã®é
åãžã®ãã€ã³ã¿ãçšæããŠããããšã§ãé
åãšããããŒ
ã¿åãã³ã³ãã€ã©ãèŠããŠããå¿
èŠãç¡ããªããŸãã
æ° KB çšåºŠã®ã¡ã¢ãªã§åäœããã³ã³ãã€ã©ã®å ŽåãããŒã¿åãâwordâ
ã ãã§æžãïŒïŒããŒã¿åãåºå¥ããå¿
èŠãç¡ãïŒã®ãšããã§ãªãã®ãšã§
ã¯ãã³ã³ãã€ã©ã®ãµã€ãºãçžåœå€ãã£ãŠããŸãã
ããèŠãã§ãããÎŒPLAN ãåæ§ãªä»æ§ã ã£ããšæããŸãã
--
çå±±ïŒ ïŒ°ïŒŠïŒµ
ããŒã¿åãç¡ãããšãé€ãã°ãèšèªã«ãœãã¯ãªã§ããã
algolç³»ã®ãâ=âã¯æ¯èŒã代å
¥ã¯â:=âããšãã
äŒçµ±ïŒBCPLãç¶æ¿ããŠããïŒã«éãã£ãŠã
ãâ=âã¯ä»£å
¥ãæ¯èŒã¯â==âããšããŠããã®ãåãã§ãã
代å
¥æŒç®åãéé ïŒâ+=âã§ã¯ãªãâ=+âïŒãšãã
ãããããšè«çãšïŒå€è«çã®åºå¥ãç¡ããšããã£ããããã¯ã
æç§æžé¡ã«ãåæã®ïŒ£èšèªã¯ããã ã£ãããšæžããŠãããã®ãŸããŸã
泚éãã/* */ãã§è¡šèšããããšãã
â;âãåé¢èšå·ã§ã¯ãªãçµç«¯èšå·ãšããŠçšããããšãã
èšèªçµç±ã§PL/Iããèšèªã«ç¶æ¿ãããããã§ãã
In article <qkpoexs...@dash.tokyo.pfu.co.jp> ka...@pfu.fujitsu.com writes:
>> > (7)é
åïŒãã¯ã¿ïŒã宣èšãããšãååã®åçŽå€æ°ãåæã«ç¢ºä¿ããã
>> > åœè©²é
åãžã®ãã€ã³ã¿ã§åæåããã
>> > ããã®ããããç¡é§ãªä»æ§ã§ããã
>> > åœè©²é
åãžã®ãã€ã³ã¿ãå€ãšããå®æ°åãšããã®ãçŽ çŽãªãã§ããã©ã
>> å®æ°ãªãã©ã³ãã¢ãã¬ã¹ã«ã¢ã¯ã»ã¹ããã¢ãã¬ãã·ã³ã°ã¢ãŒãããªã
>> èšç®æ©ãæ³å®ããŠããã®ã§ã¯ïŒ
ã ããã£ãŠããå€æ°ããšããŠã¢ã¯ã»ã¹å¯èœã«ããå¿
èŠã¯ç¡ãã§ãããã
å€æ°ãšåãã¡ã¢ãªé åã«å€ãä¿æãããšããŠãããç¡åã®å€æ°ãã«ããŠ
ããã°ã©ã ããã¯ã¢ã¯ã»ã¹ã§ããªãããæ¹ãçŽ çŽã ãšæããŸãã
å³å€å®æ°ãæååå®æ°ã®å€ããCPUã®éœåã§ã
å€æ°ãšåãã¡ã¢ãªé åã«ä¿æããã®ãšåãããšã§ãã
>ããã¯ã
>> > ããŒã¿ã¯èšèªã¬ãã«ã§ã¯å
éšè¡šçŸãšããŠã®ã¿æå³ãããã
>> > ãã®å
éšè¡šçŸã«ã©ãããæå³ãæããããã¯ããã°ã©ã次第
>> > ãšããæå³ã§ãæ©æ¢°å¯ããã®ãåºå¥ã®ç¡ããã§ãã
>> èŠã¯ãwordãã§ãããã
>ãã£ã¡ãšé¢ä¿ãããã®ã§ã¯ãªãããšæããŸãã
>é
å宣èšã§ãã®é
åãžã®ãã€ã³ã¿ãçšæããŠããããšã§ãé
åãšããããŒ
>ã¿åãã³ã³ãã€ã©ãèŠããŠããå¿
èŠãç¡ããªããŸãã
ãã解ããŸããâŠâŠ
é
åã¯ãããŒã¿åãã§ã¯ãããŸããããã
ã³ã³ãã€ã©ã«ãšã£ãŠã¯ã
ã宣èšãããã ãã®èšæ¶åãã·ã¹ãã ã確ä¿ããããšããã®ã
é
åãšãããªããžã§ã¯ãã®æ¬è³ªã§ãã
ïŒãã®ã確ä¿ããã·ã¹ãã ã«ãšã£ãŠäžçªã®è² æ
ã§ãããïŒã
ããã¯ã察å¿ãããã€ã³ã¿å€æ°ã確ä¿ãããã©ããã«é¢ä¿ãããŸããã
ãããŠããããã«ããŠãé
ååã¯
ã確ä¿ãããèšæ¶åã®ã¢ãã¬ã¹ãšããæå³ãæããwordåã®ããŒã¿ãã§ããã
ä»åé¡ã«ãªã£ãŠããã®ã¯ã
ããããå®æ°ããªã®ããå€æ°ããªã®ããšããéãã«éããŸããã
ã¡ãªã¿ã«ãèšèªã«ã¯ããã®åŠãªä»æ§ã¯ç¶æ¿ãããŠããªãããã§ãã
ïŒïŒ¢èšèªã®åŠçç³»ã¯ããã€ãã£ãã³ãŒããåãã³ã³ãã€ã©ãèšè¿°ã§ããªããããª
貧匱ãªç°å¢ã®ããã«éçºãããŠããïŒ
ãã¯ããå¿
ç¶æ§ã®ç¡ãä»æ§ãªã®ã§ã¯ãªãã§ããããïŒ
æžç° åïŒ æ»è³çç«çµç¶æ¹åç©é€š
to...@lbm.go.jp
<bjpl36$gfg$1...@bluegill.lbm.go.jp>ã®èšäºã«ãããŠ
to...@lbm.go.jpããã¯æžããŸããã
toda> In article <qkpoexs...@dash.tokyo.pfu.co.jp> ka...@pfu.fujitsu.com writes:
toda> >> > (7)é
åïŒãã¯ã¿ïŒã宣èšãããšãååã®åçŽå€æ°ãåæã«ç¢ºä¿ããã
toda> >> > åœè©²é
åãžã®ãã€ã³ã¿ã§åæåããã
toda> >> > ããã®ããããç¡é§ãªä»æ§ã§ããã
toda> >> > åœè©²é
åãžã®ãã€ã³ã¿ãå€ãšããå®æ°åãšããã®ãçŽ çŽãªãã§ããã©ã
toda> >> å®æ°ãªãã©ã³ãã¢ãã¬ã¹ã«ã¢ã¯ã»ã¹ããã¢ãã¬ãã·ã³ã°ã¢ãŒãããªã
toda> >> èšç®æ©ãæ³å®ããŠããã®ã§ã¯ïŒ
toda> ã ããã£ãŠããå€æ°ããšããŠã¢ã¯ã»ã¹å¯èœã«ããå¿
èŠã¯ç¡ãã§ãããã
toda> å€æ°ãšåãã¡ã¢ãªé åã«å€ãä¿æãããšããŠãããç¡åã®å€æ°ãã«ããŠ
toda> ããã°ã©ã ããã¯ã¢ã¯ã»ã¹ã§ããªãããæ¹ãçŽ çŽã ãšæããŸãã
BCPL ã®éœåäž a!i ãšæžããã a ã«ã¢ã¯ã»ã¹ããŠããŸãã®ã§,
# BCPL ã®ããŒãžã§ã³ã«ããé
åã®èŠçŽ åç
§ã¯ãããããªæ§æãããã®ã§
# ãã, ããã§ã¯ a!i ã䜿ããŸã.
ãç¡åã®å€æ°ãã®æå³ã¯ãªãã§ããã (é
ååããã®å€æ°ã®ååã«ããŠ
ããŸãã°ããããã§). ãŸã, ãå€æ°ãã§ããå¿
èŠã¯ããããããŸããã
(ãå®æ°ãã§ãããã®ã§).
toda> >ããã¯ã
toda> >> > ããŒã¿ã¯èšèªã¬ãã«ã§ã¯å
éšè¡šçŸãšããŠã®ã¿æå³ãããã
toda> >> > ãã®å
éšè¡šçŸã«ã©ãããæå³ãæããããã¯ããã°ã©ã次第
toda> >> > ãšããæå³ã§ãæ©æ¢°å¯ããã®ãåºå¥ã®ç¡ããã§ãã
toda> >> èŠã¯ãwordãã§ãããã
toda> >ãã£ã¡ãšé¢ä¿ãããã®ã§ã¯ãªãããšæããŸãã
toda> >é
å宣èšã§ãã®é
åãžã®ãã€ã³ã¿ãçšæããŠããããšã§ãé
åãšããããŒ
toda> >ã¿åãã³ã³ãã€ã©ãèŠããŠããå¿
èŠãç¡ããªããŸãã
toda> ãã解ããŸããâŠâŠ
toda> é
åã¯ãããŒã¿åãã§ã¯ãããŸããããã
toda> ã³ã³ãã€ã©ã«ãšã£ãŠã¯ã
toda> ã宣èšãããã ãã®èšæ¶åãã·ã¹ãã ã確ä¿ããããšããã®ã
toda> é
åãšãããªããžã§ã¯ãã®æ¬è³ªã§ãã
toda> ïŒãã®ã確ä¿ããã·ã¹ãã ã«ãšã£ãŠäžçªã®è² æ
ã§ãããïŒã
toda> ããã¯ã察å¿ãããã€ã³ã¿å€æ°ã確ä¿ãããã©ããã«é¢ä¿ãããŸããã
ãã , 察å¿ãããã€ã³ã¿å€æ°ã確ä¿ããããšã«ãã£ãŠãã³ã³ãã€ã©ãé
åã®å€§ãããæèããªããŠããããšããããšã¯èšãããšæããŸã.
ãã㯠2次å
以äžã®é
åã«ãªããšåœ±é¿ããŠãããã§ãã, C 㧠a[M][N]
ãšããé
å (M, N ã¯å®æ°) ã確ä¿ãããšãã« a[i][j] ãã¢ã¯ã»ã¹ãã
ããšãããš, å®è³ªçã« *(a[0] + i*N + j) ãšããèšç®ãããããšã«ãªã,
ãã®ãã N ãèšæ¶ããŠããå¿
èŠããããŸã (å Žåã«ãã£ãŠã¯ i*N ãšã
ãä¹ç®ãå¿
èŠ). ãšããã, BCPL ã§ã¯åãé
åã«å¯Ÿã㊠a ã®åã«å ããŠ
a!0ïœa!(M-1) ã®åã確ä¿ããŸã (a ã®å
容㯠a!0 ã®ã¢ãã¬ã¹, a!i ã®
å
容㯠a!i!0 ã®ã¢ãã¬ã¹). ãããããš a!i!j ã®ã¢ã¯ã»ã¹ã«å¿
èŠãªåŠç
㯠C ã§æžããš *(*(a + i) + j) ãšãªã, N ã®å€ãèšæ¶ããå¿
èŠã¯ãªã
ãªããŸã (ãããä¹ç®ãäžèŠ).
toda> ãããŠããããã«ããŠãé
ååã¯
toda> ã確ä¿ãããèšæ¶åã®ã¢ãã¬ã¹ãšããæå³ãæããwordåã®ããŒã¿ãã§ããã
toda> ä»åé¡ã«ãªã£ãŠããã®ã¯ã
toda> ããããå®æ°ããªã®ããå€æ°ããªã®ããšããéãã«éããŸããã
BCPL ã«ãšã£ãŠã¯ãå€æ°ãããå®æ°ããã¯ã©ãã§ãããã£ãŠ, åã«ãã¡ã¢
ãªäžã«ååšããã°ããããšããããšã§ã.
toda> ãã¯ããå¿
ç¶æ§ã®ç¡ãä»æ§ãªã®ã§ã¯ãªãã§ããããïŒ
ãå€æ°ãã§ããå¿
ç¶æ§ã¯ãªãã§ãã.
ã§ã, ãã¡ã¢ãªäžã«ãã€ã³ã¿ãšããŠååšããããšããã®ã¯äŸ¿å©ã ãšæã
ãŸãã. å®é, C ã ã£ãŠãŸãšãã« 2次å
é
åãæ±ã (ex. è¡åæŒç®) ã©
ã€ãã©ãªãäœãããšæã£ããåæ§ã®æ¹æ³ãæ¡ããããªãããã§ãã.
--
åå€å±å€§åŠå€§åŠé¢ æ
å ±ç§åŠç ç©¶ç§ èšç®æ©æ°çç§åŠå°æ»
å°é åç·
ããããã¢ã¯ã»ã¹æ³ãå¿
èŠã ãšããã°ã©ããå€æããå Žåã«ã
æ瀺çã«ããã°ã©ãã³ã°ã«ãã£ãŠç¢ºä¿ãããšããæ¹ãã
BCPLã®å²åŠã«ãåã£ãŠãããããªæ°ãããŸãã
æžç° åïŒ æ»è³çç«çµç¶æ¹åç©é€š
to...@lbm.go.jp
Dennis M. Ritchie, The Development of the C Language,
http://www.cs.bell-labs.com/who/dmr/chist.html
ã§ã¯ã
èšèªã§åã®æŠå¿µãåå°å
¥ããïŒã€ã®åæ©ã®ãã¡ïŒã€ãã
ãã®åé¡ã«é¢é£ãããã®ã ãšè¿°ã¹ãŠããŸããã
ïŒæ®ãã®ïŒã€ã¯æµ®åå°æ°ç¹é¢é£ïŒ
ãã€ãå¢çã§æåã䞊ãã æååãåæ±ãéã
æ©æ¢°èªã®ãã€ãã¢ãã¬ãã·ã³ã°ãçŽæ¥äœ¿ãã°çŽ çŽã«åæ±ããã®ã«ã
ããããã¯ãŒãå¢çã«unpackããŠåæ±ããšãã
銬鹿ããäœæ¥ãå¿
èŠã«ãªããšããã®ãïŒã€ã
ããã°ã©ã äžã§ã¯ã¢ãã¬ã¹ãã¯ãŒãåäœã§åæ±ãã
ããããã€ã³ã¿ãšããŠçšãã段éã§
éäžãã€ãåäœã«æç®ããã°ãªããªããšããã®ãïŒã€ã§ãã
æžç° åïŒ æ»è³çç«çµç¶æ¹åç©é€š
to...@lbm.go.jp
>> (2)èšèªãPL/IããçŽæ¥åãç¶ãã ãšæãããç¹åŸŽã¯BCPLèµ·æºã§ã¯ãªã
>>
>> 泚éã«â/* */âã䜿ãæµåã§ã¯ãããŸããã
>> â//âããè¡æ«ãŸã§ã泚éã§ãâŠâŠã£ãŠã
æå ã®è³æã§ã¯
BCPL /*...*/
BCPL |*...*|
BCPL \*...*\
BCPL //...
BCPL ||...
BCPL \\...
ãªãã§ãããããã¬ã»ãã¿ã ã£ããã§ããããïŒ
ïŒBCPLã«ãããŒãžã§ã³ããã£ãããããããŸããã
--
kabe
<ka...@sra-tohoku.co.jp>ããã®<750211200...@sra-tohoku.co.jp.msgid>ãã
http://web.cs.mun.ca/~ulf/pld/surface.html
ã«ã¯ããã¹ããã®æžãããã®ãèŒã£ãŠãŸããã
--
R4000 2.2 mailto:ta...@kc5.so-net.ne.jp
>ïŒBCPLã«ãããŒãžã§ã³ããã£ãããããããŸããã
æ¹èšïŒç¬èªæ¡åŒµïŒãå€æ°ãã£ãããã§ããã
ç§ãåç
§ããBCPLã®æç§æžã«ããæµ®åå°æ°ç¹å¯Ÿå¿ãšã
ã©ã€ãã©ãªåç
§ã«çµ¡ãã æ¡åŒµã«è§ŠããéšåããããŸãããã
æžç° åïŒ æ»è³çç«çµç¶æ¹åç©é€š
to...@lbm.go.jp
ééã£ãŠç·šéåã«åºããŠããŸããŸããã
SAITOH akinori wrote:
>
> to...@lbm.go.jp wrote:
>>>>å®æ°ãªãã©ã³ãã¢ãã¬ã¹ã«ã¢ã¯ã»ã¹ããã¢ãã¬ãã·ã³ã°ã¢ãŒãããªã
>>>>èšç®æ©ãæ³å®ããŠããã®ã§ã¯ïŒ
>>ã ããã£ãŠããå€æ°ããšããŠã¢ã¯ã»ã¹å¯èœã«ããå¿
èŠã¯ç¡ãã§ãããã
>>å€æ°ãšåãã¡ã¢ãªé åã«å€ãä¿æãããšããŠãããç¡åã®å€æ°ãã«ããŠ
>>ããã°ã©ã ããã¯ã¢ã¯ã»ã¹ã§ããªãããæ¹ãçŽ çŽã ãšæããŸãã
>>å³å€å®æ°ãæååå®æ°ã®å€ããCPUã®éœåã§ã
>>å€æ°ãšåãã¡ã¢ãªé åã«ä¿æããã®ãšåãããšã§ãã
å¿
èŠã¯ãªãã§ãããã³ã³ãã€ã©ã楜ã«ãªããŸããã
identifierãé
ååã ã£ãå Žåã®åŠçãçç¥ã§ããã
BCPLã®äœè
ã®ã¡ã³ã¿ãªãã£ãæžç°ãããšç°ãªã£ãŠããŠãç°ãªã
ãã·ãžã§ã³ããããšããã ãã ãšããããŸããã
éœè€æçŽãsai...@ist.osaka-u.ac.jp