summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIain McGinniss <iainmcgin@gmail.com>2012-10-18 13:41:28 +0100
committerIain McGinniss <iainmcgin@gmail.com>2012-10-18 13:41:28 +0100
commit7c16776236dcf1d34551916dedefc22cfdc3f999 (patch)
tree6118add23acaf82770637c4ebe18f4872570cecf
parent82435f103db0ede9665dcd2c15d5759c5aacac2d (diff)
downloadscala-7c16776236dcf1d34551916dedefc22cfdc3f999.tar.gz
scala-7c16776236dcf1d34551916dedefc22cfdc3f999.tar.bz2
scala-7c16776236dcf1d34551916dedefc22cfdc3f999.zip
removed some stray LaTeX commands from Lexical Syntax chapter,
and a back-reference from the expressions chapter.
-rw-r--r--03-lexical-syntax.md16
-rw-r--r--08-expressions.md2
2 files changed, 8 insertions, 10 deletions
diff --git a/03-lexical-syntax.md b/03-lexical-syntax.md
index 519094ac2c..c8d031bba6 100644
--- a/03-lexical-syntax.md
+++ b/03-lexical-syntax.md
@@ -9,7 +9,7 @@ otherwise mentioned, the following descriptions of Scala tokens refer
to Scala mode, and literal characters ‘c’ refer to the ASCII fragment
\\u0000-\\u007F
-In Scala mode, \textit{Unicode escapes} are replaced by the corresponding
+In Scala mode, _Unicode escapes_ are replaced by the corresponding
Unicode character with the given hexadecimal code.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.grammar}
@@ -43,7 +43,7 @@ plainid ::= upper idrest
| varid
| op
id ::= plainid
- | ‘\`’ stringLit ‘\`’
+ | ‘`’ stringLit ‘`’
idrest ::= {letter | digit} [‘_’ op]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -296,8 +296,6 @@ protected class Data { ... }
Literals
----------
-\label{sec:literals}
-
There are literals for integer numbers, floating point numbers,
characters, booleans, symbols, strings. The syntax of these literals is in
each case as in Java.
@@ -326,8 +324,8 @@ decimalNumeral ::= ‘0’ | nonZeroDigit {digit}
hexNumeral ::= ‘0’ ‘x’ hexDigit {hexDigit}
octalNumeral ::= ‘0’ octalDigit {octalDigit}
digit ::= ‘0’ | nonZeroDigit
-nonZeroDigit ::= ‘1’ | $\cdots$ | ‘9’
-octalDigit ::= ‘0’ | $\cdots$ | ‘7’
+nonZeroDigit ::= ‘1’ | … | ‘9’
+octalDigit ::= ‘0’ | … | ‘7’
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Integer literals are usually of type `Int`{.scala}, or of type
@@ -484,8 +482,8 @@ The expression
~~~~~~~~~~~~~~~~~~~~~~~~~~ {.scala}
"""the present string
- |spans three
- |lines.""".stripMargin
+ spans three
+ lines.""".stripMargin
~~~~~~~~~~~~~~~~~~~~~~~~~~
evaluates to
@@ -578,7 +576,7 @@ brace and immediately followed by a character starting an XML name.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.grammar}
( whitespace | ‘(’ | ‘{’ ) ‘<’ (XNameStart | ‘!’ | ‘?’)
- XNameStart ::= ‘_’ | BaseChar | Ideographic $\mbox{\rm\em (as in W3C XML, but without }$ ‘:’
+ XNameStart ::= ‘_’ | BaseChar | Ideographic // as in W3C XML, but without ‘:’
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The scanner switches from XML mode to Scala mode if either
diff --git a/08-expressions.md b/08-expressions.md
index 928b56868b..77eec052b4 100644
--- a/08-expressions.md
+++ b/08-expressions.md
@@ -78,7 +78,7 @@ $T$ forSome { type $t_1[\tps_1] >: L_1 <: U_1$; $\ldots$; type $t_n[\tps_n] >: L
SimpleExpr ::= Literal
\end{lstlisting}
-Typing of literals is as described in (\sref{sec:literals}); their
+Typing of literals is as described [here](#literals); their
evaluation is immediate.