summaryrefslogtreecommitdiff
path: root/docs/c1/grammar.abnf.txt
diff options
context:
space:
mode:
authorTaylan Kammer <taylan.kammer@gmail.com>2026-01-12 08:03:38 +0100
committerTaylan Kammer <taylan.kammer@gmail.com>2026-01-12 08:03:38 +0100
commit2f77b3ceaa2989d944296c572a07b2caee39d9d4 (patch)
tree93b5838d5d49e7f7f23796c1accc089a5b78eacd /docs/c1/grammar.abnf.txt
parentb7a386f1da020cb4dde8d37e96170ea4299def30 (diff)
Update HTML stuff.
Diffstat (limited to 'docs/c1/grammar.abnf.txt')
-rw-r--r--docs/c1/grammar.abnf.txt110
1 files changed, 0 insertions, 110 deletions
diff --git a/docs/c1/grammar.abnf.txt b/docs/c1/grammar.abnf.txt
deleted file mode 100644
index 9279210..0000000
--- a/docs/c1/grammar.abnf.txt
+++ /dev/null
@@ -1,110 +0,0 @@
-; Compatible with https://www.quut.com/abnfgen/
-
-; It's unclear whether this grammar is truly complete. It has been
-; verified not to produce text that is rejected by the Zisp parser
-; --except for Unicode escape sequences for surrogate code points--
-; but there may be some text that is accepted by the parser despite
-; not being grammatical according to these rules.
-
-
-Stream = [ Unit *( Blank Unit ) ] *Blank [Trail]
-
-
-Unit = *Blank Datum
-
-Blank = HTAB / LF / %x0b / %x0c / CR / SP / Comment
-
-Trail = SkipLine / SkipUnit / ";" "~" *Blank
-
-
-Datum = BareString / DottedStr / CladDatum / Rune / RuneStr
- / RuneDotStr / RuneClad / LabelRef / LabelDef / HashStr
- / HashDotStr / HashClad / QuoteExpr / JoinExpr
-
-Comment = SkipLine LF / SkipUnit Blank
-
-SkipLine = ";" [ SkipLStart *AnyButLF ]
-
-SkipUnit = ";" "~" Unit
-
-SkipLStart = %x00-09 / %x0b-7d / %x7f-ff ; any but LF or "~"
-
-AnyButLF = %x00-09 / %x0b-ff
-
-
-BareString = BareChar *( BareChar / Numeric )
-
-DottedStr = ( "." / Numeric ) *( "." / Numeric / BareChar )
-
-CladDatum = "|" *( PipeStrChar / "\" StringEsc ) "|"
- / DQUOTE *( QuotStrChar / "\" StringEsc ) DQUOTE
- / "(" List ")"
- / "[" List "]"
- / "{" List "}"
-
-Rune = "#" RuneName
-
-RuneStr = "#" RuneName "\" BareString
-
-RuneDotStr = "#" RuneName "\" DottedStr
-
-RuneClad = "#" RuneName CladDatum
-
-LabelRef = "#" "%" Label "%"
-
-LabelDef = "#" "%" Label "=" Datum
-
-HashStr = "#" "\" BareString
-
-HashDotStr = "#" "\" DottedStr
-
-HashClad = "#" CladDatum
-
-QuoteExpr = "'" Datum
- / "`" Datum
- / "," Datum
-
-JoinExpr = Datum RJoinDatum
- / LJoinDatum NoStartDot
- / Datum ":" Datum
- / NoEndDot "." Datum
-
-
-BareChar = "!" / "$" / "%" / "*" / "/" / "<" / "=" / ">"
- / "?" / "@" / "^" / "_" / "~" / ALPHA
-
-Numeric = "+" / "-" / DIGIT
-
-PipeStrChar = %x00-5b / %x5d-7b / %x7d-ff ; any but "|" or "\"
-
-QuotStrChar = %x00-21 / %x23-5b / %x5d-ff ; any but DQUOTE or "\"
-
-StringEsc = "\" / "|" / DQUOTE / *( HTAB / SP ) LF *( HTAB / SP )
- / %s"a" / %s"b" / %s"t" / %s"n"
- / %s"v" / %s"f" / %s"r" / %s"e"
- / %s"x" 1*( 2HEXDIG ) ";"
- / %s"u" ["0"] 1*5HEXDIG ";"
- / %s"u" "1" "0" 4HEXDIG ";"
-
-List = [ Unit *( Blank Unit ) ] *Blank [Tail] [SkipUnit]
-
-Tail = "&" Unit *Blank
-
-
-RuneName = ALPHA *5( ALPHA / DIGIT )
-
-Label = 1*12( HEXDIG )
-
-
-RJoinDatum = CladDatum / Rune / RuneStr / RuneDotStr / RuneClad
- / LabelRef / LabelDef / HashStr / HashDotStr / HashClad
- / QuoteExpr
-
-LJoinDatum = CladDatum / RuneClad / LabelRef / HashClad
-
-NoStartDot = BareString / CladDatum / Rune / RuneStr / RuneDotStr
- / RuneClad / LabelRef / LabelDef / HashStr / HashDotStr
- / HashClad / QuoteExpr
-
-NoEndDot = BareString / Rune / RuneStr / RuneClad / LabelRef
- / HashStr / HashClad