Working on the type checker

This commit is contained in:
Andrey Breslav
2011-01-20 19:28:36 +03:00
parent 04aa370fa6
commit 113a066e48
15 changed files with 153 additions and 14 deletions
+11 -1
View File
@@ -10,9 +10,19 @@ Foo<Bar<X>, T, Object> // user type
*/
type
: attributes (selfType | functionType | userType | tupleType)
: attributes typeDescriptor
typeDescriptor
: selfType
: functionType
: userType
: tupleType
: nullableType
;
nullableType
: typeDescriptor "?"
selfType
: "This"
;