|
java词法分析器(14) if (aa.keyWordTable.isKeyWord(TOKEN)) { this.finalAccidence = this.finalAccidence + "[保留字] " + this.returnAWord(TOKEN) + "\n"; } else { this.finalAccidence = this.finalAccidence + "[标识符] " + this.returnAWord(TOKEN) + "[种别码] " + String.valueOf(aa.classIdentity.findKey(IDENTITY)) + "\n"; } //clear up token this.TOKEN = ""; break; //judge ditital case '0':case '1':case '2':case '3':case '4':case '5':case '6':case '7':case '8': case '9': //do this.TOKEN = this.CONTACT(TOKEN, CHAR); //state3 CHAR = this.GETCHAR(sentenceChar);
|