diff options
author | Simon Ochsenreither <simon@ochsenreither.de> | 2014-09-16 18:48:09 +0200 |
---|---|---|
committer | Simon Ochsenreither <simon@ochsenreither.de> | 2015-04-25 03:37:40 +0200 |
commit | 62db8d98559766c06d490d9d4c18ff27587fde0b (patch) | |
tree | a2c6b72094a214b9ef99c8097759da0aba5ace51 /spec/13-syntax-summary.md | |
parent | d030172d7ef807d85391d32c5456b1b97b15a402 (diff) | |
download | scala-62db8d98559766c06d490d9d4c18ff27587fde0b.tar.gz scala-62db8d98559766c06d490d9d4c18ff27587fde0b.tar.bz2 scala-62db8d98559766c06d490d9d4c18ff27587fde0b.zip |
Spec improvements
Diffstat (limited to 'spec/13-syntax-summary.md')
-rw-r--r-- | spec/13-syntax-summary.md | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/13-syntax-summary.md b/spec/13-syntax-summary.md index 2b9571cc73..7f73e107de 100644 --- a/spec/13-syntax-summary.md +++ b/spec/13-syntax-summary.md @@ -15,6 +15,8 @@ UnicodeEscape ::= ‘\‘ ‘u‘ {‘u‘} hexDigit hexDigit hexDigit hexDigit hexDigit ::= ‘0’ | … | ‘9’ | ‘A’ | … | ‘F’ | ‘a’ | … | ‘f’ ``` +## Lexical Syntax + The lexical syntax of Scala is given by the following grammar in EBNF form: ```ebnf @@ -72,8 +74,10 @@ nl ::= $\mathit{“new line character”}$ semi ::= ‘;’ | nl {nl} ``` +## Context-free Syntax + The context-free syntax of Scala is given by the following EBNF -grammar. +grammar: ```ebnf Literal ::= [‘-’] integerLiteral |