-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplifies content collection parsing, and there's this: withastro/astro#12689
- Loading branch information
Showing
14 changed files
with
23 additions
and
81 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"title": "CSV", | ||
"grammar": "CSV = Hdr Row+\nHdr = Row\nRow = field (',' field)* '\\r'? '\\n'\nfield = _string / _text / ''\n\n_text = ~[,\\n\\r]+\n_string = '\"' (~[\"] / '\"\"')* '\"'\n", | ||
"input": "A,B,C\na1,b1,c1\na2,\"b,2\",c2\na3,b3,c3\n" | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"title": "Date", | ||
"grammar": "date = year '-' month '-' day\nyear = [1-2][0-9]*3\nmonth = '0'[1-9] / '1'[0-2]\nday = [0-3][0-9]\n\n# A simple example to play around with.\n# More examples in menu at top.\n\n# This Dingus is only a toy web-page.\n# To try your own pPEG grammars use\n# the peg-play.mjs command line tool,\n# that lets you work on your own files.", | ||
"input": "2021-02-03" | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"title": "JSON", | ||
"grammar": "json = _ value _\nvalue = Str / Arr / Obj / num / lit\nObj = '{'_ (memb (_','_ memb)*)? _'}'\nmemb = Str _':'_ value\nArr = '['_ (value (_','_ value)*)? _']'\nStr = '\"' chars* '\"'\nchars = ~[\\u0000-\\u001F\"\\]+ / '\\' esc\nesc = [\"\\/bfnrt] / 'u' [0-9a-fA-F]*4\nnum = _int _frac? _exp?\n_int = '-'? ([1-9] [0-9]* / '0')\n_frac = '.' [0-9]+\n_exp = [eE] [+-]? [0-9]+\nlit = 'true' / 'false' / 'null'\n_ = [ \\t\\n\\r]*\n", | ||
"input": "{\n \"answer\": 42,\n \"mixed\": [1, 2.3, \"a\\tstring\", true, [4, 5]],\n \"empty\": {}\n}" | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"title": "URL", | ||
"grammar": "# Equivalent to the regular expression for\n# well-formed URI's in RFC 3986.\nURI = (scheme ':')? ('//' auth)?\n path ('?' query)? ('#' frag)?\nscheme = ~[:/?#]+\nauth = ~[/?#]*\npath = ~[?#]*\nquery = ~'#'*\nfrag = ~[ \\t\\n\\r]*\n", | ||
"input": "http://www.ics.uci.edu/pub/ietf/uri/#Related" | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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