Responsible for generating the parser for the pretty printer/refactory tool. A majority of the code in this package (and in the ast subpackage) was generated by the automated tool javacc.

There is one bug in the software. The problem is that the javacc parser sometimes has a problem with comments that appear at the end of the file. If you rebuild this software, then you must be sure to manually edit the JavaParserTokenManager software. It has method called getNextToken(). At the end of this method, a TokenMgrError is generated and thrown. If you are at the end of a file, you should just return:

else {

Token result = new Token();
result.kind = JavaParserConstants.EOF;
return result;
}

The code in JavaParser.java has 2 other changes. First, we add the following at the top:

package org.acm.seguin.parser;
import org.acm.seguin.parser.ast.*;
import org.acm.seguin.parser.io.CharStream;

Second you need to change all the UCode_CharStream to just CharStream and all the new CharStream to CharStream.make.