diff options
author | Jonathan Brachthäuser <jonathan@b-studios.de> | 2016-12-21 19:59:54 +0100 |
---|---|---|
committer | Jonathan Brachthäuser <jonathan@b-studios.de> | 2016-12-21 19:59:54 +0100 |
commit | 669ab6521134340dfa3cdc24afa13b9130aebd4d (patch) | |
tree | 5a75b7e8448b3c82ac602e55fff84f129581928c /docs/docs/internals/syntax.md | |
parent | dbe5766914a6bcb272379a1e5423e2ecf35aaee2 (diff) | |
download | dotty-669ab6521134340dfa3cdc24afa13b9130aebd4d.tar.gz dotty-669ab6521134340dfa3cdc24afa13b9130aebd4d.tar.bz2 dotty-669ab6521134340dfa3cdc24afa13b9130aebd4d.zip |
Add markdown header
Diffstat (limited to 'docs/docs/internals/syntax.md')
-rw-r--r-- | docs/docs/internals/syntax.md | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/docs/docs/internals/syntax.md b/docs/docs/internals/syntax.md index cbf2b0ce4..13faa195e 100644 --- a/docs/docs/internals/syntax.md +++ b/docs/docs/internals/syntax.md @@ -1,10 +1,20 @@ -% $Id: SyntaxSummary.tex 21104 2010-03-08 13:49:27Z odersky $ +--- +layout: default +title: "Scala Syntax Summary" +--- -\chapter{Scala Syntax Summary}\label{sec:syntax} -\todo{introduce SeqPattern syntax} +The following descriptions of Scala tokens uses literal characters `‘c’` when +referring to the ASCII fragment `\u0000` – `\u007F`. -The lexical syntax of Scala is given by the following grammar in EBNF -form. +_Unicode escapes_ are used to represent the Unicode character with the given +hexadecimal code: + +```ebnf +UnicodeEscape ::= ‘\’ ‘u’ {‘u’} hexDigit hexDigit hexDigit hexDigit +hexDigit ::= ‘0’ | … | ‘9’ | ‘A’ | … | ‘F’ | ‘a’ | … | ‘f’ +``` + +Informal descriptions are typeset as `“some comment”`. {\small \begin{lstlisting} |