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

[Fwd: SableCC - Success]



-------- Original Message --------
Subject: SableCC - Success
Date: Tue, 21 Mar 2000 23:37:39 +0100
From: Stefan Wagner <h8625330@obelix.wu-wien.ac.at>
To: "Etienne M. Gagnon" <egagnon@j-meg.com>


Hi Etienne!

Success! SableCC 2.13 runs under jdk1.1 and the minibasic parser runs 
under jdk1.1.

You can forward this to the mailing list:
----------------------------------------------

How to use SableCC 2.13 under JDK 1.1.x:


Download the JDK 1.1.x collections implementation from:
	http://java.sun.com/beans/infobus/index.html#DOWNLOAD_COLLECTIONS
Put "collections.jar" in your classpath.

Replace all references to "java.util." with "com.sun.java.util.collections."
in all *.java and *.txt files.

There are two exceptions: "java.util.Stack" and "java.util.StringTokenizer".
I did it by trial and error. "com.sun.java.util.collections.*" contains only
collection classes but "java.util.*" has other classes too. There 
could be more exceptions.

Code like:

import java.util.*;
import com.sun.java.util.collections.*;
...
Hashtable hh = new Hashtable (...

will result in an error because some classes like Hashtable are 
defined in both imports.
In this case import specific classes: import 
com.sun.java.util.collections.Hashtable;

Stefan Wagner
(st.wagner@ieee.org)

----------------------------------------------

Some other remarks about the source code:

I would prefer:
- Seperate archives for .class and .java files
- Unique classnames: SableCC and Grammar are defined twice

I thought java.util.Enumeration is part of the old 1.1 collections 
and has been replaced by com.sun.java.util.collections.Iterator?


Stefan

-- 
------------------------------------------------------------------------------
   Stefan Wagner
   Internet: h8625330@obelix.wu-wien.ac.at                st.wagner@ieee.org
   Fax: +43-1-607 71 57
------------------------------------------------------------------------------