|
java词法分析器(23) //////////////字符方法开始/////////////////////////// ///////////////////////////////////////////////////// /** * @roseuid 3D9BB0B40383 */ public char GETBC(char[] sentenceChar) { try { while ( (sentenceChar[this.index]) == ' ') { this.index++; } this.index++; } catch (Java.lang.ArrayIndexOutOfBoundsException e) { return ';'; //表示此行已经结束 } return sentenceChar[index - 1]; } /** * @roseuid 3D9BB0B40383 */ public char GETCHAR(char[] sentenceChar) { next(); return sentenceChar[this.index - 1]; } /** * @roseuid 3D9BB0B40383 */ public void next() { this.index++; } /** * @roseuid 3D9BB0B40383 */ public boolean ISLETTER(char letter) { return Java.lang.Character.isLetter(letter); } /** * @roseuid 3D9BB0B40383 */ public boolean ISDIGIT(char letter) { return Java.lang.Character.isDigit(letter); } /** * @roseuid 3D9BB0B40383 */ public String CONTACT(String TOKEN, char CHAR) { String tmpS = TOKEN + String.valueOf(CHAR); TOKEN = tmpS;
|