From f9f9051eb7efaaf8ab7882ede6b8cde457b46c95 Mon Sep 17 00:00:00 2001 From: unspeaker Date: Sun, 19 Jan 2025 03:24:28 +0100 Subject: [PATCH] update lang docs --- edn/README.md | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/edn/README.md b/edn/README.md index fda6c354..bffd5f5a 100644 --- a/edn/README.md +++ b/edn/README.md @@ -31,17 +31,12 @@ this is a `tek_input` keymap defined using ket: ## tokens -ket has 5 "types": +ket has 4 "types", represented by variants of the `Value` enum: -* nil -* numeric literal -* symbol -* key -* group - -### nil - -this does nothing. +* `Num` - numeric literal +* `Sym` - textual symbol +* `Key` - textual key +* `Exp` - parenthesized group of tokens ### numeric literal @@ -83,10 +78,10 @@ they are parsed in `tek_tui` and look like this: @ctrl-alt-shift-space ``` -### groups +### parenthesized groups -groups represent things like expressions or configuration statements, -and look like this: +parenthesized groups represent things like expressions +or configuration statements, and look like this: ```edn (some-key :symbol (some/other-key @another-symbol 123) 456)