mirror of
https://github.com/standardebooks/web.git
synced 2025-07-15 10:56:46 -04:00
32 lines
833 B
Text
32 lines
833 B
Text
Preprocessing
|
|
-------------
|
|
- tabs are converted to single space
|
|
- \r is removed
|
|
|
|
|
|
Comment
|
|
-------
|
|
Comment ::= '#' .*
|
|
|
|
|
|
Values
|
|
------
|
|
Value ::= Boolean | Null | integer | float | String | DateTime | Literal | InlineArray | Entity
|
|
Boolean ::= 'true' | 'TRUE' | 'false' | 'FALSE' | 'yes' | 'YES' | 'no' | 'NO'
|
|
Null ::= 'null' | 'NULL' | ''
|
|
String ::= "word\u231" | 'word'
|
|
Literal ::= trimmed stream of characters [^#"',:=@[\]{}()\s!`] ( [^#,:=\]})(] | ':' [^\s,\]})] | \S '#' )*
|
|
Entity ::= Value '(' ( ArrayEntry ',' )* ')'
|
|
|
|
|
|
InlineArray
|
|
-----------
|
|
InlineArray ::= '{' ( ArrayEntry ',' )* '}' | '[' ( ArrayEntry ',' )* ']' | '(' ( ArrayEntry ',' )* ')'
|
|
|
|
ArrayEntry ::= Value | KeyValuePair
|
|
KeyValuePair ::= Value '=' Value | Value ': ' Value
|
|
|
|
|
|
BlockArray
|
|
----------
|
|
BlockArray ::= Indent ( '- ' Value | KeyValuePair ) EOL
|