[Nice-commit] Nice/src/bossa/parser Parser.jj,1.157,1.158
Brought to you by:
bonniot
|
From: <bo...@us...> - 2003-04-28 20:58:28
|
Update of /cvsroot/nice/Nice/src/bossa/parser
In directory sc8-pr-cvs1:/tmp/cvs-serv4114/src/bossa/parser
Modified Files:
Parser.jj
Log Message:
In a method implementation, binding the type parameters should now
be done in front.
Index: Parser.jj
===================================================================
RCS file: /cvsroot/nice/Nice/src/bossa/parser/Parser.jj,v
retrieving revision 1.157
retrieving revision 1.158
diff -C2 -d -r1.157 -r1.158
*** Parser.jj 28 Apr 2003 18:10:32 -0000 1.157
--- Parser.jj 28 Apr 2003 20:57:53 -0000 1.158
***************
*** 1237,1241 ****
{}
{
! [ "<" typeConstructors() ">" ] identOrBackquoted() [ "<" strings() ">" ] "("
}
--- 1237,1241 ----
{}
{
! [ "<" strings() ">" ] identOrBackquoted() [ "<" strings() ">" ] "("
}
***************
*** 1273,1278 ****
}
{
- name=identOrBackquoted()
[ "<" binders=strings() ">" ]
"("
--- 1273,1288 ----
}
{
[ "<" binders=strings() ">" ]
+
+ name=identOrBackquoted()
+
+ // Deprecated.
+ [ { Token t; }
+ t="<" binders=strings() ">"
+ { User.warning(new Location(t),
+ "This syntax is deprecated.\n" +
+ "Type parameters should now be placed in front of the method implementation.");
+ }
+ ]
"("
|