Parser: added the support file annotations to grammar.

This commit is contained in:
Zalim Bashorov
2014-09-09 17:08:23 +04:00
parent 771b887e9f
commit 506610302a
+10 -2
View File
@@ -16,7 +16,15 @@ script
;
preamble
: packageHeader? import*
: fileAnnotations? packageHeader? import*
;
fileAnnotations
: fileAnnotation*
;
fileAnnotation
: "[" "file" ":" annotationEntry+ "]"
;
packageHeader
@@ -54,4 +62,4 @@ See [Packages](packages.html)
[undocumented]
typedef
: modifiers "type" SimpleName (typeParameters typeConstraints)? "=" type
;
;