Language Features: Difference between revisions

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


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

⎕A (Uppercase English Alphabet)
⎕AT (Object Attributes)
⎕AV (Atomic Vector)
⎕CR (Canonical Representation)
⎕DM (Diagnostic Message)
⎕DR (Data Representation)
⎕EA (Execute Alternate)
⎕EC (Execute Controlled)
⎕EM (Event Message)
⎕ERROR (Signal Error)
⎕ES (Event Simulate)
⎕ET (Event Type)
⎕FMT (Format)
⎕MF (Monitor Function)
⎕Nxxx (Native File Functions)
⎕NC (Name Class)
⎕NL (Name List)
⎕SYSID (System Identifier)
⎕SYSVER (System Version)
⎕TC/⎕TCxxx (Terminal Control)
⎕TF (Transfer Form)
⎕UCS (Universal Character Set)
⎕VR (Visual Representation)
⎕WA (Workspace Available)

System Variables