2,951
edits
No edit summary |
(→Primitives: Fix some links) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 17: | Line 17: | ||
| influenced by = [[K]], [[wikipedia:Lisp (programming language)|Lisp]] | | influenced by = [[K]], [[wikipedia:Lisp (programming language)|Lisp]] | ||
}} | }} | ||
'''Klong''' is a language based on [[K]] (probably K3) which removes K's syntactic ambiguity and much of its overloading by using more digraphs ([[ | '''Klong''' is a language based on [[K]] (probably K3) which removes K's syntactic ambiguity and much of its overloading by using more digraphs ([[primitive function]]s and [[primitive operator|operators]] composed of two characters) to separate extra meanings. The removal of syntactic ambiguity means Klong has a [[wikipedia:context-free grammar|context-free grammar]]. | ||
== Primitives == | == Primitives == | ||
Line 56: | Line 56: | ||
| <code>~</code> || [[Not]] || [[Match]] | | <code>~</code> || [[Not]] || [[Match]] | ||
|- | |- | ||
| <code>@</code> || | | <code>@</code> || Atom || [[Index function|Index]]/Apply | ||
|- | |- | ||
| <code>:@</code> || || Index-in-Depth | | <code>:@</code> || || Index-in-Depth | ||
|- | |- | ||
| <code>?</code> || [[ | | <code>?</code> || Range ([[Unique]]) || [[Find]] | ||
|- | |- | ||
| <code>,</code> || List (like [[Enclose]]) || [[ | | <code>,</code> || List (like [[Enclose]]) || Join (like [[Catenate]]) | ||
|- | |- | ||
| <code>_</code> || [[Floor]] || [[Drop]] | | <code>_</code> || [[Floor]] || [[Drop]] | ||
Line 122: | Line 122: | ||
* [http://t3x.org/klong/klong-vs-k.txt.html Differences from K] | * [http://t3x.org/klong/klong-vs-k.txt.html Differences from K] | ||
{{APL dialects}} | {{APL dialects}}[[Category:K dialects]] |