logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Nice/src/bossa/syntax EmptyStmt.java,1.1,1.2 TryStmt.java,1.13,1.14: msg#00062

Subject: Nice/src/bossa/syntax EmptyStmt.java,1.1,1.2 TryStmt.java,1.13,1.14
Update of /cvsroot/nice/Nice/src/bossa/syntax
In directory sc8-pr-cvs1:/tmp/cvs-serv6475/F:/nice/src/bossa/syntax

Modified Files:
        EmptyStmt.java TryStmt.java 
Log Message:
Fix printing of TryStaments and EmptyStaments.

Index: EmptyStmt.java
===================================================================
RCS file: /cvsroot/nice/Nice/src/bossa/syntax/EmptyStmt.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** EmptyStmt.java      9 May 2003 13:17:03 -0000       1.1
--- EmptyStmt.java      19 Oct 2003 00:16:29 -0000      1.2
***************
*** 32,34 ****
--- 32,39 ----
      return gnu.expr.QuoteExp.voidExp;
    }
+ 
+   public String toString()
+   {
+     return ";\n";
+   }
  }

Index: TryStmt.java
===================================================================
RCS file: /cvsroot/nice/Nice/src/bossa/syntax/TryStmt.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** TryStmt.java        22 Oct 2002 16:57:53 -0000      1.13
--- TryStmt.java        19 Oct 2003 00:16:29 -0000      1.14
***************
*** 72,76 ****
    public String toString()
    {
!     return "try ...";
    }
  
--- 72,87 ----
    public String toString()
    {
!     String res = "try\n" + body;
! 
!     for(Iterator i = catches.iterator(); i.hasNext();)
!       {
!       Catch c = (Catch) i.next();
!         res += "catch (" + c.t + " " + c.var + ")\n" + c.body;
!       }
! 
!     if (finallyBody != null)
!       res += "finally " + finallyBody;
! 
!     return res;
    }
  




-------------------------------------------------------
This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo
The Event For Linux Datacenter Solutions & Strategies in The Enterprise 
Linux in the Boardroom; in the Front Office; & in the Server Room 
http://www.enterpriselinuxforum.com


<Prev in Thread] Current Thread [Next in Thread>