|
SuperBASIC is an advanced variant of the BASIC programming language with many structured programming additions. It was developed at Sinclair Research by Jan Jones during the early 1980s. Originally SuperBASIC was intended for a home computer, code-named ''SuperSpectrum'', then under development. This project was later cancelled, however, SuperBASIC was subsequently included in the ROM firmware of the Sinclair QL microcomputer (announced in January 1984), also serving as the command line interpreter for the QL's Qdos operating system. It is notable for being the first second-generation BASIC to be integrated into a microcomputer's operating system, so making the latter user-extendable. == Advanced Features == * RESPR for resident procedures: e.g. to extend Qdos * choice of parameters passed to procedures * procedures return parameters as chosen * IF - THEN - ELSE - END IF * FOR - NEXT - EXIT - END FOR * REPeat - NEXT - EXIT - END REPeat * SELect ON - ON - REMAINDER - END SELect * arbitrarily RETurn within procedures & functions * data type coercion between numeric & string variables * actual parameters passing data type to formal parameters * array operations: slicing, joining etc. * LOCal arrays & (string) variables * AUTOmatic line numbering * relative RESTORE & DATA The example below illustrates the last eight of these features. After entering the statements, entering RUN : PRINT weekdays$(Iso("19631122",1)) will print FRI to the screen. Until cleared, the function Iso〔gopher://sdf.org/0/users/retroburrowers/TemporalRetrology/QL/JG〕 will act like an extension to the operating system. Similarly, according to the QL User Guide, "many of the operating system commands are themselves defined as procedures."〔Sinclair Research Ltd. QL User Guide 2nd Ed. Cambridge: (1984). Keywords, "DEFine PROCedure"〕 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「SuperBASIC」の詳細全文を読む スポンサード リンク
|