K/simple: Difference between revisions

From The K Language Wiki
Content added Content deleted
m (typo on verb table)
m (minor phrasing issue)
Line 16: Line 16:
'''k/simple''' is "a tiny interpreter of a toy vector language, implemented in about 25 lines of c with a small header file"<ref>https://github.com/kparc/ksimple/blob/main/README.md</ref>, written by [[Arthur Whitney]].
'''k/simple''' is "a tiny interpreter of a toy vector language, implemented in about 25 lines of c with a small header file"<ref>https://github.com/kparc/ksimple/blob/main/README.md</ref>, written by [[Arthur Whitney]].


k/simple is meant to "demonstrate the fundamentals of the design, organization and style"<ref>https://github.com/kparc/ksimple/blob/main/README.md</ref> employed by Arthur Whitney when he writes "interpreters in c in the most succinct and approachable way"<ref>https://github.com/kparc/ksimple/blob/main/README.md</ref>.
k/simple is meant to "demonstrate the fundamentals of the design, organization and style"<ref>https://github.com/kparc/ksimple/blob/main/README.md</ref> employed by Arthur Whitney.


== Types==
== Types==

Revision as of 01:12, 17 June 2024


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

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

Verbs

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

/ over
\ scan

References