1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
<!doctype html>
<html lang="en">
<head>
<title>gron</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<h1>gron</h1>
<h2>Ungron Input Grammar</h2>
<pre>
Input ::= '--'* Statement (Statement | '--')*
Statement ::= Path Space* "=" Space* Value ";" "\n"
Path ::= (BareWord) ("." BareWord | ("[" Key "]"))*
Value ::= String | Number | "true" | "false" | "null" | "[]" | "{}"
BareWord ::= (UnicodeLu | UnicodeLl | UnicodeLm | UnicodeLo | UnicodeNl | '$' | '_') (UnicodeLu | UnicodeLl | UnicodeLm | UnicodeLo | UnicodeNl | UnicodeMn | UnicodeMc | UnicodeNd | UnicodePc | '$' | '_')*
Key ::= [0-9]+ | String
String ::= '"' (UnescapedRune | ("\" (["\/bfnrt] | ('u' Hex))))* '"'
UnescapedRune ::= [^#x0-#x1f"\]
</pre>
<h3>Input</h3>
<img src="images/input.png">
<h3>Statement</h3>
<img src="images/statement.png">
<h3>Path</h3>
<img src="images/path.png">
<h3>Value</h3>
<img src="images/value.png">
<h3>BareWord</h3>
<img src="images/bareword.png">
<h3>Key</h3>
<img src="images/key.png">
<h3>String</h3>
<img src="images/string.png">
<h3>UnescapedRune</h3>
<img src="images/unescapedrune.png">
</body>
</html>
|