aboutsummaryrefslogtreecommitdiff
path: root/config.ebnf
diff options
context:
space:
mode:
Diffstat (limited to 'config.ebnf')
-rw-r--r--config.ebnf30
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|#.*` .