Namespaces and imports
This commit is contained in:
@@ -3,12 +3,28 @@ jetlFile
|
|||||||
;
|
;
|
||||||
|
|
||||||
preamble
|
preamble
|
||||||
: // TODO: Imports?!
|
: namespaceHeader? import*
|
||||||
|
;
|
||||||
|
|
||||||
|
namespaceHeader
|
||||||
|
: "namespace" SimpleName{"."}
|
||||||
|
;
|
||||||
|
|
||||||
|
import
|
||||||
|
: "import" SimpleName{"."} ("." "*" | "as" SimpleName)?
|
||||||
;
|
;
|
||||||
|
|
||||||
toplevelObject
|
toplevelObject
|
||||||
|
: namespace
|
||||||
: class
|
: class
|
||||||
: extension
|
: extension
|
||||||
: method
|
: method
|
||||||
: property
|
: property
|
||||||
|
;
|
||||||
|
|
||||||
|
namespace
|
||||||
|
: "namespace" SimpleName{"."} "{"
|
||||||
|
import*
|
||||||
|
toplevelObject*
|
||||||
|
"}"
|
||||||
;
|
;
|
||||||
Reference in New Issue
Block a user