K/simple: Difference between revisions

From The K Language Wiki
Content added Content deleted
(adding entry for k/simple)
 
m (typo on verb table)
Line 46: Line 46:
|-
|-
| <code>*</code>|| nyi|| [[multiply]]
| <code>*</code>|| nyi|| [[multiply]]
|-
| <code>|</code>|| [[reverse]] || logical or
| <code>|</code>|| [[reverse]] || logical or
|-
|-

Revision as of 23:17, 16 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 when he writes "interpreters in c in the most succinct and approachable way"[3].

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