more tweaks

This commit is contained in:
Kat Marchán 2020-12-11 12:42:36 -08:00
parent e3254789d9
commit 573c614a85
No known key found for this signature in database
GPG Key ID: AEB529C08A3C7E9E
1 changed files with 5 additions and 5 deletions

View File

@ -47,7 +47,7 @@ But kdl changes a few details:
```kdl
// Files must be utf8 encoded!
smile "<EFBFBD>"
smile "😁"
// Instead of anonymous nodes, nodes and properties can be wrapped
// in "" for arbitrary node names.
@ -122,17 +122,17 @@ value := string | raw-string | number | boolean | 'null'
string := '"' (TODO LOL) '"'
raw-string := 'r' '#'* '"' (TODO LOL) '"' '#'*
raw-string := 'r' '#'*n '"' (TODO LOL) '"' '#'*n
number := decimal | hex | octal | binary
decimal := TODO LOL
hex := '0x' [0-9a-fA-F_]+
hex := '0x' [0-9a-fA-F] [0-9a-fA-F_]*
octal := '0o' [0-7_]+
octal := '0o' [0-7] [0-7_]*
binary := '0b' ('0' | '1' | '_')+
binary := '0b' ('0' | '1') ('0' | '1' | '_')*
boolean := 'true' | 'false'