From 669ab6521134340dfa3cdc24afa13b9130aebd4d Mon Sep 17 00:00:00 2001 From: Jonathan Brachthäuser Date: Wed, 21 Dec 2016 19:59:54 +0100 Subject: Add markdown header --- docs/docs/internals/syntax.md | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'docs') 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} -- cgit v1.2.3