public class CreateJavaTokenizer {
public static void main(String[] args) throws IOException {
InputStream res = CreateJavaTokenizer.class.getClassLoader().getResourceAsStream("org/allspice/javacompiler/java.tok");
InputStreamReader r = new InputStreamReader(res) ;
Tok builder;
try {
builder = TOKParser.parseTok(r);
} catch (SyntaxError e) {
System.err.println(e.getLocalizedMessage());
return ;
}
FileWriter writer = new FileWriter("src/org/allspice/javacompiler/JavaTokenizer.java");
builder.spew("org.allspice.javacompiler","JavaTokenizer",writer) ;
writer.close() ;
}