Last active
November 2, 2016 21:48
-
-
Save cheptsov/9efcc8084eb0c4e15420d2437b80b1da to your computer and use it in GitHub Desktop.
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
{ | |
tokens = [ | |
crlf='regexp:\n' | |
escaped_crlf='regexp:^\\(\n)' | |
comment='regexp:[#|!][^\n]*' | |
nonId='regexp:[:=\s\\]' | |
sepearator='regexp:\s*(=|:)\s*' | |
id='regexp:[^#|!:=\s\n\\]([^:=\s\n\\]|(\\\s))*' | |
] | |
} | |
root ::= item* | |
private item ::= (property|comment|crlf) | |
property ::= key sepearator value | |
key ::= id? | |
value ::= (id|sepearator|nonId|escaped_crlf)* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment