diff options
Diffstat (limited to 'doc/0/grammar')
| -rw-r--r-- | doc/0/grammar/abnf.txt | 6 | ||||
| -rw-r--r-- | doc/0/grammar/index.md | 10 | ||||
| -rw-r--r-- | doc/0/grammar/peg.txt | 2 | ||||
| -rw-r--r-- | doc/0/grammar/xbnf.txt (renamed from doc/0/grammar/zbnf.txt) | 0 |
4 files changed, 9 insertions, 9 deletions
diff --git a/doc/0/grammar/abnf.txt b/doc/0/grammar/abnf.txt index 5ab3c89..61a1db8 100644 --- a/doc/0/grammar/abnf.txt +++ b/doc/0/grammar/abnf.txt @@ -8,10 +8,10 @@ ; The abnfgen(1) tool linked above can be used to generate arbitrary ; strings matching the grammar in this file. These can be fed into -; the Zisp parser to reveal some potential bugs; either in the parser +; the Xisp parser to reveal some potential bugs; either in the parser ; itself, or this ABNF grammar. -; Note that the tool may generate Zisp string literals with Unicode +; Note that the tool may generate Xisp string literals with Unicode ; escape sequences corresponding to surrogate code points; the parser ; may reject these. This is expected; it's difficult to rewrite this ; ABNF grammar to exclude those Unicode values. @@ -21,7 +21,7 @@ ; fact the end-of-file may also terminate them; the same applies to ; hash-bang parsing which doesn't actually have to end in LF. These ; discrepancies won't make abnfgen(1) generate invalid strings; they -; only make this ABNF more strict than the Zisp parser, so it won't +; only make this ABNF more strict than the Xisp parser, so it won't ; generate some strings that the parser would actually accept. diff --git a/doc/0/grammar/index.md b/doc/0/grammar/index.md index e3716ea..1899b16 100644 --- a/doc/0/grammar/index.md +++ b/doc/0/grammar/index.md @@ -1,15 +1,15 @@ -# Zisp S-Expression Grammar +# Xisp S-Expression Grammar The grammar is available in several different formats: -* [ZBNF](zbnf.txt): See below for the rules of this notation +* [XBNF](xbnf.txt): See below for the rules of this notation * [ABNF](abnf.txt): Compatible with the `abnfgen` tool * [PEG](peg.txt): Compatible with `peg/leg` tool -## ZBNF notation +## XBNF notation -The ZBNF grammar specification uses a BNF-like notation with PEG-like +The XBNF grammar specification uses a BNF-like notation with PEG-like semantics: * Concatenation of expressions is implicit: `foo bar` means `foo` @@ -86,7 +86,7 @@ variables. The parser consumes one `Unit` from the input stream every time it's called; it returns the `Datum` therein if found, or else it returns -the Zisp EOF token. +the Xisp EOF token. Since a `Datum` is not self-terminating, the parser must read beyond it to realize that it has ended (if not followed by the EOF). Thus, diff --git a/doc/0/grammar/peg.txt b/doc/0/grammar/peg.txt index 1541da6..5ce0cd5 100644 --- a/doc/0/grammar/peg.txt +++ b/doc/0/grammar/peg.txt @@ -75,7 +75,7 @@ ALPHA <- [a-zA-Z] HEXDIG <- [0-9a-fA-F] -# Keep this in sync line-for-line with the ZBNF grammar for easy +# Keep this in sync line-for-line with the XBNF grammar for easy # comparison between the two. # This file is meant to be compatible with: diff --git a/doc/0/grammar/zbnf.txt b/doc/0/grammar/xbnf.txt index c04b813..c04b813 100644 --- a/doc/0/grammar/zbnf.txt +++ b/doc/0/grammar/xbnf.txt |
