Skip to content

Commit 0602837

Browse files
committed
Merge Notation subsections into Notation
1 parent 9732f63 commit 0602837

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][unicodeproductions]
9+
section that lists these productions.
10+
11+
## String table productions
12+
13+
Some rules in the grammar — notably [unary
14+
operators], [binary operators], and [keywords][keywords] — are
15+
given in a simplified form: as a listing of a table of unquoted, printable
16+
whitespace-separated strings. These cases form a subset of the rules regarding
17+
the [token][tokens] rule, and are assumed to be the result of a
18+
lexical-analysis phase feeding the parser, driven by a DFA, 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+
[unicodeproductions]: ../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)