|
||||||||||||
|
|
||||||||||||
InterfacesInterface definition defines an interface type. Interfaces can contain imports, constants, variables, interface methods, functions and interfaces. The Interface method does not contain a method body; instead, they serve as a prototype for classes implementing interfaces.
Ordinary function declaration must be prefixed with `` Interface may extend one or more other interfaces, referred to with a dotted name. xxx. entity := ( "module" "." symbol | symbol ) ( "." symbol ) * interface := "interface" symbolname "extends" [ entityinterface ( "," entityinterface ) * ] "{" ( import | constant | variable | "static" function | interface-method | interface )* "}" arguments := [ argument ( "," argument )* ] [ ".." symbolcollector ] argument := symbolname [ = exprconstant ] interface-method := "function" symbolname "(" arguments ")" ";"
|
||||||||||||
|
|
||||||||||||