diff options
| author | 2026-03-09 23:05:42 +0300 | |
|---|---|---|
| committer | 2026-03-09 23:05:42 +0300 | |
| commit | 00394a80501960ad26787b5c44435ed5ed67ad84 (patch) | |
| tree | 672eb918c552c858f32e9533dc3799af6b75769f /config.ebnf | |
| parent | '-' sign in words accepted (diff) | |
| download | conf-0.1.0.tar.gz conf-0.1.0.tar.bz2 conf-0.1.0.tar.xz conf-0.1.0.zip | |
Полностью переписал библиотеку. Перевёл с EBNF на PEG.v0.1.0
Diffstat (limited to '')
| -rw-r--r-- | config.ebnf | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/config.ebnf b/config.ebnf deleted file mode 100644 index ffb588a..0000000 --- a/config.ebnf +++ /dev/null @@ -1,30 +0,0 @@ -Config = Doc . -Doc = Stmt { Stmt } . -Stmt = Word (Assignment | Command) . - -# Statements -Assignment = "=" Values br . -Command = [Values] ( Body | br ) . - -# Value types -Values = Value {Value} . -Value = Word | String | Number | Boolean . -Body = lbrace [ Doc ] rbrace . - -# Atoms -Word = word . -Number = number . -Boolean = boolean . -String = str . - -# Primitives -word = (alpha | spec) {alpha | number | spec} . -alpha = `[a-zA-Z]` . -spec = `\$|_|-` . -number = `-?[0-9]+(\.[0-9]+)?` . -boolean = `true|false` . -str = `"[^"]*"` | `'[^']*'` | '`' { `[^\x60]` } '`' . -lbrace = "{" . -rbrace = "}" . -br = ";" . -white_space = ` |\t|\r|\n|#.*` . |
