📄 textlexer.java
字号:
literals.put(new ANTLRHashString("sUTC", this), new Integer(53));
literals.put(new ANTLRHashString("setLostTimeout", this), new Integer(158));
literals.put(new ANTLRHashString("r", this), new Integer(165));
literals.put(new ANTLRHashString("rTFN", this), new Integer(242));
literals.put(new ANTLRHashString("kill", this), new Integer(170));
literals.put(new ANTLRHashString("aEF", this), new Integer(232));
literals.put(new ANTLRHashString("sMB", this), new Integer(258));
literals.put(new ANTLRHashString("gTRG", this), new Integer(93));
literals.put(new ANTLRHashString("gSRC", this), new Integer(69));
literals.put(new ANTLRHashString("getAllTriggers", this), new Integer(94));
literals.put(new ANTLRHashString("removeAllSources", this), new Integer(66));
literals.put(new ANTLRHashString("gMD", this), new Integer(55));
literals.put(new ANTLRHashString("rRP", this), new Integer(129));
literals.put(new ANTLRHashString("getValue", this), new Integer(193));
literals.put(new ANTLRHashString("rrid", this), new Integer(161));
literals.put(new ANTLRHashString("sRTO", this), new Integer(183));
literals.put(new ANTLRHashString("TS", this), new Integer(11));
literals.put(new ANTLRHashString("goodbye", this), new Integer(116));
literals.put(new ANTLRHashString("getAllNotificationTriggers", this), new Integer(219));
literals.put(new ANTLRHashString("getNotificationChannel", this), new Integer(84));
literals.put(new ANTLRHashString("gTic", this), new Integer(49));
literals.put(new ANTLRHashString("DS", this), new Integer(13));
literals.put(new ANTLRHashString("raFN", this), new Integer(228));
literals.put(new ANTLRHashString("sLTO", this), new Integer(159));
literals.put(new ANTLRHashString("getAllSources", this), new Integer(70));
literals.put(new ANTLRHashString("removeAllTagSelectors", this), new Integer(98));
literals.put(new ANTLRHashString("gaTS", this), new Integer(103));
literals.put(new ANTLRHashString("gV", this), new Integer(194));
literals.put(new ANTLRHashString("removeAllNotificationTriggers", this), new Integer(215));
literals.put(new ANTLRHashString("gSN", this), new Integer(250));
literals.put(new ANTLRHashString("setDataSelector", this), new Integer(207));
literals.put(new ANTLRHashString("gMB", this), new Integer(256));
literals.put(new ANTLRHashString("getDataSelector", this), new Integer(76));
literals.put(new ANTLRHashString("getObservedTimeout", this), new Integer(152));
literals.put(new ANTLRHashString("removeReadTriggers", this), new Integer(134));
literals.put(new ANTLRHashString("create", this), new Integer(122));
literals.put(new ANTLRHashString("gRT", this), new Integer(139));
literals.put(new ANTLRHashString("addReadTriggers", this), new Integer(132));
literals.put(new ANTLRHashString("fire", this), new Integer(195));
literals.put(new ANTLRHashString("gGTO", this), new Integer(145));
literals.put(new ANTLRHashString("EventType", this), new Integer(20));
literals.put(new ANTLRHashString("gNT", this), new Integer(218));
literals.put(new ANTLRHashString("gaTFN", this), new Integer(246));
literals.put(new ANTLRHashString("gMax", this), new Integer(189));
literals.put(new ANTLRHashString("getObservedThreshold", this), new Integer(148));
literals.put(new ANTLRHashString("getTagSelector", this), new Integer(100));
literals.put(new ANTLRHashString("RD", this), new Integer(5));
literals.put(new ANTLRHashString("removeTriggers", this), new Integer(88));
literals.put(new ANTLRHashString("setAddress", this), new Integer(205));
literals.put(new ANTLRHashString("rFN", this), new Integer(226));
literals.put(new ANTLRHashString("gaDS", this), new Integer(79));
literals.put(new ANTLRHashString("gMRDC", this), new Integer(177));
literals.put(new ANTLRHashString("getLength", this), new Integer(263));
literals.put(new ANTLRHashString("isFX", this), new Integer(125));
literals.put(new ANTLRHashString("aRT", this), new Integer(133));
literals.put(new ANTLRHashString("setGlimpsedTimeout", this), new Integer(146));
literals.put(new ANTLRHashString("getManufacturerDescription", this), new Integer(54));
literals.put(new ANTLRHashString("setReadTimeout", this), new Integer(182));
literals.put(new ANTLRHashString("removeAllDataSelectors", this), new Integer(74));
literals.put(new ANTLRHashString("aNT", this), new Integer(212));
literals.put(new ANTLRHashString("getAllDataSelectors", this), new Integer(78));
literals.put(new ANTLRHashString("gTF", this), new Integer(109));
literals.put(new ANTLRHashString("gT", this), new Integer(192));
literals.put(new ANTLRHashString("ReaderDevice", this), new Integer(4));
literals.put(new ANTLRHashString("aTFN", this), new Integer(240));
literals.put(new ANTLRHashString("NC", this), new Integer(15));
literals.put(new ANTLRHashString("removeNotificatonTriggers", this), new Integer(213));
literals.put(new ANTLRHashString("wid", this), new Integer(167));
literals.put(new ANTLRHashString("readQueuedData", this), new Integer(221));
literals.put(new ANTLRHashString("setReadCyclesPerTrigger", this), new Integer(174));
literals.put(new ANTLRHashString("getTrigger", this), new Integer(92));
literals.put(new ANTLRHashString("sR", this), new Integer(47));
literals.put(new ANTLRHashString("getType", this), new Integer(191));
literals.put(new ANTLRHashString("TagSelector", this), new Integer(10));
literals.put(new ANTLRHashString("getCurrentSource", this), new Integer(56));
literals.put(new ANTLRHashString("rTRG", this), new Integer(89));
literals.put(new ANTLRHashString("gR", this), new Integer(45));
literals.put(new ANTLRHashString("gaNC", this), new Integer(87));
literals.put(new ANTLRHashString("rSRC", this), new Integer(65));
}
public Token nextToken() throws TokenStreamException {
Token theRetToken=null;
tryAgain:
for (;;) {
Token _token = null;
int _ttype = Token.INVALID_TYPE;
resetText();
try { // for char stream error handling
try { // for lexical error handling
switch ( LA(1)) {
case '\t': case ' ':
{
mWS(true);
theRetToken=_returnToken;
break;
}
case '\n': case '\r':
{
mLF(true);
theRetToken=_returnToken;
break;
}
case '#':
{
mSHARP(true);
theRetToken=_returnToken;
break;
}
case '.':
{
mDOT(true);
theRetToken=_returnToken;
break;
}
case '!':
{
mEXCLAMATION(true);
theRetToken=_returnToken;
break;
}
case ',':
{
mCOMMA(true);
theRetToken=_returnToken;
break;
}
case '{':
{
mLBRACKET(true);
theRetToken=_returnToken;
break;
}
case '}':
{
mRBRACKET(true);
theRetToken=_returnToken;
break;
}
case '=':
{
mASSIGN(true);
theRetToken=_returnToken;
break;
}
case '\\':
{
mESCAPE(true);
theRetToken=_returnToken;
break;
}
case '1': case '2': case '3': case '4':
case '5': case '6': case '7': case '8':
case '9':
{
mINT(true);
theRetToken=_returnToken;
break;
}
case 'A': case 'B': case 'C': case 'D':
case 'E': case 'F': case 'G': case 'H':
case 'I': case 'J': case 'K': case 'L':
case 'M': case 'N': case 'O': case 'P':
case 'Q': case 'R': case 'S': case 'T':
case 'U': case 'V': case 'W': case 'X':
case 'Y': case 'Z': case 'a': case 'b':
case 'c': case 'd': case 'e': case 'f':
case 'g': case 'h': case 'i': case 'j':
case 'k': case 'l': case 'm': case 'n':
case 'o': case 'p': case 'q': case 'r':
case 's': case 't': case 'u': case 'v':
case 'w': case 'x': case 'y': case 'z':
{
mIDENT(true);
theRetToken=_returnToken;
break;
}
default:
{
if (LA(1)==EOF_CHAR) {uponEOF(); _returnToken = makeToken(Token.EOF_TYPE);}
else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
}
}
if ( _returnToken==null ) continue tryAgain; // found SKIP token
_ttype = _returnToken.getType();
_ttype = testLiteralsTable(_ttype);
_returnToken.setType(_ttype);
return _returnToken;
}
catch (RecognitionException e) {
throw new TokenStreamRecognitionException(e);
}
}
catch (CharStreamException cse) {
if ( cse instanceof CharStreamIOException ) {
throw new TokenStreamIOException(((CharStreamIOException)cse).io);
}
else {
throw new TokenStreamException(cse.getMessage());
}
}
}
}
public final void mWS(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
int _ttype; Token _token=null; int _begin=text.length();
_ttype = WS;
int _saveIndex;
{
switch ( LA(1)) {
case ' ':
{
match(' ');
break;
}
case '\t':
{
match('\t');
break;
}
default:
{
throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
}
}
}
_ttype = Token.SKIP;
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
_token = makeToken(_ttype);
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
}
_returnToken = _token;
}
public final void mLF(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
int _ttype; Token _token=null; int _begin=text.length();
_ttype = LF;
int _saveIndex;
{
if ((LA(1)=='\r') && (LA(2)=='\n')) {
match("\r\n");
}
else if ((LA(1)=='\r') && (true)) {
match('\r');
}
else if ((LA(1)=='\n')) {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -