|
Snostorm (Snostorm3) is a version of the SNOBOL4 language with structured programming constructs added. It compensates for the near absence of structured programming constructs in SNOBOL4 by providing IF, ELSEIF, ELSE, LOOP, CASE, and PROCEDURE statements, among others. It was originally designed and implemented by Fred G. Swartz as a preprocessor for SPITBOL running under the Michigan Terminal System (MTS) at the University of Michigan Computing Center during the 1970s.〔("SNOSTORM" ), ''MTS Volume 9: SNOBOL4 in MTS'', Computing Center, University of Michigan, June 1979, pages 99-120. Retrieved 1 September 2014.〕 == Features added == Added features include logical operators, control structures including procedures, initialization blocks, enhanced comments, and listing control.〔 The grammar includes these added constructs:〔 ;Logical operators * AND, OR, and NOT logical operators. ;Control structures * IF, ELSEIF, ELSE, and ENDIF statements. * LOOP, LOOP WHILE, LOOP UNTIL, LOOP FOR, EXITLOOP, NEXTLOOP, ENDLOOP, and ENDLOOP REPEAT statements. * DOCASE, CASE, ELSECASE, and ENDCASE statements. * PROCEDURE (PROC), EXITPROCEDURE (EDITPROC), and ENDPROCEDURE (ENDPROC) statements. ;Initialization * INITIAL and ENDINITIAL statements. ;Enhanced comments * Comments starting with an asterisk ( *) in columns other than column 1. * Blank lines treated as comments. ;Listing control * EJECT, TITLE, SUBTITLE, SPACE, LIST ON, LIST OFF, LIST PUSHON, LIST PUSHOFF, and LIST POP statements. In addition MTS Snostorm provided options for prettyprinting and for debugging with the Spitbol compiler. The syntax of Snostorm is largely insensitive to spaces and newlines, but not entirely so because of its dependence upon SNOBOL4 for execution. 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「Snostorm」の詳細全文を読む スポンサード リンク
|