Ngn/apl: Difference between revisions

From APL Wiki
Jump to navigation Jump to search
Miraheze>Adám Brudzewsky
m (Text replacement - "<code>" to "<source lang=apl inline>")
Miraheze>Adám Brudzewsky
m (Text replacement - "</code>" to "</source>")
Line 20: Line 20:
An APL interpreter written in JavaScript by Nick Nickolov. It can run in a browser or on NodeJS.
An APL interpreter written in JavaScript by Nick Nickolov. It can run in a browser or on NodeJS.


ngn/apl supports most primitives, dfns (<source lang=apl inline>{⍺ ⍵}</code>), nested arrays, complex numbers (<source lang=apl inline>1j2</code>), infinities (<source lang=apl inline>¯</code> or <source lang=apl inline>∞</code>), [[forks and atops|Trains]], strand assignment (<source lang=apl inline>(a b)←c</code>), indexed assignment (<source lang=apl inline>a[b]←c</code>), user-defined operators (<source lang=apl inline>{⍺⍺ ⍵⍵}</code>), but does not support tradfns (<source lang=apl inline>∇R←X f Y</code>), non-zero index origin (<source lang=apl inline>⎕IO</code>), comparison tolerance (<source lang=apl inline>⎕CT</code>), prototypes, [[modified assignment]] (<source lang=apl inline>x+←1</code>), [[control structures|Keywords]] (<source lang=apl inline>:If</code>), [[object-oriented features|Object orientated programming]], namespaces.
ngn/apl supports most primitives, dfns (<source lang=apl inline>{⍺ ⍵}</source>), nested arrays, complex numbers (<source lang=apl inline>1j2</source>), infinities (<source lang=apl inline>¯</source> or <source lang=apl inline>∞</source>), [[forks and atops|Trains]], strand assignment (<source lang=apl inline>(a b)←c</source>), indexed assignment (<source lang=apl inline>a[b]←c</source>), user-defined operators (<source lang=apl inline>{⍺⍺ ⍵⍵}</source>), but does not support tradfns (<source lang=apl inline>∇R←X f Y</source>), non-zero index origin (<source lang=apl inline>⎕IO</source>), comparison tolerance (<source lang=apl inline>⎕CT</source>), prototypes, [[modified assignment]] (<source lang=apl inline>x+←1</source>), [[control structures|Keywords]] (<source lang=apl inline>:If</source>), [[object-oriented features|Object orientated programming]], namespaces.


== External link ==
== External link ==

Revision as of 09:07, 29 October 2019


For technical reasons, this page is named "Ngn/apl". The actual name of the implementation is "ngn/apl".

An APL interpreter written in JavaScript by Nick Nickolov. It can run in a browser or on NodeJS.

ngn/apl supports most primitives, dfns ({⍺ ⍵}), nested arrays, complex numbers (1j2), infinities (¯ or ), Trains, strand assignment ((a b)←c), indexed assignment (a[b]←c), user-defined operators ({⍺⍺ ⍵⍵}), but does not support tradfns (∇R←X f Y), non-zero index origin (⎕IO), comparison tolerance (⎕CT), prototypes, modified assignment (x+←1), Keywords (:If), Object orientated programming, namespaces.

External link

Template:APL programming language