diff options
author | Iain McGinniss <iainmcgin@gmail.com> | 2012-10-18 13:41:28 +0100 |
---|---|---|
committer | Iain McGinniss <iainmcgin@gmail.com> | 2012-10-18 13:41:28 +0100 |
commit | 7c16776236dcf1d34551916dedefc22cfdc3f999 (patch) | |
tree | 6118add23acaf82770637c4ebe18f4872570cecf /03-lexical-syntax.md | |
parent | 82435f103db0ede9665dcd2c15d5759c5aacac2d (diff) | |
download | scala-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.
Diffstat (limited to '03-lexical-syntax.md')
-rw-r--r-- | 03-lexical-syntax.md | 16 |
1 files changed, 7 insertions, 9 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 |