diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2015-04-27 07:34:25 -0700 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2015-04-27 07:34:25 -0700 |
commit | eeba018f27487e161de93d93c01cb8b2d8132f8f (patch) | |
tree | be200de3f3e5a87ad78c6938bee453f7a8fb7607 /spec/13-syntax-summary.md | |
parent | 48f4a99fc7c0c6d14e7bb1ec3dcca88e3ff0b121 (diff) | |
parent | 62db8d98559766c06d490d9d4c18ff27587fde0b (diff) | |
download | scala-eeba018f27487e161de93d93c01cb8b2d8132f8f.tar.gz scala-eeba018f27487e161de93d93c01cb8b2d8132f8f.tar.bz2 scala-eeba018f27487e161de93d93c01cb8b2d8132f8f.zip |
Merge pull request #4404 from soc/topic/spec
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 |