dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnet/cscc/csharp cs_grammar.y,1.50,1.51


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnet/cscc/csharp cs_grammar.y,1.50,1.51
Date: Fri, 21 Feb 2003 01:03:27 -0500

Update of /cvsroot/dotgnu-pnet/pnet/cscc/csharp
In directory subversions:/tmp/cvs-serv8701/cscc/csharp

Modified Files:
        cs_grammar.y 
Log Message:


Handle generic method calls such as "A<T>(x)".


Index: cs_grammar.y
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/cscc/csharp/cs_grammar.y,v
retrieving revision 1.50
retrieving revision 1.51
diff -C2 -r1.50 -r1.51
*** cs_grammar.y        21 Feb 2003 04:42:10 -0000      1.50
--- cs_grammar.y        21 Feb 2003 06:03:25 -0000      1.51
***************
*** 848,852 ****
  %type <node>          InvocationExpression ExpressionList
  %type <node>          ObjectCreationExpression OptArgumentList ArgumentList
! %type <node>          Argument PrefixedUnaryExpression
  
  %type <node>          Statement EmbeddedStatement Block OptStatementList
--- 848,852 ----
  %type <node>          InvocationExpression ExpressionList
  %type <node>          ObjectCreationExpression OptArgumentList ArgumentList
! %type <node>          Argument PrefixedUnaryExpression GenericReference
  
  %type <node>          Statement EmbeddedStatement Block OptStatementList
***************
*** 1667,1671 ****
                                MakeBinary(AsUntyped, $1, $3);
                        }
!       | RelationalExpression '<' ShiftExpression '>'          {
                                /* TODO: generic type reference */
                                $$ = $1;
--- 1667,1680 ----
                                MakeBinary(AsUntyped, $1, $3);
                        }
!       | GenericReference                                                      
        {
!                               $$ = $1;
!                       }
!       | GenericReference '(' OptArgumentList ')'              {
!                               MakeBinary(InvocationExpression, $1, $3); 
!                       }
!       ;
! 
! GenericReference
!       : RelationalExpression '<' ShiftExpression '>'          {
                                /* TODO: generic type reference */
                                $$ = $1;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]