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
+9 -1
View File
@@ -16,7 +16,15 @@ script
; ;
preamble preamble
: packageHeader? import* : fileAnnotations? packageHeader? import*
;
fileAnnotations
: fileAnnotation*
;
fileAnnotation
: "[" "file" ":" annotationEntry+ "]"
; ;
packageHeader packageHeader