Simplify PEG

This commit is contained in:
Emery Hemingway 2024-04-26 11:18:38 +02:00
parent fd498c6457
commit 8f42f97e13
2 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
# Package
version = "20240422"
version = "20240426"
author = "Emery Hemingway"
description = "data model and serialization format"
license = "Unlicense"

View File

@ -19,10 +19,10 @@ grammar "Preserves":
Collection <- Sequence | Dictionary | Set
Value <-
(ws * (Record | Collection | Atom | Embedded | Compact)) |
(ws * Annotation) |
(ws * '#' * @'\n' * Value)
Value <- ws * (
Record | Collection | Atom | Embedded | Compact |
Annotation |
('#' * @'\n' * Value) )
Record <- '<' * +Value * ws * '>'