|
java词法分析器(15) while (this.ISDIGIT(CHAR)) { this.TOKEN = this.CONTACT(TOKEN, CHAR); CHAR = this.GETCHAR(sentenceChar); } this.RETRACT(); //state4 this.finalAccidence = this.finalAccidence + "[数字] " + this.returnAWord(TOKEN) + "[种别码] " + String.valueOf(aa.classIdentity.findKey(DIGIT)) + "\n"; //clear up token this.TOKEN = ""; break; case '=': //state5 this.TOKEN = this.CONTACT(TOKEN, CHAR); this.finalAccidence = this.finalAccidence + "[等号] " + this.returnAWord(TOKEN) + "[种别码] " + String.valueOf(aa.classIdentity.findKey(String.valueOf(CHAR))) + "\n"; //clear up token
|