121 /** |
121 /** |
122 * Returns a detailed message for the Error when it is thrown by the |
122 * Returns a detailed message for the Error when it is thrown by the |
123 * token manager to indicate a lexical error. |
123 * token manager to indicate a lexical error. |
124 * Parameters : |
124 * Parameters : |
125 * EOFSeen : indicates if EOF caused the lexicl error |
125 * EOFSeen : indicates if EOF caused the lexicl error |
126 * curLexState : lexical state in which this error occured |
126 * curLexState : lexical state in which this error occurred |
127 * errorLine : line number when the error occured |
127 * errorLine : line number when the error occurred |
128 * errorColumn : column number when the error occured |
128 * errorColumn : column number when the error occurred |
129 * errorAfter : prefix that was seen before this error occured |
129 * errorAfter : prefix that was seen before this error occurred |
130 * curchar : the offending character |
130 * curchar : the offending character |
131 * Note: You can customize the lexical error message by modifying this method. |
131 * Note: You can customize the lexical error message by modifying this method. |
132 */ |
132 */ |
133 private static final String LexicalError(boolean EOFSeen, int lexState, int errorLine, int errorColumn, String errorAfter, char curChar) { |
133 private static final String LexicalError(boolean EOFSeen, int lexState, int errorLine, int errorColumn, String errorAfter, char curChar) { |
134 return("Lexical error at line " + |
134 return("Lexical error at line " + |