Update of /cvsroot/nice/Nice/src/bossa/syntax
In directory sc8-pr-cvs1:/tmp/cvs-serv13534/src/bossa/syntax
Modified Files:
MethodDeclaration.java MethodBodyDefinition.java
Log Message:
The deprecated 'main(args) { ... }' syntax for the main function is not
supported anymore.
Index: MethodDeclaration.java
===================================================================
RCS file: /cvsroot/nice/Nice/src/bossa/syntax/MethodDeclaration.java,v
retrieving revision 1.44
retrieving revision 1.45
diff -C2 -d -r1.44 -r1.45
*** MethodDeclaration.java 25 Jul 2003 16:13:10 -0000 1.44
--- MethodDeclaration.java 26 Aug 2003 16:07:58 -0000 1.45
***************
*** 269,280 ****
}
- /**
- @return true if this method is the 'main' of the program
- */
- public final boolean isMain()
- {
- return arity == 1 && "main".equals(name.content);
- }
-
String explainWhyMatchFails(Arguments arguments)
{
--- 269,272 ----
Index: MethodBodyDefinition.java
===================================================================
RCS file: /cvsroot/nice/Nice/src/bossa/syntax/MethodBodyDefinition.java,v
retrieving revision 1.138
retrieving revision 1.139
diff -C2 -d -r1.138 -r1.139
*** MethodBodyDefinition.java 8 Aug 2003 11:12:53 -0000 1.138
--- MethodBodyDefinition.java 26 Aug 2003 16:07:58 -0000 1.139
***************
*** 153,159 ****
alternative = new bossa.link.SourceAlternative(this);
- if (d.isMain())
- User.warning(this, "This syntax for the main function is deprecated.\nPlease use instead the following:\n\nvoid main(String[] args)\n{\n ...\n}");
-
parameters = buildSymbols(this.formals, declaration.getArgTypes());
scope.addSymbols(parameters);
--- 153,156 ----
|