mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 19:56:42 +01:00
update lang docs
This commit is contained in:
parent
b8726de78f
commit
f9f9051eb7
1 changed files with 8 additions and 13 deletions
|
|
@ -31,17 +31,12 @@ this is a `tek_input` keymap defined using ket:
|
||||||
|
|
||||||
## tokens
|
## tokens
|
||||||
|
|
||||||
ket has 5 "types":
|
ket has 4 "types", represented by variants of the `Value` enum:
|
||||||
|
|
||||||
* nil
|
* `Num` - numeric literal
|
||||||
* numeric literal
|
* `Sym` - textual symbol
|
||||||
* symbol
|
* `Key` - textual key
|
||||||
* key
|
* `Exp` - parenthesized group of tokens
|
||||||
* group
|
|
||||||
|
|
||||||
### nil
|
|
||||||
|
|
||||||
this does nothing.
|
|
||||||
|
|
||||||
### numeric literal
|
### numeric literal
|
||||||
|
|
||||||
|
|
@ -83,10 +78,10 @@ they are parsed in `tek_tui` and look like this:
|
||||||
@ctrl-alt-shift-space
|
@ctrl-alt-shift-space
|
||||||
```
|
```
|
||||||
|
|
||||||
### groups
|
### parenthesized groups
|
||||||
|
|
||||||
groups represent things like expressions or configuration statements,
|
parenthesized groups represent things like expressions
|
||||||
and look like this:
|
or configuration statements, and look like this:
|
||||||
|
|
||||||
```edn
|
```edn
|
||||||
(some-key :symbol (some/other-key @another-symbol 123) 456)
|
(some-key :symbol (some/other-key @another-symbol 123) 456)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue