Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/* The following code was generated by JFlex 1.4.3 on 2/08/15 8:21 PM */
package net.ripe.db.whois.common.generated;
import net.ripe.db.whois.common.rpsl.ParserHelper;
/*
filename: peer.flex
description:
Defines the tokenizer for an RPSL peer attribute.
notes:
Tokens are defined in the associated grammar, peer.y.
*/
/**
* This class is a scanner generated by
* JFlex 1.4.3
* on 2/08/15 8:21 PM from the specification file
* /Users/benjamin/Uni/COMP3500/rpsl4j-parser/src/main/parser/jflex/peer.flex
*/
public class PeerLexer implements net.ripe.db.whois.common.rpsl.AttributeLexer {
/** This character denotes the end of file */
public static final int YYEOF = -1;
/** initial size of the lookahead buffer */
private static final int ZZ_BUFFERSIZE = 16384;
/** lexical states */
public static final int YYINITIAL = 0;
/**
* ZZ_LEXSTATE[l] is the state in the DFA for the lexical state l
* ZZ_LEXSTATE[l+1] is the state in the DFA for the lexical state l
* at the beginning of a line
* l is of the form l = 2*k, k a non negative integer
*/
private static final int ZZ_LEXSTATE[] = {
0, 0
};
/**
* Translates characters to character classes
*/
private static final String ZZ_CMAP_PACKED =
"\11\0\1\26\1\26\25\0\1\26\14\0\1\4\1\2\1\0\1\1"+
"\1\20\1\21\1\16\1\17\1\23\1\24\1\25\1\22\1\15\1\41"+
"\6\0\1\14\1\40\1\36\1\32\1\34\1\30\1\10\1\3\1\35"+
"\2\3\1\31\1\33\1\7\1\27\1\5\1\3\1\6\1\13\1\12"+
"\1\3\1\37\4\3\4\0\1\11\1\0\1\14\1\40\1\36\1\32"+
"\1\34\1\30\1\10\1\3\1\35\2\3\1\31\1\33\1\7\1\27"+
"\1\5\1\3\1\6\1\13\1\12\1\3\1\37\4\3\uff85\0";
/**
* Translates characters to character classes
*/
private static final char [] ZZ_CMAP = zzUnpackCMap(ZZ_CMAP_PACKED);
/**
* Translates DFA states to action switch labels.
*/
private static final int [] ZZ_ACTION = zzUnpackAction();
private static final String ZZ_ACTION_PACKED_0 =
"\1\0\1\1\1\2\5\3\1\4\7\3\2\0\16\3"+
"\1\0\4\3\1\5\1\3\1\6\1\3\3\6\3\3"+
"\1\0\1\5\1\3\1\0\2\3\1\0\3\3\1\0"+
"\1\7\2\6\2\3\1\10\2\0\2\3\1\0\1\3"+
"\3\0\2\6\2\0\1\11\1\12\1\13\4\0\2\6"+
"\1\0\1\14\11\0\2\6\12\0\2\6\10\0\2\6"+
"\1\15\1\0\4\11\1\0\4\13\2\0\2\6\1\0"+
"\2\11\1\0\2\13\2\0\1\6\1\0\2\11\1\0"+
"\2\13\2\0\2\11\2\13\2\0\2\11\2\13\2\0"+
"\2\11\2\13\1\0\2\11\2\13\2\11\2\13\1\11"+
"\1\13";
private static int [] zzUnpackAction() {
int [] result = new int[180];
int offset = 0;
offset = zzUnpackAction(ZZ_ACTION_PACKED_0, offset, result);
return result;
}
private static int zzUnpackAction(String packed, int offset, int [] result) {
int i = 0; /* index in packed string */
int j = offset; /* index in unpacked array */
int l = packed.length();
while (i < l) {
int count = packed.charAt(i++);
int value = packed.charAt(i++);
do result[j++] = value; while (--count > 0);
}
return j;
}
/**
* Translates a state to a row index in the transition table
*/
private static final int [] ZZ_ROWMAP = zzUnpackRowMap();
private static final String ZZ_ROWMAP_PACKED_0 =
"\0\0\0\42\0\104\0\146\0\210\0\252\0\314\0\356"+
"\0\u0110\0\u0132\0\u0154\0\u0176\0\u0198\0\u01ba\0\u01dc\0\u01fe"+
"\0\u0220\0\146\0\u0242\0\u0264\0\u0286\0\u02a8\0\u02ca\0\u02ec"+
"\0\u030e\0\u0330\0\u0352\0\u0374\0\u0396\0\u03b8\0\u03da\0\u03fc"+
"\0\u041e\0\u0440\0\u0462\0\u0484\0\u04a6\0\u04c8\0\u04ea\0\u050c"+
"\0\u052e\0\u0550\0\u0572\0\u0594\0\u05b6\0\u05d8\0\u05fa\0\u061c"+
"\0\146\0\u063e\0\u0660\0\u0682\0\u06a4\0\u06c6\0\u06e8\0\u070a"+
"\0\u072c\0\u074e\0\146\0\u0770\0\u0792\0\u07b4\0\u07d6\0\146"+
"\0\u07f8\0\u081a\0\u083c\0\u085e\0\u0880\0\u08a2\0\u08c4\0\u08e6"+
"\0\u0908\0\u092a\0\u094c\0\u096e\0\u0990\0\u09b2\0\u050c\0\u09d4"+
"\0\u09f6\0\u0a18\0\u0a3a\0\u0a5c\0\u0a7e\0\u0aa0\0\u0ac2\0\u0990"+
"\0\u0ae4\0\u0b06\0\u0b28\0\u0b4a\0\u0b6c\0\u0b8e\0\u0bb0\0\u0bd2"+
"\0\u0bf4\0\u0c16\0\u0c38\0\u0c5a\0\u0c7c\0\u0c9e\0\u0cc0\0\u0ce2"+
"\0\u0d04\0\u0d26\0\u0d48\0\u0d6a\0\u0d8c\0\u0dae\0\u0dd0\0\u0df2"+
"\0\u0e14\0\u0e36\0\u0e58\0\u0e7a\0\u0e9c\0\u0ebe\0\u0ee0\0\u0f02"+
"\0\u0f24\0\42\0\u0f46\0\u0f68\0\u0f8a\0\u0fac\0\u0fce\0\u0ff0"+
"\0\u1012\0\u1034\0\u1056\0\u1078\0\u109a\0\u10bc\0\u10de\0\u1100"+
"\0\u1122\0\u1144\0\u1166\0\u1188\0\u11aa\0\u11cc\0\u11ee\0\u1210"+
"\0\u1232\0\u1254\0\u1276\0\u1298\0\u12ba\0\u12dc\0\u12fe\0\u1320"+
"\0\u1342\0\u1364\0\u1386\0\u13a8\0\u13ca\0\u13ec\0\u140e\0\u1430"+
"\0\u1452\0\u1474\0\u1496\0\u14b8\0\u14da\0\u14fc\0\u151e\0\u1540"+
"\0\u1562\0\u1584\0\u15a6\0\u15c8\0\u15ea\0\u160c\0\u162e\0\u1650"+
"\0\u1672\0\u1694\0\u16b6\0\u16d8";
private static int [] zzUnpackRowMap() {
int [] result = new int[180];
int offset = 0;
offset = zzUnpackRowMap(ZZ_ROWMAP_PACKED_0, offset, result);
return result;
}
private static int zzUnpackRowMap(String packed, int offset, int [] result) {
int i = 0; /* index in packed string */
int j = offset; /* index in unpacked array */
int l = packed.length();
while (i < l) {
int high = packed.charAt(i++) << 16;
result[j++] = high | packed.charAt(i++);
}
return j;
}
/**
* The transition table of the DFA
*/
private static final int [] ZZ_TRANS = zzUnpackTrans();
private static final String ZZ_TRANS_PACKED_0 =
"\1\2\1\3\1\2\1\4\1\2\1\5\1\6\2\4"+
"\1\2\1\4\1\7\1\10\11\3\1\11\1\12\1\13"+
"\1\4\1\14\1\15\1\4\1\16\1\17\1\4\1\20"+
"\1\2\43\0\1\3\1\21\12\0\11\3\15\0\1\4"+
"\1\0\1\4\1\22\4\4\1\0\14\4\1\0\12\4"+
"\2\0\1\4\1\0\1\4\1\22\1\4\1\23\2\4"+
"\1\0\14\4\1\0\5\4\1\24\1\25\3\4\2\0"+
"\1\4\1\0\1\4\1\22\4\4\1\0\1\26\13\4"+
"\1\0\6\4\1\27\3\4\2\0\1\4\1\0\1\4"+
"\1\22\4\4\1\0\1\30\13\4\1\0\12\4\2\0"+
"\1\4\1\0\1\4\1\22\4\4\1\0\1\4\1\31"+
"\12\4\1\0\12\4\27\0\1\11\14\0\1\4\1\0"+
"\1\4\1\22\4\4\1\0\1\4\1\32\12\4\1\0"+
"\12\4\2\0\1\4\1\0\1\4\1\22\4\4\1\0"+
"\14\4\1\0\2\4\1\33\7\4\2\0\1\4\1\0"+
"\1\4\1\22\4\4\1\0\14\4\1\0\10\4\1\34"+
"\1\4\2\0\1\4\1\0\1\4\1\22\4\4\1\0"+
"\14\4\1\0\1\12\11\4\2\0\1\4\1\0\1\4"+
"\1\22\3\4\1\35\1\0\1\4\1\36\12\4\1\0"+
"\12\4\2\0\1\4\1\0\1\4\1\22\4\4\1\0"+
"\14\4\1\0\11\4\1\37\2\0\1\4\1\0\1\4"+
"\1\22\3\4\1\40\1\0\14\4\1\0\12\4\2\0"+
"\1\41\13\0\11\41\15\0\1\4\1\0\1\4\1\22"+
"\2\4\1\42\1\4\1\0\14\4\1\0\12\4\2\0"+
"\1\4\1\0\1\4\1\22\4\4\1\0\14\4\1\0"+
"\5\4\1\43\4\4\2\0\1\4\1\0\1\4\1\22"+
"\4\4\1\0\14\4\1\0\4\4\1\44\5\4\2\0"+
"\1\4\1\0\1\4\1\22\1\4\1\45\2\4\1\0"+
"\14\4\1\0\12\4\2\0\1\4\1\0\1\4\1\22"+
"\1\46\3\4\1\0\14\4\1\0\12\4\2\0\1\4"+
"\1\0\1\4\1\22\4\4\1\0\2\4\1\47\11\4"+
"\1\0\12\4\2\0\1\50\1\0\1\4\1\22\2\4"+
"\1\51\1\4\1\0\3\4\1\52\1\53\1\54\2\53"+
"\4\52\1\0\12\4\2\0\1\4\1\0\1\4\1\22"+
"\1\55\3\4\1\0\14\4\1\0\12\4\2\0\1\4"+
"\1\0\1\4\1\22\4\4\1\0\2\4\1\56\11\4"+
"\1\0\12\4\2\0\1\4\1\0\1\4\1\22\4\4"+
"\1\0\14\4\1\0\4\4\1\35\5\4\2\0\1\4"+
"\1\0\1\4\1\22\1\4\1\57\2\4\1\0\14\4"+
"\1\0\12\4\2\0\1\4\1\0\1\4\1\60\4\4"+
"\1\0\14\4\1\0\12\4\2\0\1\4\1\0\1\4"+
"\1\22\4\4\1\0\1\61\13\4\1\0\12\4\2\0"+
"\1\4\1\0\1\4\1\22\1\62\3\4\1\0\14\4"+
"\1\0\12\4\2\0\1\41\1\63\12\0\11\41\15\0"+
"\1\4\1\0\1\4\1\22\3\4\1\64\1\0\14\4"+
"\1\0\12\4\2\0\1\4\1\0\1\4\1\22\1\4"+
"\1\65\2\4\1\0\14\4\1\0\12\4\2\0\1\4"+
"\1\0\1\4\1\66\4\4\1\0\14\4\1\0\12\4"+
"\2\0\1\4\1\0\1\4\1\22\4\4\1\0\1\4"+
"\1\67\12\4\1\0\12\4\2\0\1\4\1\0\1\4"+
"\1\22\2\4\1\70\1\4\1\0\14\4\1\0\12\4"+
"\2\0\1\4\1\0\1\4\1\22\4\4\1\0\1\71"+
"\13\4\1\0\12\4\2\0\1\4\1\0\1\4\1\22"+
"\4\4\1\0\14\4\1\0\12\4\1\72\1\0\1\4"+
"\1\0\1\4\1\22\4\4\1\0\14\4\1\0\1\73"+
"\11\4\2\0\1\74\1\0\1\4\1\22\4\4\1\0"+
"\3\4\11\74\1\0\12\4\1\72\1\0\1\52\1\0"+
"\1\4\1\22\4\4\1\0\3\4\11\52\1\0\12\4"+
"\1\72\1\0\1\52\1\0\1\4\1\22\4\4\1\0"+
"\3\4\3\74\1\52\1\75\4\74\1\0\12\4\1\72"+
"\1\0\1\4\1\0\1\4\1\22\4\4\1\0\14\4"+
"\1\0\1\4\1\61\10\4\2\0\1\4\1\0\1\4"+
"\1\22\1\76\3\4\1\0\14\4\1\0\12\4\2\0"+
"\1\4\1\0\1\4\1\22\1\61\3\4\1\0\14\4"+
"\1\0\12\4\2\0\1\4\1\0\1\4\1\22\4\4"+
"\1\0\14\4\1\0\6\4\1\77\3\4\2\0\1\4"+
"\1\0\1\4\1\22\4\4\1\0\5\4\1\100\6\4"+
"\1\0\12\4\2\0\1\101\13\0\11\101\15\0\1\4"+
"\1\0\1\4\1\102\4\4\1\0\14\4\1\0\12\4"+
"\2\0\1\4\1\0\1\4\1\22\4\4\1\0\2\4"+
"\1\103\11\4\1\0\12\4\2\0\1\4\1\0\1\4"+
"\1\22\4\4\1\0\1\4\1\104\12\4\1\0\3\4"+
"\1\104\6\4\2\0\1\4\1\0\1\4\1\105\4\4"+
"\1\0\14\4\1\0\12\4\2\0\1\4\1\0\1\4"+
"\1\22\3\4\1\61\1\0\14\4\1\0\12\4\2\0"+
"\1\4\1\0\1\4\1\22\4\4\1\0\14\4\1\0"+
"\6\4\1\106\3\4\6\0\1\107\1\110\5\0\1\111"+
"\26\0\1\112\1\0\1\4\1\22\4\4\1\0\3\4"+
"\11\112\1\0\12\4\1\72\1\0\1\74\1\0\1\4"+
"\1\22\4\4\1\0\3\4\1\113\10\74\1\0\12\4"+
"\1\72\1\0\1\4\1\0\1\4\1\22\4\4\1\114"+
"\14\4\1\0\12\4\2\0\1\4\1\0\1\4\1\22"+
"\4\4\1\0\1\4\1\61\12\4\1\0\12\4\2\0"+
"\1\101\1\115\12\0\11\101\15\0\1\116\1\0\1\116"+
"\1\102\4\116\1\102\14\116\1\0\12\116\2\0\1\4"+
"\1\0\1\4\1\22\4\4\1\0\1\4\1\117\12\4"+
"\1\0\12\4\2\0\1\4\1\0\1\4\1\22\4\4"+
"\1\0\14\4\1\0\4\4\1\61\5\4\2\0\1\120"+
"\1\0\1\120\1\105\4\120\1\105\14\120\1\0\12\120"+
"\2\0\1\4\1\0\1\4\1\22\4\4\1\0\14\4"+
"\1\0\7\4\1\61\2\4\7\0\1\121\25\0\1\122"+
"\17\0\1\123\42\0\1\124\27\0\1\125\1\0\1\4"+
"\1\22\4\4\1\0\3\4\11\125\1\0\12\4\1\72"+
"\1\0\1\112\1\0\1\4\1\22\4\4\1\0\3\4"+
"\1\125\1\112\1\126\2\112\4\125\1\0\12\4\1\72"+
"\32\0\1\127\10\0\1\130\13\0\11\130\15\0\1\116"+
"\1\0\1\116\1\102\4\116\1\102\14\116\1\0\12\116"+
"\1\131\1\0\1\120\1\0\1\120\1\105\4\120\1\105"+
"\14\120\1\0\12\120\1\132\7\0\1\133\66\0\1\134"+
"\13\0\1\135\34\0\1\136\13\0\1\137\1\140\1\141"+
"\2\140\4\137\15\0\1\142\1\0\1\4\1\22\4\4"+
"\1\0\3\4\11\142\1\0\12\4\1\72\1\0\1\125"+
"\1\0\1\4\1\22\4\4\1\0\3\4\1\143\10\125"+
"\1\0\12\4\1\72\14\0\1\144\32\0\1\145\6\0"+
"\1\146\32\0\1\147\1\110\5\0\1\150\35\0\1\151"+
"\37\0\1\152\46\0\1\153\67\0\1\72\1\0\1\154"+
"\13\0\11\154\13\0\1\72\1\0\1\137\13\0\11\137"+
"\13\0\1\72\1\0\1\137\13\0\3\154\1\137\1\155"+
"\4\154\13\0\1\72\1\0\1\156\1\0\1\4\1\22"+
"\4\4\1\0\3\4\11\156\1\0\12\4\1\72\1\0"+
"\1\142\1\0\1\4\1\22\4\4\1\0\3\4\1\156"+
"\4\142\1\156\1\142\1\157\1\156\1\0\12\4\1\72"+
"\33\0\1\160\14\0\1\121\25\0\1\161\20\0\1\162"+
"\62\0\1\163\20\0\1\164\32\0\1\102\51\0\1\165"+
"\31\0\1\105\36\0\1\166\13\0\11\166\13\0\1\72"+
"\1\0\1\154\13\0\1\167\10\154\13\0\1\72\1\0"+
"\1\170\1\0\1\4\1\22\4\4\1\0\3\4\11\170"+
"\1\0\12\4\1\72\1\0\1\156\1\0\1\4\1\22"+
"\4\4\1\0\3\4\1\170\4\156\1\170\2\156\1\171"+
"\1\0\12\4\1\72\5\0\1\172\70\0\1\173\6\0"+
"\1\174\13\0\1\175\1\176\1\177\2\176\4\175\50\0"+
"\1\200\6\0\1\201\13\0\1\202\1\203\1\204\2\203"+
"\4\202\27\0\1\136\27\0\1\205\13\0\11\205\13\0"+
"\1\72\1\0\1\166\13\0\1\205\1\166\1\206\2\166"+
"\4\205\13\0\1\72\1\0\1\207\1\0\1\4\1\22"+
"\4\4\1\0\3\4\11\207\1\0\12\4\1\72\1\0"+
"\1\170\1\0\1\4\1\22\4\4\1\0\3\4\3\207"+
"\1\170\1\210\4\207\1\0\12\4\1\72\6\0\1\211"+
"\74\0\1\131\1\0\1\212\13\0\11\212\13\0\1\131"+
"\1\0\1\175\13\0\11\175\13\0\1\131\1\0\1\175"+
"\13\0\3\212\1\175\1\213\4\212\13\0\1\131\6\0"+
"\1\214\74\0\1\132\1\0\1\215\13\0\11\215\13\0"+
"\1\132\1\0\1\202\13\0\11\202\13\0\1\132\1\0"+
"\1\202\13\0\3\215\1\202\1\216\4\215\13\0\1\132"+
"\1\0\1\217\13\0\11\217\13\0\1\72\1\0\1\205"+
"\13\0\1\220\10\205\13\0\1\72\1\0\1\50\1\0"+
"\1\4\1\22\4\4\1\0\3\4\11\50\1\0\12\4"+
"\1\72\1\0\1\207\1\0\1\4\1\22\4\4\1\0"+
"\3\4\1\221\10\207\1\0\12\4\1\72\14\0\1\222"+
"\26\0\1\223\13\0\11\223\13\0\1\131\1\0\1\212"+
"\13\0\1\224\10\212\13\0\1\131\14\0\1\225\26\0"+
"\1\226\13\0\11\226\13\0\1\132\1\0\1\215\13\0"+
"\1\227\10\215\13\0\1\132\1\0\1\230\13\0\11\230"+
"\13\0\1\72\1\0\1\217\13\0\1\230\4\217\1\230"+
"\1\217\1\231\1\230\13\0\1\72\1\0\1\50\1\0"+
"\1\4\1\22\4\4\1\0\4\4\4\50\1\4\1\50"+
"\2\4\1\0\12\4\1\72\13\0\1\174\27\0\1\232"+
"\13\0\11\232\13\0\1\131\1\0\1\223\13\0\1\232"+
"\1\223\1\233\2\223\4\232\13\0\1\131\13\0\1\201"+
"\27\0\1\234\13\0\11\234\13\0\1\132\1\0\1\226"+
"\13\0\1\234\1\226\1\235\2\226\4\234\13\0\1\132"+
"\1\0\1\236\13\0\11\236\13\0\1\72\1\0\1\230"+
"\13\0\1\236\4\230\1\236\2\230\1\237\13\0\1\72"+
"\1\0\1\240\13\0\11\240\13\0\1\131\1\0\1\232"+
"\13\0\1\241\10\232\13\0\1\131\1\0\1\242\13\0"+
"\11\242\13\0\1\132\1\0\1\234\13\0\1\243\10\234"+
"\13\0\1\132\1\0\1\244\13\0\11\244\13\0\1\72"+
"\1\0\1\236\13\0\3\244\1\236\1\245\4\244\13\0"+
"\1\72\1\0\1\246\13\0\11\246\13\0\1\131\1\0"+
"\1\240\13\0\1\246\4\240\1\246\1\240\1\247\1\246"+
"\13\0\1\131\1\0\1\250\13\0\11\250\13\0\1\132"+
"\1\0\1\242\13\0\1\250\4\242\1\250\1\242\1\251"+
"\1\250\13\0\1\132\1\0\1\136\13\0\11\136\13\0"+
"\1\72\1\0\1\244\13\0\1\252\10\244\13\0\1\72"+
"\1\0\1\253\13\0\11\253\13\0\1\131\1\0\1\246"+
"\13\0\1\253\4\246\1\253\2\246\1\254\13\0\1\131"+
"\1\0\1\255\13\0\11\255\13\0\1\132\1\0\1\250"+
"\13\0\1\255\4\250\1\255\2\250\1\256\13\0\1\132"+
"\1\0\1\136\14\0\4\136\1\0\1\136\15\0\1\72"+
"\1\0\1\257\13\0\11\257\13\0\1\131\1\0\1\253"+
"\13\0\3\257\1\253\1\260\4\257\13\0\1\131\1\0"+
"\1\261\13\0\11\261\13\0\1\132\1\0\1\255\13\0"+
"\3\261\1\255\1\262\4\261\13\0\1\132\1\0\1\174"+
"\13\0\11\174\13\0\1\131\1\0\1\257\13\0\1\263"+
"\10\257\13\0\1\131\1\0\1\201\13\0\11\201\13\0"+
"\1\132\1\0\1\261\13\0\1\264\10\261\13\0\1\132"+
"\1\0\1\174\14\0\4\174\1\0\1\174\15\0\1\131"+
"\1\0\1\201\14\0\4\201\1\0\1\201\15\0\1\132";
private static int [] zzUnpackTrans() {
int [] result = new int[5882];
int offset = 0;
offset = zzUnpackTrans(ZZ_TRANS_PACKED_0, offset, result);
return result;
}
private static int zzUnpackTrans(String packed, int offset, int [] result) {
int i = 0; /* index in packed string */
int j = offset; /* index in unpacked array */
int l = packed.length();
while (i < l) {
int count = packed.charAt(i++);
int value = packed.charAt(i++);
value--;
do result[j++] = value; while (--count > 0);
}
return j;
}
/* error codes */
private static final int ZZ_UNKNOWN_ERROR = 0;
private static final int ZZ_NO_MATCH = 1;
private static final int ZZ_PUSHBACK_2BIG = 2;
/* error messages for the codes above */
private static final String ZZ_ERROR_MSG[] = {
"Unkown internal scanner error",
"Error: could not match input",
"Error: pushback value was too large"
};
/**
* ZZ_ATTRIBUTE[aState] contains the attributes of state aState
*/
private static final int [] ZZ_ATTRIBUTE = zzUnpackAttribute();
private static final String ZZ_ATTRIBUTE_PACKED_0 =
"\1\0\1\11\16\1\2\0\16\1\1\0\16\1\1\0"+
"\2\1\1\0\2\1\1\0\3\1\1\0\6\1\2\0"+
"\2\1\1\0\1\1\3\0\2\1\2\0\3\1\4\0"+
"\2\1\1\0\1\1\11\0\2\1\12\0\2\1\10\0"+
"\2\1\1\11\1\0\4\1\1\0\4\1\2\0\2\1"+
"\1\0\2\1\1\0\2\1\2\0\1\1\1\0\2\1"+
"\1\0\2\1\2\0\4\1\2\0\4\1\2\0\4\1"+
"\1\0\12\1";
private static int [] zzUnpackAttribute() {
int [] result = new int[180];
int offset = 0;
offset = zzUnpackAttribute(ZZ_ATTRIBUTE_PACKED_0, offset, result);
return result;
}
private static int zzUnpackAttribute(String packed, int offset, int [] result) {
int i = 0; /* index in packed string */
int j = offset; /* index in unpacked array */
int l = packed.length();
while (i < l) {
int count = packed.charAt(i++);
int value = packed.charAt(i++);
do result[j++] = value; while (--count > 0);
}
return j;
}
/** the input device */
private java.io.Reader zzReader;
/** the current state of the DFA */
private int zzState;
/** the current lexical state */
private int zzLexicalState = YYINITIAL;
/** this buffer contains the current text to be matched and is
the source of the yytext() string */
private char zzBuffer[] = new char[ZZ_BUFFERSIZE];
/** the textposition at the last accepting state */
private int zzMarkedPos;
/** the current text position in the buffer */
private int zzCurrentPos;
/** startRead marks the beginning of the yytext() string in the buffer */
private int zzStartRead;
/** endRead marks the last character in the buffer, that has been read
from input */
private int zzEndRead;
/** number of newlines encountered up to the start of the matched text */
private int yyline;
/** the number of characters up to the start of the matched text */
private int yychar;
/**
* the number of characters from the last newline up to the start of the
* matched text
*/
private int yycolumn;
/**
* zzAtBOL == true <=> the scanner is currently at the beginning of a line
*/
private boolean zzAtBOL = true;
/** zzAtEOF == true <=> the scanner is at the EOF */
private boolean zzAtEOF;
/** denotes if the user-EOF-code has already been executed */
private boolean zzEOFDone;
/* user code: */
/* store a reference to the parser object */
private PeerParser yyparser;
/* constructor taking an additional parser object */
public PeerLexer(java.io.Reader r, PeerParser yyparser) {
this(r);
this.yyparser = yyparser;
}
/* assign value associated with current token to the external parser variable yylval. */
private void storeTokenValue() {
if ((this.yyparser != null) && (this.yyparser.yylval != null)) {
yyparser.yylval.sval = yytext();
}
}
/**
* Creates a new scanner
* There is also a java.io.InputStream version of this constructor.
*
* @param in the java.io.Reader to read input from.
*/
public PeerLexer(java.io.Reader in) {
this.zzReader = in;
}
/**
* Creates a new scanner.
* There is also java.io.Reader version of this constructor.
*
* @param in the java.io.Inputstream to read input from.
*/
public PeerLexer(java.io.InputStream in) {
this(new java.io.InputStreamReader(in));
}
/**
* Unpacks the compressed character translation table.
*
* @param packed the packed character translation table
* @return the unpacked character translation table
*/
private static char [] zzUnpackCMap(String packed) {
char [] map = new char[0x10000];
int i = 0; /* index in packed string */
int j = 0; /* index in unpacked array */
while (i < 138) {
int count = packed.charAt(i++);
char value = packed.charAt(i++);
do map[j++] = value; while (--count > 0);
}
return map;
}
/**
* Refills the input buffer.
*
* @return false, iff there was new input.
*
* @exception java.io.IOException if any I/O-Error occurs
*/
private boolean zzRefill() throws java.io.IOException {
/* first: make room (if you can) */
if (zzStartRead > 0) {
System.arraycopy(zzBuffer, zzStartRead,
zzBuffer, 0,
zzEndRead-zzStartRead);
/* translate stored positions */
zzEndRead-= zzStartRead;
zzCurrentPos-= zzStartRead;
zzMarkedPos-= zzStartRead;
zzStartRead = 0;
}
/* is the buffer big enough? */
if (zzCurrentPos >= zzBuffer.length) {
/* if not: blow it up */
char newBuffer[] = new char[zzCurrentPos*2];
System.arraycopy(zzBuffer, 0, newBuffer, 0, zzBuffer.length);
zzBuffer = newBuffer;
}
/* finally: fill the buffer with new input */
int numRead = zzReader.read(zzBuffer, zzEndRead,
zzBuffer.length-zzEndRead);
if (numRead > 0) {
zzEndRead+= numRead;
return false;
}
// unlikely but not impossible: read 0 characters, but not at end of stream
if (numRead == 0) {
int c = zzReader.read();
if (c == -1) {
return true;
} else {
zzBuffer[zzEndRead++] = (char) c;
return false;
}
}
// numRead < 0
return true;
}
/**
* Closes the input stream.
*/
public final void yyclose() throws java.io.IOException {
zzAtEOF = true; /* indicate end of file */
zzEndRead = zzStartRead; /* invalidate buffer */
if (zzReader != null)
zzReader.close();
}
/**
* Resets the scanner to read from a new input stream.
* Does not close the old reader.
*
* All internal variables are reset, the old input stream
* cannot be reused (internal buffer is discarded and lost).
* Lexical state is set to ZZ_INITIAL.
*
* @param reader the new input stream
*/
public final void yyreset(java.io.Reader reader) {
zzReader = reader;
zzAtBOL = true;
zzAtEOF = false;
zzEOFDone = false;
zzEndRead = zzStartRead = 0;
zzCurrentPos = zzMarkedPos = 0;
yyline = yychar = yycolumn = 0;
zzLexicalState = YYINITIAL;
}
/**
* Returns the current lexical state.
*/
public final int yystate() {
return zzLexicalState;
}
/**
* Enters a new lexical state
*
* @param newState the new lexical state
*/
public final void yybegin(int newState) {
zzLexicalState = newState;
}
/**
* Returns the text matched by the current regular expression.
*/
public final String yytext() {
return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );
}
/**
* Returns the character at position pos from the
* matched text.
*
* It is equivalent to yytext().charAt(pos), but faster
*
* @param pos the position of the character to fetch.
* A value from 0 to yylength()-1.
*
* @return the character at position pos
*/
public final char yycharat(int pos) {
return zzBuffer[zzStartRead+pos];
}
/**
* Returns the length of the matched text region.
*/
public final int yylength() {
return zzMarkedPos-zzStartRead;
}
/**
* Reports an error that occured while scanning.
*
* In a wellformed scanner (no or only correct usage of
* yypushback(int) and a match-all fallback rule) this method
* will only be called with things that "Can't Possibly Happen".
* If this method is called, something is seriously wrong
* (e.g. a JFlex bug producing a faulty scanner etc.).
*
* Usual syntax/scanner level error handling should be done
* in error fallback rules.
*
* @param errorCode the code of the errormessage to display
*/
private void zzScanError(int errorCode) {
String message;
try {
message = ZZ_ERROR_MSG[errorCode];
}
catch (ArrayIndexOutOfBoundsException e) {
message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];
}
throw new Error(message);
}
/**
* Pushes the specified amount of characters back into the input stream.
*
* They will be read again by then next call of the scanning method
*
* @param number the number of characters to be read again.
* This number must not be greater than yylength()!
*/
public void yypushback(int number) {
if ( number > yylength() )
zzScanError(ZZ_PUSHBACK_2BIG);
zzMarkedPos -= number;
}
/**
* Contains user EOF-code, which will be executed exactly once,
* when the end of file is reached
*/
private void zzDoEOF() throws java.io.IOException {
if (!zzEOFDone) {
zzEOFDone = true;
yyclose();
}
}
/**
* Resumes scanning until the next regular expression is matched,
* the end of input is encountered or an I/O-Error occurs.
*
* @return the next token
* @exception java.io.IOException if any I/O-Error occurs
*/
public int yylex() throws java.io.IOException {
int zzInput;
int zzAction;
// cached fields:
int zzCurrentPosL;
int zzMarkedPosL;
int zzEndReadL = zzEndRead;
char [] zzBufferL = zzBuffer;
char [] zzCMapL = ZZ_CMAP;
int [] zzTransL = ZZ_TRANS;
int [] zzRowMapL = ZZ_ROWMAP;
int [] zzAttrL = ZZ_ATTRIBUTE;
while (true) {
zzMarkedPosL = zzMarkedPos;
yychar+= zzMarkedPosL-zzStartRead;
boolean zzR = false;
for (zzCurrentPosL = zzStartRead; zzCurrentPosL < zzMarkedPosL;
zzCurrentPosL++) {
switch (zzBufferL[zzCurrentPosL]) {
case '\u000B':
case '\u000C':
case '\u0085':
case '\u2028':
case '\u2029':
yyline++;
yycolumn = 0;
zzR = false;
break;
case '\r':
yyline++;
yycolumn = 0;
zzR = true;
break;
case '\n':
if (zzR)
zzR = false;
else {
yyline++;
yycolumn = 0;
}
break;
default:
zzR = false;
yycolumn++;
}
}
if (zzR) {
// peek one character ahead if it is \n (if we have counted one line too much)
boolean zzPeek;
if (zzMarkedPosL < zzEndReadL)
zzPeek = zzBufferL[zzMarkedPosL] == '\n';
else if (zzAtEOF)
zzPeek = false;
else {
boolean eof = zzRefill();
zzEndReadL = zzEndRead;
zzMarkedPosL = zzMarkedPos;
zzBufferL = zzBuffer;
if (eof)
zzPeek = false;
else
zzPeek = zzBufferL[zzMarkedPosL] == '\n';
}
if (zzPeek) yyline--;
}
zzAction = -1;
zzCurrentPosL = zzCurrentPos = zzStartRead = zzMarkedPosL;
zzState = ZZ_LEXSTATE[zzLexicalState];
zzForAction: {
while (true) {
if (zzCurrentPosL < zzEndReadL)
zzInput = zzBufferL[zzCurrentPosL++];
else if (zzAtEOF) {
zzInput = YYEOF;
break zzForAction;
}
else {
// store back cached positions
zzCurrentPos = zzCurrentPosL;
zzMarkedPos = zzMarkedPosL;
boolean eof = zzRefill();
// get translated positions and possibly new buffer
zzCurrentPosL = zzCurrentPos;
zzMarkedPosL = zzMarkedPos;
zzBufferL = zzBuffer;
zzEndReadL = zzEndRead;
if (eof) {
zzInput = YYEOF;
break zzForAction;
}
else {
zzInput = zzBufferL[zzCurrentPosL++];
}
}
int zzNext = zzTransL[ zzRowMapL[zzState] + zzCMapL[zzInput] ];
if (zzNext == -1) break zzForAction;
zzState = zzNext;
int zzAttributes = zzAttrL[zzState];
if ( (zzAttributes & 1) == 1 ) {
zzAction = zzState;
zzMarkedPosL = zzCurrentPosL;
if ( (zzAttributes & 8) == 8 ) break zzForAction;
}
}
}
// store back cached position
zzMarkedPos = zzMarkedPosL;
switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) {
case 6:
{ ParserHelper.validateAsNumber(yytext());
return PeerParser.TKN_ASNO;
}
case 14: break;
case 9:
{ return PeerParser.TKN_PRNGNAME;
}
case 15: break;
case 13:
{ return PeerParser.KEYW_FLAP_DAMP;
}
case 16: break;
case 8:
{ return PeerParser.TKN_BGP4;
}
case 17: break;
case 5:
{ return PeerParser.TKN_SIMPLE_PROTOCOL;
}
case 18: break;
case 10:
{ return PeerParser.KEYW_PEERAS;
}
case 19: break;
case 4:
{ ;
}
case 20: break;
case 1:
{ return yytext().charAt(0);
}
case 21: break;
case 11:
{ return PeerParser.TKN_RTRSNAME;
}
case 22: break;
case 7:
{ return PeerParser.KEYW_ASNO;
}
case 23: break;
case 12:
{ ParserHelper.validateIpv4(yytext());
return PeerParser.TKN_IPV4;
}
case 24: break;
case 3:
{ ParserHelper.validateDomainNameLabel(yytext());
storeTokenValue();
return PeerParser.TKN_DNS;
}
case 25: break;
case 2:
{ /* check port is in range */
ParserHelper.validateSmallInt(yytext());
return PeerParser.TKN_SMALLINT;
}
case 26: break;
default:
if (zzInput == YYEOF && zzStartRead == zzCurrentPos) {
zzAtEOF = true;
zzDoEOF();
{ return 0; }
}
else {
zzScanError(ZZ_NO_MATCH);
}
}
}
}
}