sn = (SimpleNode)parser.parse(new StringReader(expr));
sn = parser.parse(new StringReader(expr));
  public static void main(String[] args) throws IOException {        List expressions = generateTestCases();        FileWriter fw = new FileWriter(    "c:\\Program files\\eclipse\\workspace\\contractTaglets\\expr.html");    fw.write("<html>");    fw.write("\n<style type='text/css'>");    fw.write("\n.contract_contractKeyword {color: red}");    fw.write("\n.contract_javaKeyword {color: blue}");    fw.write("\n</style>");    fw.write("\n<body>");    Parser parser = new Parser(new StringReader(";"));    Iterator iter = expressions.iterator();    while (iter.hasNext()) {      SimpleNode sn = null;      String expr = "";      try {        expr = (String)iter.next();        sn = (SimpleNode)parser.parse(new StringReader(expr));        StringBuffer htmlResult = new StringBuffer("");                HtmlGenerator htmlGenerator = new HtmlGenerator();                        htmlGenerator.visit(sn, htmlResult);                System.out.println(htmlResult.toString());        fw.write("\n<br />------------------------------------------------");        fw.write("\n<br />" + expr);        fw.write("\n<br />" + htmlResult.toString());      } catch (Exception exc) {        System.out.println("Exception!!!!!!!!!!!!!!!!!!!!!!");        exc.printStackTrace();        System.out.println(expr);        System.out.println();      }    }    fw.write("\n<br /></body></html>");    fw.close();  }