Skip to content

Commit 54ff60a

Browse files
committed
Update the introduction about grammar notation
I didn't want to try to add an unused grammar rule here, so just point to the notation chapter which has an example.
1 parent f2c92d5 commit 54ff60a

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/introduction.md

+1-9
Original file line numberDiff line numberDiff line change
@@ -106,14 +106,7 @@ These conventions are documented here.
106106

107107
All examples are written for the latest edition unless otherwise stated.
108108

109-
* The grammar and lexical structure is in blockquotes with either "Lexer" or "Syntax" in <sup>**bold superscript**</sup> as the first line.
110-
111-
> **<sup>Syntax</sup>**\
112-
> _ExampleGrammar_:\
113-
> &nbsp;&nbsp; &nbsp;&nbsp; `~` [_Expression_]\
114-
> &nbsp;&nbsp; | `box` [_Expression_]
115-
116-
See [Notation] for more detail.
109+
* The grammar and lexical productions are described in the [Notation] chapter.
117110

118111
r[example.rule.label]
119112
* Rule identifiers appear before each language rule enclosed in square brackets. These identifiers provide a way to refer to and link to a specific rule in the language ([e.g.][example rule]). The rule identifier uses periods to separate sections from most general to most specific ([destructors.scope.nesting.function-body] for example). On narrow screens, the rule name will collapse to display `[*]`.
@@ -141,7 +134,6 @@ We also want the reference to be as normative as possible, so if you see anythin
141134
[standard library]: std
142135
[the Rust Reference repository]: https://github.com/rust-lang/reference/
143136
[Unstable Book]: https://doc.rust-lang.org/nightly/unstable-book/
144-
[_Expression_]: expressions.md
145137
[cargo book]: ../cargo/index.html
146138
[cargo reference]: ../cargo/reference/index.html
147139
[example rule]: example.rule.label

0 commit comments

Comments
 (0)