Parsing object declarations

This commit is contained in:
Andrey Breslav
2011-06-02 18:44:56 +04:00
parent 7ad600220b
commit efd417e043
19 changed files with 2044 additions and 1956 deletions
+5 -1
View File
@@ -32,6 +32,7 @@ class Example(a : Foo, i : Int) : Bar(i), Some {
memberDeclaration
: classObject
: object
: constructor
: function
: property
@@ -99,4 +100,7 @@ setter
parameter
: SimpleName ":" type
;
;
object
: "object" SimpleName ":" ":" delegationSpecifier{","}? classBody? // Class body can be optional: this is a declaration
+1
View File
@@ -124,6 +124,7 @@ declaration
: extension
: class
: typedef
: object
;
statement
+1
View File
@@ -21,6 +21,7 @@ import
toplevelObject
: namespace
: class
: object
: extension
: function
: property