1.5 KiB
1.5 KiB
Simple Extensible Human Notation (.sehn)
Base Kinds
name | description |
---|---|
none |
Represents nothing |
bool |
Represents a boolean value |
real |
Represents a real number |
text |
Represents text |
dict |
A key-value structure |
list |
A collection structure |
kind |
A reflective kind |
none
A none
represents the absence of any value.
bool
true
false
real
<int>
<sig>e<exp>
<int>.<frac>
part | allowed value |
---|---|
int |
-?[1-9][0-9]* |
frac |
[0-9]* |
sig |
<int> |
exp |
<int> |
text
"<text>"
- Multiline:
` "<text>" "<text>" `
A text
value holds low and behold, text.
dict
{"<text>": <any>, ...}
A dictionary is a structure with text
keys mapping to any value.
list
[<any>, ...]
A list is a structure with a sequence of any value.
kind
<base-kind>
<standard-kind>
<app-kind>
kind | allowed value |
---|---|
<base-kind> |
none|bool|real|text|dict|list|kind |
<standard-kind> |
(?!(<base-kind>))[a-z][a-z0-9/]* |
<app-kind> |
[A-Z][a-zA-Z0-9\]* |