Simplify PEG
This commit is contained in:
parent
fd498c6457
commit
8f42f97e13
|
@ -1,6 +1,6 @@
|
|||
# Package
|
||||
|
||||
version = "20240422"
|
||||
version = "20240426"
|
||||
author = "Emery Hemingway"
|
||||
description = "data model and serialization format"
|
||||
license = "Unlicense"
|
||||
|
|
|
@ -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 * '>'
|
||||
|
||||
|
|
Loading…
Reference in New Issue