-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGrammar.text
More file actions
34 lines (34 loc) · 788 Bytes
/
Grammar.text
File metadata and controls
34 lines (34 loc) · 788 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
CompilationUnit:
PackagePrologue? ImportPrologue? TypePrologue*
PackagePrologue:
Annotation* PackageDefinition
ImportPrologue:
ImportClause*
TypePrologue:
Annotation* ClassDefinition
Annotation* EnumPrologue
Annotation* PreType
PreType:
Qualifier* ClassDefinition
Qualifier* EnumPrologue
Qualifier* PreInterface
PreInterface
@ InterfaceDefinition
PackageDefinition:
package name[.name]*;
ImportClause
import [static]? name[.name]*[.*]?;
Qualifier:
public|abstract|final|strictfp
Annotation:
@ name AnnotationExpression?
AnnotationExpression:
( ElementType=ElementValue [, ElementType=ElementValue]* )
( ElementValue )
ElementValue:
ConditionalExpression
Annotation
ElementValueArray
Value
ElementValueArray:
{ ElementType=ElementValue [, ElementType=ElementValue]* }