Remove half-baked support for generics. Will get back to this later.
This commit is contained in:
parent
fbe3d1ef84
commit
ca6d836361
|
|
@ -1,5 +1,4 @@
|
||||||
<type_declaration> ::= <identifier>
|
<type_declaration> ::= <inherited_type>
|
||||||
["/" <identifier>]?
|
|
||||||
["->" <interface_identifier_list>]?
|
["->" <interface_identifier_list>]?
|
||||||
"{" <class_body> "}"
|
"{" <class_body> "}"
|
||||||
|
|
||||||
|
|
@ -9,9 +8,11 @@
|
||||||
| <constructor_declaration>
|
| <constructor_declaration>
|
||||||
| <destructor_declaration>)*
|
| <destructor_declaration>)*
|
||||||
|
|
||||||
<type_inheritance> ::= "extends" <identifier>
|
<inherited_type> ::= [<parent> "/"]? <child>
|
||||||
|
|
||||||
<generic_type_declaration> ::= <identifier> "<" <type_parameter_list> ">"
|
<parent> ::= <identifier>
|
||||||
|
|
||||||
|
<child> ::= <identifier>
|
||||||
|
|
||||||
<type_parameter_list> ::= <identifier> ("," <identifier>)*
|
<type_parameter_list> ::= <identifier> ("," <identifier>)*
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,10 +12,6 @@
|
||||||
<interface_method_signature> ::=
|
<interface_method_signature> ::=
|
||||||
<accessibility_modifier>"fn" <identifier> <function_signature>
|
<accessibility_modifier>"fn" <identifier> <function_signature>
|
||||||
|
|
||||||
<generic_interface_declaration> ::=
|
|
||||||
"@" <interface_identifier> "<" <type_parameter_list> ">"
|
|
||||||
"{" <interface_body> "}"
|
|
||||||
|
|
||||||
<interface_inheritance> ::=
|
<interface_inheritance> ::=
|
||||||
"@" <interface_identifier> "extends" <interface_identifier_list>
|
"@" <interface_identifier> "extends" <interface_identifier_list>
|
||||||
"{" <interface_body> "}"
|
"{" <interface_body> "}"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue