All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.ripe.db.whois.common.generated.ComponentsLexer Maven / Gradle / Ivy

/* 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: components.flex

  description:
    Defines the tokenizer for an RPSL components attribute.  It was mostly
    stolen from the IRRToolSet, simplified by removing ability to parse
    things defined by a dictionary (we use XML for extensibility rather
    than a dictionary).

  notes:
    Tokens are defined in the associated grammar, components.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/components.flex
 */
public class ComponentsLexer 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\44\1\44\25\0\1\15\11\0\1\54\1\30\1\57\1\16"+
    "\1\25\1\26\1\3\1\7\1\10\1\5\1\6\1\12\1\13\1\14"+
    "\1\11\1\4\1\43\2\0\1\45\3\0\1\1\1\31\1\36\1\40"+
    "\1\47\1\17\1\32\1\51\1\35\2\24\1\20\1\42\1\37\1\34"+
    "\1\33\1\24\1\22\1\2\1\21\1\52\1\41\1\24\1\50\1\46"+
    "\1\24\3\0\1\27\1\23\1\0\1\1\1\31\1\36\1\40\1\47"+
    "\1\17\1\32\1\51\1\35\2\24\1\20\1\42\1\37\1\34\1\33"+
    "\1\24\1\22\1\2\1\21\1\52\1\41\1\24\1\50\1\46\1\24"+
    "\1\55\1\0\1\56\1\53\uff81\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\3\1\1\2\1\3\14\1\1\4\2\1\13\0"+
    "\1\5\1\6\1\7\5\0\1\10\14\0\1\11\1\12"+
    "\2\0\4\13\4\0\1\14\1\15\3\0\1\16\2\0"+
    "\1\17\13\0\1\17\3\0\1\20\2\0\1\21\2\0"+
    "\1\22\4\0\2\13\1\23\4\0\1\24\2\0\1\25"+
    "\1\0\1\26\1\0\1\27\6\0\1\30\14\0\2\13"+
    "\30\0\2\13\2\0\1\31\1\32\1\33\1\0\1\34"+
    "\4\0\1\35\7\0\1\36\1\0\4\37\5\0\2\13"+
    "\7\0\1\40\10\0\2\37\3\0\2\13\4\23\4\0"+
    "\4\25\1\0\1\41\1\42\1\43\1\44\3\0\1\45"+
    "\1\0\2\37\3\0\2\13\2\23\1\0\1\46\2\0"+
    "\2\25\1\0\1\47\1\0\1\50\2\37\2\0\2\13"+
    "\2\23\2\0\4\34\1\0\2\25\2\0\2\37\2\0"+
    "\1\13\2\23\2\51\2\34\1\0\2\25\1\0\2\37"+
    "\2\0\2\23\1\0\2\34\1\0\2\25\1\52\2\37"+
    "\2\0\2\23\1\51\2\34\2\25\2\37\2\0\2\23"+
    "\2\34\2\25\1\37\1\0\2\23\2\34\2\25\1\23"+
    "\2\34\1\25\3\34";

  private static int [] zzUnpackAction() {
    int [] result = new int[341];
    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\60\0\140\0\220\0\300\0\360\0\u0120\0\u0150"+
    "\0\u0180\0\u01b0\0\u01e0\0\u0210\0\u0240\0\u0270\0\u02a0\0\u02d0"+
    "\0\u0300\0\u0330\0\u0360\0\u0390\0\u03c0\0\u03f0\0\u0420\0\u0450"+
    "\0\u0480\0\u04b0\0\u04e0\0\u0510\0\u0540\0\u0570\0\u05a0\0\u05d0"+
    "\0\60\0\u0600\0\60\0\u0630\0\u0660\0\u0690\0\u06c0\0\u06f0"+
    "\0\60\0\u0720\0\u0750\0\u0780\0\u07b0\0\u07e0\0\u0810\0\u0840"+
    "\0\u0870\0\u08a0\0\u08d0\0\u0900\0\u0930\0\60\0\60\0\u03c0"+
    "\0\u0960\0\u0990\0\u09c0\0\u09f0\0\u0a20\0\u0a50\0\u0a80\0\u0ab0"+
    "\0\u0ae0\0\60\0\60\0\u0b10\0\u0b40\0\u0b70\0\u0540\0\u0ba0"+
    "\0\u0bd0\0\u0c00\0\u0c30\0\u0c60\0\u0c90\0\u0cc0\0\u0cf0\0\u0d20"+
    "\0\u0d50\0\u0d80\0\u0db0\0\u0de0\0\u0e10\0\60\0\u0e40\0\u0e70"+
    "\0\u0ea0\0\60\0\u0ed0\0\u0f00\0\60\0\u0f30\0\u0f60\0\60"+
    "\0\u0f90\0\u0fc0\0\u0ff0\0\u1020\0\u1050\0\u1080\0\u10b0\0\u10e0"+
    "\0\u1110\0\u1140\0\u1170\0\60\0\u11a0\0\u11d0\0\u1200\0\u1230"+
    "\0\u0c30\0\u1260\0\60\0\u1290\0\u12c0\0\u12f0\0\u1320\0\u1350"+
    "\0\u1380\0\60\0\u13b0\0\u13e0\0\u1410\0\u1440\0\u1470\0\u14a0"+
    "\0\u14d0\0\u1500\0\u1530\0\u0120\0\u1560\0\u1590\0\u15c0\0\u15f0"+
    "\0\u1620\0\u1650\0\u1680\0\u16b0\0\u16e0\0\u1710\0\u1740\0\u1770"+
    "\0\u17a0\0\u17d0\0\u1800\0\u1830\0\u1860\0\u1890\0\u18c0\0\u18f0"+
    "\0\u1920\0\u1950\0\u1980\0\u19b0\0\u19e0\0\u1a10\0\u1a40\0\u1a70"+
    "\0\u1aa0\0\u1ad0\0\u1b00\0\u1b30\0\60\0\60\0\60\0\u1b60"+
    "\0\u1b90\0\u1bc0\0\u1bf0\0\u1c20\0\u1c50\0\u1c80\0\u1cb0\0\u1ce0"+
    "\0\u1d10\0\u1d40\0\u1d70\0\u1da0\0\u1dd0\0\60\0\u1e00\0\60"+
    "\0\u1e30\0\u1e60\0\u1e90\0\u1c80\0\u1ec0\0\u1ef0\0\u1f20\0\u1f50"+
    "\0\u1f80\0\u1fb0\0\u1fe0\0\u2010\0\u2040\0\u2070\0\u20a0\0\u20d0"+
    "\0\u2100\0\60\0\u2130\0\u2160\0\u2190\0\u21c0\0\u21f0\0\u2220"+
    "\0\u2250\0\u2280\0\u22b0\0\u22e0\0\u2310\0\u2340\0\u2370\0\u23a0"+
    "\0\u23d0\0\u2400\0\u2430\0\u2460\0\u2490\0\u24c0\0\u24f0\0\u2520"+
    "\0\u2550\0\u2580\0\u25b0\0\u25e0\0\u2610\0\u2640\0\60\0\60"+
    "\0\60\0\60\0\u2670\0\u26a0\0\u26d0\0\60\0\u2700\0\u2730"+
    "\0\u2760\0\u2790\0\u27c0\0\u27f0\0\u2820\0\u2850\0\u2880\0\u28b0"+
    "\0\u28e0\0\u2910\0\u2940\0\u2970\0\u29a0\0\u29d0\0\u2a00\0\60"+
    "\0\u2a30\0\60\0\u2a60\0\u2a90\0\u2ac0\0\u2af0\0\u2b20\0\u2b50"+
    "\0\u2b80\0\u2bb0\0\u2be0\0\u2c10\0\u2c40\0\u2c70\0\u2ca0\0\u2cd0"+
    "\0\u2d00\0\u2d30\0\u2d60\0\u2d90\0\u2dc0\0\u2df0\0\u2e20\0\u2e50"+
    "\0\u2e80\0\u2eb0\0\u2ee0\0\u2f10\0\u2f40\0\60\0\u2f70\0\u2fa0"+
    "\0\u2fd0\0\u3000\0\u3030\0\u3060\0\u3090\0\u30c0\0\u30f0\0\u3120"+
    "\0\u3150\0\u3180\0\u31b0\0\u31e0\0\u3210\0\u3240\0\u3270\0\u32a0"+
    "\0\60\0\u32d0\0\u3300\0\u3330\0\u3360\0\u3390\0\u33c0\0\u31b0"+
    "\0\u33f0\0\u3420\0\u3450\0\u3480\0\u34b0\0\u34e0\0\u3510\0\u3540"+
    "\0\u3570\0\u35a0\0\u35d0\0\u3600\0\u3630\0\u3660\0\u3690\0\u36c0"+
    "\0\u36f0\0\u3720\0\u3750\0\u3780\0\u37b0\0\u37e0\0\u3810\0\u3840"+
    "\0\u3870\0\u38a0\0\u38d0\0\u3900\0\u3930";

  private static int [] zzUnpackRowMap() {
    int [] result = new int[341];
    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\4\12\5\1\6\1\2\1\7\2\2"+
    "\1\10\2\2\1\11\1\2\1\12\1\2\1\13\1\2"+
    "\1\14\1\15\1\16\1\17\1\20\1\21\1\2\1\22"+
    "\1\2\1\6\1\23\5\2\1\24\1\2\1\25\2\2"+
    "\62\0\1\26\16\0\1\27\11\0\1\30\3\0\1\31"+
    "\41\0\1\32\25\0\1\33\13\0\12\5\10\0\1\34"+
    "\15\0\1\35\31\0\1\6\26\0\1\6\33\0\1\36"+
    "\41\0\1\37\32\0\1\40\67\0\1\41\15\0\12\42"+
    "\1\0\1\43\11\0\1\43\61\0\1\44\47\0\1\45"+
    "\12\0\1\46\11\0\1\47\12\0\1\50\17\0\1\51"+
    "\37\0\1\52\27\0\1\53\4\0\1\54\51\0\1\55"+
    "\2\0\1\56\57\0\1\57\12\0\1\60\43\0\1\61"+
    "\5\0\1\62\5\0\1\63\44\0\1\64\12\0\1\65"+
    "\55\0\1\66\42\0\1\67\23\0\1\67\1\70\37\0"+
    "\1\71\25\0\1\72\1\73\1\74\1\75\2\74\4\73"+
    "\1\0\1\76\14\0\1\77\60\0\1\100\56\0\1\101"+
    "\64\0\1\102\5\0\1\103\12\0\1\104\76\0\1\105"+
    "\42\0\12\106\46\0\12\107\64\0\1\110\54\0\1\111"+
    "\74\0\1\112\27\0\12\42\1\0\1\113\74\0\1\114"+
    "\60\0\1\115\12\0\1\116\52\0\1\117\64\0\1\120"+
    "\43\0\1\121\42\0\1\122\63\0\1\123\10\0\1\124"+
    "\45\0\1\125\57\0\1\126\40\0\1\127\34\0\1\130"+
    "\2\0\1\131\36\0\1\132\1\0\1\133\104\0\1\134"+
    "\10\0\1\135\120\0\1\136\35\0\1\137\41\0\1\50"+
    "\115\0\1\140\56\0\1\141\35\0\1\142\1\143\24\0"+
    "\1\144\17\0\12\145\1\142\1\143\24\0\1\144\17\0"+
    "\12\73\1\142\1\143\24\0\1\144\17\0\1\73\3\145"+
    "\1\73\1\146\4\145\1\142\1\143\24\0\1\144\15\0"+
    "\14\147\1\0\1\76\4\147\1\76\1\147\4\0\12\147"+
    "\3\0\5\147\6\0\1\150\120\0\1\151\64\0\1\152"+
    "\31\0\1\153\55\0\1\154\43\0\12\106\10\0\1\155"+
    "\54\0\1\156\36\0\14\157\1\0\1\111\4\157\1\111"+
    "\1\157\4\0\12\157\3\0\5\157\44\0\1\160\23\0"+
    "\12\161\51\0\1\126\72\0\1\162\55\0\1\163\13\0"+
    "\1\164\42\0\1\165\63\0\1\166\54\0\1\126\75\0"+
    "\1\167\55\0\1\126\47\0\1\170\103\0\1\171\31\0"+
    "\1\172\57\0\1\173\100\0\1\174\16\0\1\175\45\0"+
    "\1\176\31\0\1\177\60\0\1\123\104\0\1\200\31\0"+
    "\1\201\53\0\1\142\1\143\42\0\1\202\13\0\1\143"+
    "\43\0\1\203\15\0\1\204\2\0\1\205\10\0\1\206"+
    "\27\0\12\207\1\142\1\143\24\0\1\144\17\0\1\145"+
    "\1\210\10\145\1\142\1\143\24\0\1\144\15\0\14\147"+
    "\1\0\1\76\4\147\1\76\1\147\4\0\12\147\1\211"+
    "\2\0\5\147\26\0\1\212\73\0\1\213\61\0\1\214"+
    "\55\0\1\215\25\0\12\216\61\0\1\217\42\0\14\157"+
    "\1\0\1\111\4\157\1\111\1\157\4\0\12\157\1\220"+
    "\2\0\5\157\37\0\1\126\61\0\1\221\72\0\1\222"+
    "\12\0\1\223\35\0\1\223\20\0\1\224\60\0\1\126"+
    "\113\0\1\225\43\0\1\226\36\0\1\227\130\0\1\230"+
    "\45\0\1\231\67\0\1\232\32\0\1\233\55\0\1\234"+
    "\114\0\1\67\1\235\2\0\1\236\57\0\1\237\57\0"+
    "\1\37\124\0\1\240\13\0\12\241\1\142\1\143\24\0"+
    "\1\144\17\0\1\207\1\241\1\207\1\242\2\207\4\241"+
    "\1\142\1\143\24\0\1\144\15\0\1\243\31\0\1\244"+
    "\75\0\1\245\44\0\1\246\61\0\1\247\55\0\1\126"+
    "\24\0\12\216\10\0\1\250\33\0\14\251\1\0\1\217"+
    "\4\251\1\217\1\251\4\0\12\251\3\0\5\251\6\0"+
    "\1\252\20\0\1\205\10\0\1\253\62\0\1\254\60\0"+
    "\1\255\62\0\1\126\17\0\1\256\111\0\1\257\62\0"+
    "\1\260\55\0\1\261\61\0\1\262\61\0\1\263\51\0"+
    "\1\264\75\0\1\265\55\0\1\266\45\0\1\267\20\0"+
    "\1\67\4\0\1\270\1\271\1\272\1\273\2\272\4\271"+
    "\46\0\1\274\1\275\1\276\1\277\2\276\4\275\1\0"+
    "\1\76\110\0\1\300\13\0\12\301\1\142\1\143\24\0"+
    "\1\144\17\0\1\241\1\302\10\241\1\142\1\143\24\0"+
    "\1\144\16\0\1\303\124\0\1\304\13\0\12\305\44\0"+
    "\14\251\1\0\1\217\4\251\1\217\1\251\4\0\12\251"+
    "\1\306\2\0\5\251\7\0\1\307\124\0\1\310\44\0"+
    "\1\311\63\0\1\312\62\0\1\144\16\0\1\313\124\0"+
    "\1\314\47\0\1\315\55\0\1\316\71\0\1\317\44\0"+
    "\1\320\57\0\1\321\62\0\1\322\23\0\12\323\46\0"+
    "\12\271\46\0\1\271\3\323\1\271\1\324\4\323\46\0"+
    "\12\325\26\0\1\144\17\0\12\275\26\0\1\144\17\0"+
    "\1\275\3\325\1\275\1\326\4\325\26\0\1\144\36\0"+
    "\1\327\40\0\12\330\1\142\1\143\24\0\1\144\17\0"+
    "\1\301\1\330\4\301\1\330\1\301\1\331\1\330\1\142"+
    "\1\143\24\0\1\144\17\0\1\332\1\333\1\334\1\335"+
    "\2\334\4\333\1\0\1\76\110\0\1\336\13\0\12\305"+
    "\11\0\1\337\32\0\1\340\15\0\1\204\13\0\1\341"+
    "\27\0\1\342\1\343\1\344\1\345\2\344\4\343\112\0"+
    "\1\346\30\0\1\347\60\0\1\350\57\0\1\351\40\0"+
    "\1\352\76\0\1\353\60\0\1\354\57\0\1\355\70\0"+
    "\1\356\45\0\1\357\41\0\12\360\46\0\1\323\1\361"+
    "\10\323\46\0\12\362\26\0\1\144\17\0\1\325\1\363"+
    "\10\325\26\0\1\144\15\0\1\364\61\0\12\365\1\142"+
    "\1\143\24\0\1\144\17\0\1\330\1\365\4\330\1\365"+
    "\2\330\1\366\1\142\1\143\24\0\1\144\57\0\1\211"+
    "\17\0\12\367\26\0\1\211\17\0\12\333\26\0\1\211"+
    "\17\0\1\333\3\367\1\333\1\370\4\367\26\0\1\211"+
    "\36\0\1\371\40\0\12\372\45\0\1\373\124\0\1\374"+
    "\53\0\1\220\17\0\12\375\26\0\1\220\17\0\12\343"+
    "\26\0\1\220\17\0\1\343\3\375\1\343\1\376\4\375"+
    "\26\0\1\220\36\0\1\377\103\0\1\u0100\32\0\1\u0101"+
    "\57\0\1\u0102\114\0\1\67\4\0\12\u0103\46\0\1\360"+
    "\1\u0103\1\360\1\u0104\2\360\4\u0103\46\0\12\u0105\26\0"+
    "\1\144\17\0\1\362\1\u0105\1\362\1\u0106\2\362\4\u0105"+
    "\26\0\1\144\16\0\1\274\60\0\12\u0107\1\142\1\143"+
    "\24\0\1\144\17\0\1\365\3\u0107\1\365\1\u0108\4\u0107"+
    "\1\142\1\143\24\0\1\144\17\0\12\u0109\26\0\1\211"+
    "\17\0\1\367\1\u010a\10\367\26\0\1\211\15\0\1\u010b"+
    "\61\0\12\372\12\0\1\u010c\33\0\1\u010d\1\u010e\1\u010f"+
    "\1\u0110\2\u010f\4\u010e\112\0\1\u0111\13\0\12\u0112\26\0"+
    "\1\220\17\0\1\375\1\u0113\10\375\26\0\1\220\15\0"+
    "\1\u0114\113\0\1\u0115\25\0\12\u0116\46\0\1\u0103\1\u0117"+
    "\10\u0103\46\0\12\u0118\26\0\1\144\17\0\1\u0105\1\u0119"+
    "\10\u0105\26\0\1\144\17\0\12\72\1\142\1\143\24\0"+
    "\1\144\17\0\1\u0107\1\u011a\10\u0107\1\142\1\143\24\0"+
    "\1\144\17\0\12\u011b\26\0\1\211\17\0\1\u0109\1\u011b"+
    "\1\u0109\1\u011c\2\u0109\4\u011b\26\0\1\211\16\0\1\332"+
    "\60\0\12\u011d\1\0\1\u011e\11\0\1\u011e\72\0\1\306"+
    "\17\0\12\u011f\26\0\1\306\17\0\12\u010e\26\0\1\306"+
    "\17\0\1\u010e\3\u011f\1\u010e\1\u0120\4\u011f\26\0\1\306"+
    "\36\0\1\u0121\40\0\12\u0122\26\0\1\220\17\0\1\u0112"+
    "\1\u0122\1\u0112\1\u0123\2\u0112\4\u0122\26\0\1\220\16\0"+
    "\1\342\57\0\1\u0124\60\0\12\u0125\46\0\1\u0116\1\u0125"+
    "\4\u0116\1\u0125\1\u0116\1\u0126\1\u0125\46\0\12\u0127\26\0"+
    "\1\144\17\0\1\u0118\1\u0127\4\u0118\1\u0127\1\u0118\1\u0128"+
    "\1\u0127\26\0\1\144\17\0\1\72\1\0\4\72\1\0"+
    "\1\72\2\0\1\142\1\143\24\0\1\144\17\0\12\u0129"+
    "\26\0\1\211\17\0\1\u011b\1\u012a\10\u011b\26\0\1\211"+
    "\17\0\12\u011d\1\0\1\u012b\44\0\12\u012c\26\0\1\306"+
    "\17\0\1\u011f\1\u012d\10\u011f\26\0\1\306\15\0\1\u012e"+
    "\61\0\12\u012f\26\0\1\220\17\0\1\u0122\1\u0130\10\u0122"+
    "\26\0\1\220\63\0\1\u0131\13\0\12\u0132\46\0\1\u0125"+
    "\1\u0132\4\u0125\1\u0132\2\u0125\1\u0133\46\0\12\u0134\26\0"+
    "\1\144\17\0\1\u0127\1\u0134\4\u0127\1\u0134\2\u0127\1\u0135"+
    "\26\0\1\144\17\0\12\u0136\26\0\1\211\17\0\1\u0129"+
    "\1\u0136\4\u0129\1\u0136\1\u0129\1\u0137\1\u0136\26\0\1\211"+
    "\17\0\12\u0138\46\0\12\u0139\26\0\1\306\17\0\1\u012c"+
    "\1\u0139\1\u012c\1\u013a\2\u012c\4\u0139\26\0\1\306\16\0"+
    "\1\u010d\60\0\12\u013b\26\0\1\220\17\0\1\u012f\1\u013b"+
    "\4\u012f\1\u013b\1\u012f\1\u013c\1\u013b\26\0\1\220\17\0"+
    "\12\u013d\46\0\1\u0132\3\u013d\1\u0132\1\u013e\4\u013d\46\0"+
    "\12\u013f\26\0\1\144\17\0\1\u0134\3\u013f\1\u0134\1\u0140"+
    "\4\u013f\26\0\1\144\17\0\12\u0141\26\0\1\211\17\0"+
    "\1\u0136\1\u0141\4\u0136\1\u0141\2\u0136\1\u0142\26\0\1\211"+
    "\17\0\12\u0143\26\0\1\306\17\0\1\u0139\1\u0144\10\u0139"+
    "\26\0\1\306\17\0\12\u0145\26\0\1\220\17\0\1\u013b"+
    "\1\u0145\4\u013b\1\u0145\2\u013b\1\u0146\26\0\1\220\17\0"+
    "\12\270\46\0\1\u013d\1\u0147\10\u013d\46\0\12\274\26\0"+
    "\1\144\17\0\1\u013f\1\u0148\10\u013f\26\0\1\144\17\0"+
    "\12\u0149\26\0\1\211\17\0\1\u0141\3\u0149\1\u0141\1\u014a"+
    "\4\u0149\26\0\1\211\17\0\12\u014b\26\0\1\306\17\0"+
    "\1\u0143\1\u014b\4\u0143\1\u014b\1\u0143\1\u014c\1\u014b\26\0"+
    "\1\306\17\0\12\u014d\26\0\1\220\17\0\1\u0145\3\u014d"+
    "\1\u0145\1\u014e\4\u014d\26\0\1\220\17\0\1\270\1\0"+
    "\4\270\1\0\1\270\50\0\1\274\1\0\4\274\1\0"+
    "\1\274\30\0\1\144\17\0\12\332\26\0\1\211\17\0"+
    "\1\u0149\1\u014f\10\u0149\26\0\1\211\17\0\12\u0150\26\0"+
    "\1\306\17\0\1\u014b\1\u0150\4\u014b\1\u0150\2\u014b\1\u0151"+
    "\26\0\1\306\17\0\12\342\26\0\1\220\17\0\1\u014d"+
    "\1\u0152\10\u014d\26\0\1\220\17\0\1\332\1\0\4\332"+
    "\1\0\1\332\30\0\1\211\17\0\12\u0153\26\0\1\306"+
    "\17\0\1\u0150\3\u0153\1\u0150\1\u0154\4\u0153\26\0\1\306"+
    "\17\0\1\342\1\0\4\342\1\0\1\342\30\0\1\220"+
    "\17\0\12\u010d\26\0\1\306\17\0\1\u0153\1\u0155\10\u0153"+
    "\26\0\1\306\17\0\1\u010d\1\0\4\u010d\1\0\1\u010d"+
    "\30\0\1\306\14\0";

  private static int [] zzUnpackTrans() {
    int [] result = new int[14688];
    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\23\1\13\0\1\11\1\1\1\11\5\0"+
    "\1\11\14\0\2\11\2\0\4\1\4\0\2\11\3\0"+
    "\1\1\2\0\1\1\13\0\1\11\3\0\1\11\2\0"+
    "\1\11\2\0\1\11\4\0\3\1\4\0\1\11\2\0"+
    "\1\1\1\0\1\1\1\0\1\11\6\0\1\11\14\0"+
    "\2\1\30\0\2\1\2\0\3\11\1\0\1\1\4\0"+
    "\1\1\7\0\1\11\1\0\1\11\3\1\5\0\2\1"+
    "\7\0\1\11\10\0\2\1\3\0\6\1\4\0\4\1"+
    "\1\0\4\11\3\0\1\11\1\0\2\1\3\0\4\1"+
    "\1\0\1\1\2\0\2\1\1\0\1\11\1\0\1\11"+
    "\2\1\2\0\4\1\2\0\4\1\1\0\2\1\2\0"+
    "\2\1\2\0\4\1\1\11\2\1\1\0\2\1\1\0"+
    "\2\1\2\0\2\1\1\0\2\1\1\0\2\1\1\11"+
    "\2\1\2\0\11\1\2\0\7\1\1\0\15\1";

  private static int [] zzUnpackAttribute() {
    int [] result = new int[341];
    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 ComponentsParser yyparser;

    /* constructor taking an additional parser object */
    public ComponentsLexer(java.io.Reader r, ComponentsParser 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 ComponentsLexer(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 ComponentsLexer(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 < 170) {
      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 10: 
          { return ComponentsParser.ASPATH_POSTFIX;
          }
        case 43: break;
        case 22: 
          { ParserHelper.validateRangeMoreSpecificsOperators(yytext());
    return ComponentsParser.OP_MS;
          }
        case 44: break;
        case 34: 
          { return ComponentsParser.KEYW_IGP_COST;
          }
        case 45: break;
        case 33: 
          { return ComponentsParser.KEYW_PROTOCOL;
          }
        case 46: break;
        case 31: 
          { ParserHelper.validateAsRange(yytext());
    return ComponentsParser.TKN_ASRANGE;
          }
        case 47: break;
        case 32: 
          { return ComponentsParser.KEYW_PREPEND;
          }
        case 48: break;
        case 42: 
          { return ComponentsParser.KEYW_NO_ADVERTISE;
          }
        case 49: break;
        case 40: 
          { return ComponentsParser.KEYW_NO_EXPORT;
          }
        case 50: break;
        case 24: 
          { return ComponentsParser.TKN_COST;
          }
        case 51: break;
        case 29: 
          { return ComponentsParser.KEYW_PEERAS;
          }
        case 52: break;
        case 39: 
          { return ComponentsParser.TKN_COMMUNITY;
          }
        case 53: break;
        case 7: 
          { return ComponentsParser.OP_MS;
          }
        case 54: break;
        case 30: 
          { return ComponentsParser.KEYW_DELETE;
          }
        case 55: break;
        case 13: 
          { return ComponentsParser.KEYW_ANY;
          }
        case 56: break;
        case 37: 
          { return ComponentsParser.TKN_NEXT_HOP;
          }
        case 57: break;
        case 35: 
          { return ComponentsParser.KEYW_INTERNET;
          }
        case 58: break;
        case 8: 
          { return ComponentsParser.OP_OR;
          }
        case 59: break;
        case 4: 
          { return ComponentsParser.OP_EQUAL;
          }
        case 60: break;
        case 12: 
          { return ComponentsParser.OP_AND;
          }
        case 61: break;
        case 16: 
          { return ComponentsParser.OP_NOT;
          }
        case 62: break;
        case 26: 
          { return ComponentsParser.KEYW_ATOMIC;
          }
        case 63: break;
        case 25: 
          { return ComponentsParser.TKN_ASPATH;
          }
        case 64: break;
        case 5: 
          { return ComponentsParser.OP_APPEND;
          }
        case 65: break;
        case 3: 
          { ;
          }
        case 66: break;
        case 9: 
          { return ComponentsParser.OP_COMPARE;
          }
        case 67: break;
        case 36: 
          { return ComponentsParser.KEYW_CONTAINS;
          }
        case 68: break;
        case 2: 
          { storeTokenValue();
    return ComponentsParser.TKN_INT;
          }
        case 69: break;
        case 6: 
          { ParserHelper.validateMoreSpecificsOperator(yytext());
    return ComponentsParser.OP_MS;
          }
        case 70: break;
        case 18: 
          { return ComponentsParser.TKN_MED;
          }
        case 71: break;
        case 38: 
          { ParserHelper.validateIpv4Prefix(yytext());
    return ComponentsParser.TKN_PRFXV4;
          }
        case 72: break;
        case 17: 
          { return ComponentsParser.TKN_DPA;
          }
        case 73: break;
        case 19: 
          { return ComponentsParser.TKN_ASNAME;
          }
        case 74: break;
        case 15: 
          { return ComponentsParser.TKN_PROTOCOL;
          }
        case 75: break;
        case 21: 
          { return ComponentsParser.TKN_RSNAME;
          }
        case 76: break;
        case 41: 
          { ParserHelper.validateIpv4PrefixRange(yytext());
    return ComponentsParser.TKN_PRFXV4RNG;
          }
        case 77: break;
        case 14: 
          { ParserHelper.validateCommunity(yytext());
    return ComponentsParser.TKN_COMM_NO;
          }
        case 78: break;
        case 27: 
          { return ComponentsParser.KEYW_APPEND;
          }
        case 79: break;
        case 1: 
          { return yytext().charAt(0);
          }
        case 80: break;
        case 11: 
          { ParserHelper.validateAsNumber(yytext());
    return ComponentsParser.TKN_ASNO;
          }
        case 81: break;
        case 20: 
          { return ComponentsParser.KEYW_SELF;
          }
        case 82: break;
        case 28: 
          { return ComponentsParser.TKN_FLTRNAME;
          }
        case 83: break;
        case 23: 
          { return ComponentsParser.TKN_PREF;
          }
        case 84: break;
        default: 
          if (zzInput == YYEOF && zzStartRead == zzCurrentPos) {
            zzAtEOF = true;
            zzDoEOF();
              { return 0; }
          } 
          else {
            zzScanError(ZZ_NO_MATCH);
          }
      }
    }
  }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy