Language Features: Difference between revisions

From NARS2000
Jump to navigationJump to search
Line 48: Line 48:


==System Functions==
==System Functions==
<table border=1>
{{:System Functions}}
<td>
{|
|-
|| [[System Function A|<apll>⎕A</apll>]]
|| (Uppercase English Alphabet)
|-
|| [[System Function AT|<apll>⎕AT</apll>]]
|| (Object Attributes)
|-
|| [[System Function AV|<apll>⎕AV</apll>]]
|| (Atomic Vector)
|-
|| [[System Function CR|<apll>⎕CR</apll>]]
|| (Canonical Representation)
|-
|| [[System Function DM|<apll>⎕DM</apll>]]
|| (Diagnostic Message)
|-
|| [[System Function DR|<apll>⎕DR</apll>]]
|| (Data Representation)
|-
|| [[System Function EA|<apll>⎕EA</apll>]]
|| (Execute Alternate)
|-
|| [[System Function EC|<apll>⎕EC</apll>]]
|| (Execute Controlled)
|-
|| [[System Function EM|<apll>⎕EM</apll>]]
|| (Event Message)
|}
</td>
<td>
{|
|| [[System Function ERROR|<apll>⎕ERROR</apll>]]
|| (Signal Error)
|-
|| [[System Function ES|<apll>⎕ES</apll>]]
|| (Event Simulate)
|-
|| [[System Function ET|<apll>⎕ET</apll>]]
|| (Event Type)
|-
|| [[System Function FMT|<apll>⎕FMT</apll>]]
|| (Format)
|-
|| [[System Function MF|<apll>⎕MF</apll>]]
|| (Monitor Function)
|-
|| [[System Function Native Files|<apll>⎕N</apll>xxx]]
|| (Native File Functions)
|-
|| [[System Function NC|<apll>⎕NC</apll>]]
|| (Name Class)
|-
|| [[System Function NL|<apll>⎕NL</apll>]]
|| (Name List)
|}
</td>
<td>
{|
|| [[System Function SYSID|<apll>⎕SYSID</apll>]]
|| (System Identifier)
|-
|| [[System Function SYSVER|<apll>⎕SYSVER</apll>]]
|| (System Version)
|-
|| [[System Function TC|<apll>⎕TC</apll>/<apll>⎕TC</apll>xxx]]
|| (Terminal Control)
|-
|| [[System Function TF|<apll>⎕TF</apll>]]
|| (Transfer Form)
|-
|| [[System Function UCS|<apll>⎕UCS</apll>]]
|| (Universal Character Set)
|-
|| [[System Function VR|<apll>⎕VR</apll>]]
|| (Visual Representation)
|-
|| [[System Function WA|<apll>⎕WA</apll>]]
|| (Workspace Available)
|}
</td>
</table>


==System Variables==
==System Variables==

Revision as of 22:31, 21 February 2013

At the moment, the following sections describe only those language features that are New or Enhanced relative to the Extended APL Standard, or that deserve special comment.

Syntax

Primitive functions

Primitive operators

Datatypes

System Commands

System Commands provide features to the user of the APL system, separate from actual workspaces, variables or APL operators. These provide such features as accessing files, saving a workspace, and exiting the APL interpreter. The commands are not case sensitive, so )IN and )in do the same thing.

NARS2000 currently has the following system commands:

)BOX Turn ON/OFF box around output
)CLEAR Start a new session manager window with an empty workspace
)CLOSE
)COPY
)DROP
)EDIT Create a new function in the workspace or edit an existing function
)ERASE Delete a variable or function in the current workspace
)EXIT Close down the interpreter and exit the program. Same as )OFF
)FNS
)FOP Display functions, operators, and hyperators. Same as )FOPS
)FOPS
)HYP Display hyperators only
)IN
)INASCII    
)LIB
)LAOD Alternative spelling of )LOAD
)LOAD Load an existing workspace
)NEWTAB
)NMS
)OFF Close down the interpreter and exit the program. Same as )EXIT
)OPEN
)OPS Display operators only
)OUT
)RESET
)SAVE Save the current workspace
)SVAE Alternative spelling for )SAVE
)SI workspace State Indicator
)SIC State Indicator Clear
)SINL
)SYMB
)ULIB
)VARS
)XLOAD
)WSID
 

System Functions

Niladic System Functions
⎕A The alphabet from A to Z, also Á to Ź,  to Ẑ, À to À, Ä to Z and à to Z, all in lowercase, too
using the variations ⎕a ⎕A ⎕á ⎕Á ⎕à ⎕À ⎕â ⎕Â ⎕ä ⎕Ä ⎕ã ⎕Ã
⎕AV Atomic Vector
⎕CS Collating sequence
⎕EM Event Message
⎕ET Event Type
⎕LC Line Counter
⎕NNAMES Names of Open Native Files
⎕NNUMS Tie Numbers of Open Native Files
⎕SI State Indicator
⎕SYSID System Identifier
⎕SYSVER System Version
⎕T Tickcount
⎕TC Terminal Control Characters
⎕TCBEL Terminal Control Character, Bell
⎕TCBS Terminal Control Character, Backspace
⎕TCESC Terminal Control Character, Escape
⎕TCFF Terminal Control Character, Form Feed
⎕TCHT Terminal Control Character, Horizontal Tab
⎕TCLF Terminal Control Character, Line Feed
⎕TCNL Terminal Control Character, New Line
⎕TCNUL Terminal Control Character, Null
⎕TS Time Stamp
⎕WA Workspace Available
Monadic or dyadic system functions
⎕AT Attributes
⎕CR Canonical representation
⎕DC Data Conversion
⎕DFT Discrete Fourier Transform
⎕DL Delay or pause APL processing
⎕DR Data representation
⎕EA Execute alternate
⎕EC Execute controlled
⎕ERROR Signal error
⎕ES Event simulate
⎕EX Expunge names
⎕FMT Format
⎕FX Function fix
⎕MF Monitor function
⎕NAPPEND Append data to an open native file
⎕NC Name classification
⎕NCREATE Create and open a native file
⎕NERASE Erase an open native file
⎕NINFO Native file information
⎕NL Name list
⎕NREAD Read data from an open native file
⎕NRENAME Rename an open native file
⎕NREPLACE Replace data in an open native file
⎕NRESIZE Resize an open native file
⎕NSIZE Get the size of an open native file
⎕NTIE Open a native file
⎕NUNTIE Close a native file
⎕STOP Stop execution of a user-defined function/operator/hyperator or Magic Function
⎕TF Transfer form
⎕TRACE Trace execution of a user-defined function/operator/hyperator or Magic Function
⎕UCS Universal character set
⎕VR Vector representation of a function


System Variables