2,927
edits
m (Text replacement - "{{APL dialects}}" to "{{APL dialects}}Category:K dialects") |
(→Primitives: Fix some links) |
||
(2 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 ([[primitive]]s composed of two characters) to separate extra meanings. The removal of syntactic ambiguity means Klong has a [[wikipedia:context-free grammar|context-free grammar]]. | '''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]]) || Join (like [[Catenate]]) | | <code>,</code> || List (like [[Enclose]]) || Join (like [[Catenate]]) |