Last active
December 19, 2019 21:00
-
-
Save CosmicToast/7121e2b6a46b2fd730a01cbffd791ba3 to your computer and use it in GitHub Desktop.
Toast NEWS PEG
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Document <- DocPart+ | |
DocPart <- VersionHeader ( AuthPart EOL )+ | |
VersionHeader <- SectSep Version '(' Date ')' EndOfLine EndOfLine | |
AuthPart <- AuthorLine Item+ | |
AuthorLine <- Author EOL | |
Author <- ASCII+ ('"' DomChar+ '"')? ASCII+ '<' Email '>' | |
Email <- Char+ '@' Domain | |
Domain <- DomChar+ ( PERIOD DomChar+ )+ | |
Item <- Bullet SPACE ( BaseChar TxtChar* EOL )+ | |
Version <- 'v' Num '.' Num '.' Num PreVer VerMeta | |
PreVer <- '-' VerChar+ / '' | |
VerMeta <- '+' VerChar+ / '' | |
Date <- Year DASH Month DASH Day | |
Year <- Num | |
Month <- '1' ( '0' / '1' / '2' ) / Digit | |
Day <- '3' ( '0' / '1' ) / '2' Digit / '1' Digit / Digit | |
BaseChar <- ASCII / Digit | |
DomChar <- BaseChar / DASH | |
Num <- Digit+ | |
TxtChar <- VerChar / Punct | |
VerChar <- DomChar / PERIOD | |
ASCII <- [a-zA-Z] | |
Bullet <- PERIOD / STAR / DASH | |
Digit <- [0-9] | |
Punct <- [,;] | |
SectSep <- TAB / STAB | |
DASH <- '-' | |
EOF <- !. | |
EOL <- '\r\n' / '\n' / '\r' | |
PERIOD <- '.' | |
SPACE <- ' ' | |
STAB <- ' ' | |
STAR <- '*' | |
TAB <- '\t' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment