diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-03-10 16:30:45 -0700 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-03-10 16:31:47 -0700 |
commit | df2f3f7cd69bb042a29b4fcea3ab81d641f17906 (patch) | |
tree | ecbbdbe8603b9390022e7032fbe07570843020c0 /11-top-level-definitions.md | |
parent | 839fd6e55b178b5c2a7aeaa7c9a542fd3637fe01 (diff) | |
download | scala-df2f3f7cd69bb042a29b4fcea3ab81d641f17906.tar.gz scala-df2f3f7cd69bb042a29b4fcea3ab81d641f17906.tar.bz2 scala-df2f3f7cd69bb042a29b4fcea3ab81d641f17906.zip |
github markdown: headers
Diffstat (limited to '11-top-level-definitions.md')
-rw-r--r-- | 11-top-level-definitions.md | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/11-top-level-definitions.md b/11-top-level-definitions.md index fee07fb0fc..3229037fbf 100644 --- a/11-top-level-definitions.md +++ b/11-top-level-definitions.md @@ -1,8 +1,6 @@ -Top-Level Definitions -===================== +# Top-Level Definitions -Compilation Units ------------------ +## Compilation Units ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.grammar} CompilationUnit ::= {‘package’ QualId semi} TopStatSeq @@ -46,8 +44,7 @@ the package `java.lang`, the package `scala`, and the object that order hide members of an earlier import. -Packagings ----------- +## Packagings ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.grammar} Packaging ::= ‘package’ QualId [nl] ‘{’ TopStatSeq ‘}’ @@ -89,8 +86,7 @@ therefore cannot be imported. However, members of the empty package are visible to each other without qualification. -Package Objects ---------------- +## Package Objects ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.grammar} PackageObject ::= ‘package’ ‘object’ ObjectDef @@ -109,8 +105,7 @@ undefined. It is expected that this restriction will be lifted in a future version of Scala. -Package References ------------------- +## Package References ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.grammar} QualId ::= id {‘.’ id} @@ -145,8 +140,7 @@ outermost root package which contains all top-level packages. contain a class `B`, a compiler-time error would result. -Programs --------- +## Programs A _program_ is a top-level object that has a member method _main_ of type `(Array[String])Unit`. Programs can be |