about summary refs log tree commit diff
path: root/src/doc/reference
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2017-02-20 23:10:49 -0500
committerSteve Klabnik <steve@steveklabnik.com>2017-02-21 14:01:35 -0500
commitc6275c4b7601ba7c9db770a0bba33b3b0e264aca (patch)
treef9ad3fa3db813990325eac5b2482ac273787bfa3 /src/doc/reference
parent94f3c1eee8a9aab2a3eb46af6c2bca6fd3b80101 (diff)
downloadrust-c6275c4b7601ba7c9db770a0bba33b3b0e264aca.tar.gz
rust-c6275c4b7601ba7c9db770a0bba33b3b0e264aca.zip
Tokens
Diffstat (limited to 'src/doc/reference')
-rw-r--r--src/doc/reference/src/tokens.md24
1 files changed, 17 insertions, 7 deletions
diff --git a/src/doc/reference/src/tokens.md b/src/doc/reference/src/tokens.md
index 5a45a2a150b..ca6cde8bd28 100644
--- a/src/doc/reference/src/tokens.md
+++ b/src/doc/reference/src/tokens.md
@@ -2,9 +2,11 @@
 
 Tokens are primitive productions in the grammar defined by regular
 (non-recursive) languages. "Simple" tokens are given in [string table
-production](#string-table-productions) form, and occur in the rest of the
+production] form, and occur in the rest of the
 grammar as double-quoted strings. Other tokens have exact rules given.
 
+[string table production]: string-table-productions.html
+
 ## Literals
 
 A literal is an expression consisting of a single token, rather than a sequence
@@ -254,9 +256,11 @@ Examples of integer literals of various forms:
 ```
 
 Note that the Rust syntax considers `-1i8` as an application of the [unary minus
-operator](#unary-operator-expressions) to an integer literal `1i8`, rather than
+operator] to an integer literal `1i8`, rather than
 a single integer literal.
 
+[unary minus operator]: expressions.html#unary-operator-expressions
+
 #### Floating-point literals
 
 A _floating-point literal_ has one of two forms:
@@ -298,7 +302,9 @@ syntax with a floating point literal ending in a period. `2.f64` would attempt
 to call a method named `f64` on `2`.
 
 The representation semantics of floating-point numbers are described in
-["Machine Types"](#machine-types).
+["Machine Types"].
+
+["Machine Types"]: types.html#machine-types
 
 ### Boolean literals
 
@@ -306,11 +312,15 @@ The two values of the boolean type are written `true` and `false`.
 
 ## Symbols
 
-Symbols are a general class of printable [tokens](#tokens) that play structural
+Symbols are a general class of printable [tokens] that play structural
 roles in a variety of grammar productions. They are a
 set of remaining miscellaneous printable tokens that do not
-otherwise appear as [unary operators](#unary-operator-expressions), [binary
-operators](#binary-operator-expressions), or [keywords][keywords].
+otherwise appear as [unary operators], [binary
+operators], or [keywords].
 They are catalogued in [the Symbols section][symbols] of the Grammar document.
 
-[symbols]: grammar.html#symbols
+[unary operators]: expressions.html#unary-operator-expressions
+[binary operators]: expressions.html#binary-operator-expressions
+[tokens]: #tokens
+[symbols]: ../grammar.html#symbols
+[keywords]: ../grammar.html#keywords
\ No newline at end of file