k/simple

From The K Language Wiki
Revision as of 01:19, 17 June 2024 by Kyoung (talk | contribs) (| instead of |)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


k/simple
Developer Arthur Whitney
Released 2024

Dialect N/A

Implemented in C
Platforms x86_64
Operating Systems Linux
License MIT

Website GitHub
Documentation [1]

k/simple is "a tiny interpreter of a toy vector language, implemented in about 25 lines of c with a small header file"[1], written by Arthur Whitney.

k/simple is meant to "demonstrate the fundamentals of the design, organization and style"[2] employed by Arthur Whitney.

Types[edit]

atom signed 8-bit integer
vector ordered list of atom(s)

Verbs[edit]

monadic dyadic
+ nyi add
- negate subtract
! til mod
# count take
, enlist concatenate
@ first at
* nyi multiply
| reverse logical or
& nyi logical and
= nyi equal to (==)
~ nyi not equal to (!=)

adverbs[edit]

/ over
\ scan

References[edit]