summaryrefslogtreecommitdiff
path: root/spec/syntax.zbnf
diff options
context:
space:
mode:
authorTaylan Kammer <taylan.kammer@gmail.com>2026-01-08 14:55:20 +0100
committerTaylan Kammer <taylan.kammer@gmail.com>2026-01-08 14:55:20 +0100
commit5cd61ba424bedfa88f06463f3ba8f3900f0c7d2d (patch)
tree468af908b7b7f2fd6182cd4ad038c155632f5b7d /spec/syntax.zbnf
parent8012e3fe177069a709f30d2ab4a18ff11025c86f (diff)
Fix syntax spec in ABNF.
Diffstat (limited to 'spec/syntax.zbnf')
-rw-r--r--spec/syntax.zbnf54
1 files changed, 0 insertions, 54 deletions
diff --git a/spec/syntax.zbnf b/spec/syntax.zbnf
deleted file mode 100644
index d920845..0000000
--- a/spec/syntax.zbnf
+++ /dev/null
@@ -1,54 +0,0 @@
-Unit : Blank* ( Datum [Blank] | EOF )
-
-
-Blank : 9...13 | Comment
-
-Datum : OneDatum ( [JoinChar] OneDatum )*
-
-JoinChar : '.' | ':'
-
-
-Comment : ';' ( SkipUnit | SkipLine [LF] )
-
-SkipUnit : '~' Unit
-
-SkipLine : ( ~LF )*
-
-
-OneDatum : BareString | CladDatum
-
-BareString : BareChar+
-
-CladDatum : '|' ( PipeStrChar | '\' StringEsc )* '|'
- | '"' ( QuotStrChar | '\' StringEsc )* '"'
- | '#' HashExpr
- | '(' List ')' | '[' List ']' | '{' List '}'
- | "'" Datum | '`' Datum | ',' Datum
-
-
-BareChar : ALPHA | DIGIT
- | '!' | '$' | '%' | '*' | '+' | '-' | '.' | '/'
- | '<' | '=' | '>' | '?' | '@' | '^' | '_' | '~'
-
-
-PipeStrChar : ~( '|' | '\' )
-
-QuotStrChar : ~( '"' | '\' )
-
-HashExpr : Rune [ '\' BareString | CladDatum ]
- | '\' BareString
- | '%' Label ( '%' | '=' Datum )
- | CladDatum
-
-List : Unit* [ '&' Unit ] Blank*
-
-
-StringEsc : '\' | '|' | '"' | ( HTAB | SP )* LF ( HTAB | SP )*
- | 'a' | 'b' | 't' | 'n' | 'v' | 'f' | 'r' | 'e'
- | 'x' ( HEXDIG{2} )+ ';'
- | 'u' HEXDIG{1,6} ';'
-
-
-Rune : ALPHA ( ALPHA | DIGIT ){0,5}
-
-Label : HEXDIG{1,12}