Skip to content

Commit 3e0f35e

Browse files
authored
Merge pull request #150 from Havvy/single-notation
Merge Notation subsections into Notation.md
2 parents 9732f63 + 4d2f668 commit 3e0f35e

File tree

4 files changed

+28
-29
lines changed

4 files changed

+28
-29
lines changed

src/SUMMARY.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
[Introduction](introduction.md)
44

55
- [Notation](notation.md)
6-
- [Unicode productions](unicode-productions.md)
7-
- [String table productions](string-table-productions.md)
86

97
- [Lexical structure](lexical-structure.md)
108
- [Input format](input-format.md)

src/notation.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,29 @@
11
# Notation
2+
3+
## Unicode productions
4+
5+
A few productions in Rust's grammar permit Unicode code points outside the
6+
ASCII range. We define these productions in terms of character properties
7+
specified in the Unicode standard, rather than in terms of ASCII-range code
8+
points. The grammar has a [Special Unicode Productions] section that lists these
9+
productions.
10+
11+
## String table productions
12+
13+
Some rules in the grammar — notably [unary operators], [binary operators],
14+
and [keywords] — are given in a simplified form: as a listing of a table
15+
of unquoted, printable whitespace-separated strings. These cases form a subset
16+
of the rules regarding the [token][tokens] rule, and are assumed to be the
17+
result of a lexical-analysis phase feeding the parser, driven by a
18+
<abbr title="Deterministic Finite Automaton">DFA</abbr>, operating over the
19+
disjunction of all such string table entries.
20+
21+
When such a string enclosed in double-quotes (`"`) occurs inside the grammar,
22+
it is an implicit reference to a single member of such a string table
23+
production. See [tokens] for more information.
24+
25+
[Special Unicode Productions]: ../grammar.html#special-unicode-productions
26+
[binary operators]: expressions/operator-expr.html#arithmetic-and-logical-binary-operators
27+
[keywords]: keywords.html
28+
[tokens]: tokens.html
29+
[unary operators]: expressions/operator-expr.html#borrow-operators

src/string-table-productions.md

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/unicode-productions.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)