[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnet/cscc/csharp cs_grammar.y,1.49,1.50
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnet/cscc/csharp cs_grammar.y,1.49,1.50 |
Date: |
Thu, 20 Feb 2003 23:42:12 -0500 |
Update of /cvsroot/dotgnu-pnet/pnet/cscc/csharp
In directory subversions:/tmp/cvs-serv1871/cscc/csharp
Modified Files:
cs_grammar.y
Log Message:
Handle generic type parameters in local variable declarations (e.g. "A<T> x").
Index: cs_grammar.y
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/cscc/csharp/cs_grammar.y,v
retrieving revision 1.49
retrieving revision 1.50
diff -C2 -r1.49 -r1.50
*** cs_grammar.y 21 Feb 2003 04:30:03 -0000 1.49
--- cs_grammar.y 21 Feb 2003 04:42:10 -0000 1.50
***************
*** 913,917 ****
%type <target> AttributeTarget
! %expect 25
%start CompilationUnit
--- 913,917 ----
%type <target> AttributeTarget
! %expect 26
%start CompilationUnit
***************
*** 1275,1278 ****
--- 1275,1282 ----
: PrimaryExpression TypeSuffixes {
MakeBinary(LocalVariableType, $1, $2);
+ }
+ | PrimaryExpression '<' TypeActuals '>' TypeSuffixes {
+ /* TODO: generic type declarations */
+ MakeBinary(LocalVariableType, $1, $5);
}
| BuiltinType TypeSuffixes {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnet/cscc/csharp cs_grammar.y,1.49,1.50,
Rhys Weatherley <address@hidden> <=