View Javadoc

    1   /* Generated By:JavaCC: Do not edit this line. CppParserConstants.java */
    2   package net.sourceforge.pmd.lang.cpp.ast;
    3
    4
    5   /**
    6    * Token literal values and constants.
    7    * Generated by org.javacc.parser.OtherFilesGen#start()
    8    */
    9   public interface CppParserConstants {
    10
    11    /** End of File. */
    12    int EOF = 0;
    13    /** RegularExpression Id. */
    14    int LCURLYBRACE = 19;
    15    /** RegularExpression Id. */
    16    int RCURLYBRACE = 20;
    17    /** RegularExpression Id. */
    18    int LSQUAREBRACKET = 21;
    19    /** RegularExpression Id. */
    20    int RSQUAREBRACKET = 22;
    21    /** RegularExpression Id. */
    22    int LPARENTHESIS = 23;
    23    /** RegularExpression Id. */
    24    int RPARENTHESIS = 24;
    25    /** RegularExpression Id. */
    26    int SCOPE = 25;
    27    /** RegularExpression Id. */
    28    int COLON = 26;
    29    /** RegularExpression Id. */
    30    int SEMICOLON = 27;
    31    /** RegularExpression Id. */
    32    int COMMA = 28;
    33    /** RegularExpression Id. */
    34    int QUESTIONMARK = 29;
    35    /** RegularExpression Id. */
    36    int ELLIPSIS = 30;
    37    /** RegularExpression Id. */
    38    int ASSIGNEQUAL = 31;
    39    /** RegularExpression Id. */
    40    int TIMESEQUAL = 32;
    41    /** RegularExpression Id. */
    42    int DIVIDEEQUAL = 33;
    43    /** RegularExpression Id. */
    44    int MODEQUAL = 34;
    45    /** RegularExpression Id. */
    46    int PLUSEQUAL = 35;
    47    /** RegularExpression Id. */
    48    int MINUSEQUAL = 36;
    49    /** RegularExpression Id. */
    50    int SHIFTLEFTEQUAL = 37;
    51    /** RegularExpression Id. */
    52    int SHIFTRIGHTEQUAL = 38;
    53    /** RegularExpression Id. */
    54    int BITWISEANDEQUAL = 39;
    55    /** RegularExpression Id. */
    56    int BITWISEXOREQUAL = 40;
    57    /** RegularExpression Id. */
    58    int BITWISEOREQUAL = 41;
    59    /** RegularExpression Id. */
    60    int OR = 42;
    61    /** RegularExpression Id. */
    62    int AND = 43;
    63    /** RegularExpression Id. */
    64    int BITWISEOR = 44;
    65    /** RegularExpression Id. */
    66    int BITWISEXOR = 45;
    67    /** RegularExpression Id. */
    68    int AMPERSAND = 46;
    69    /** RegularExpression Id. */
    70    int EQUAL = 47;
    71    /** RegularExpression Id. */
    72    int NOTEQUAL = 48;
    73    /** RegularExpression Id. */
    74    int LESSTHAN = 49;
    75    /** RegularExpression Id. */
    76    int GREATERTHAN = 50;
    77    /** RegularExpression Id. */
    78    int LESSTHANOREQUALTO = 51;
    79    /** RegularExpression Id. */
    80    int GREATERTHANOREQUALTO = 52;
    81    /** RegularExpression Id. */
    82    int SHIFTLEFT = 53;
    83    /** RegularExpression Id. */
    84    int SHIFTRIGHT = 54;
    85    /** RegularExpression Id. */
    86    int PLUS = 55;
    87    /** RegularExpression Id. */
    88    int MINUS = 56;
    89    /** RegularExpression Id. */
    90    int STAR = 57;
    91    /** RegularExpression Id. */
    92    int DIVIDE = 58;
    93    /** RegularExpression Id. */
    94    int MOD = 59;
    95    /** RegularExpression Id. */
    96    int PLUSPLUS = 60;
    97    /** RegularExpression Id. */
    98    int MINUSMINUS = 61;
    99    /** RegularExpression Id. */
    100   int TILDE = 62;
    101   /** RegularExpression Id. */
    102   int NOT = 63;
    103   /** RegularExpression Id. */
    104   int DOT = 64;
    105   /** RegularExpression Id. */
    106   int POINTERTO = 65;
    107   /** RegularExpression Id. */
    108   int DOTSTAR = 66;
    109   /** RegularExpression Id. */
    110   int ARROWSTAR = 67;
    111   /** RegularExpression Id. */
    112   int AUTO = 68;
    113   /** RegularExpression Id. */
    114   int BREAK = 69;
    115   /** RegularExpression Id. */
    116   int CASE = 70;
    117   /** RegularExpression Id. */
    118   int CATCH = 71;
    119   /** RegularExpression Id. */
    120   int CHAR = 72;
    121   /** RegularExpression Id. */
    122   int CONST = 73;
    123   /** RegularExpression Id. */
    124   int CONTINUE = 74;
    125   /** RegularExpression Id. */
    126   int _DEFAULT = 75;
    127   /** RegularExpression Id. */
    128   int DELETE = 76;
    129   /** RegularExpression Id. */
    130   int DO = 77;
    131   /** RegularExpression Id. */
    132   int DOUBLE = 78;
    133   /** RegularExpression Id. */
    134   int ELSE = 79;
    135   /** RegularExpression Id. */
    136   int ENUM = 80;
    137   /** RegularExpression Id. */
    138   int EXTERN = 81;
    139   /** RegularExpression Id. */
    140   int FLOAT = 82;
    141   /** RegularExpression Id. */
    142   int FOR = 83;
    143   /** RegularExpression Id. */
    144   int FRIEND = 84;
    145   /** RegularExpression Id. */
    146   int GOTO = 85;
    147   /** RegularExpression Id. */
    148   int IF = 86;
    149   /** RegularExpression Id. */
    150   int INLINE = 87;
    151   /** RegularExpression Id. */
    152   int INT = 88;
    153   /** RegularExpression Id. */
    154   int LONG = 89;
    155   /** RegularExpression Id. */
    156   int NEW = 90;
    157   /** RegularExpression Id. */
    158   int PRIVATE = 91;
    159   /** RegularExpression Id. */
    160   int PROTECTED = 92;
    161   /** RegularExpression Id. */
    162   int PUBLIC = 93;
    163   /** RegularExpression Id. */
    164   int REDECLARED = 94;
    165   /** RegularExpression Id. */
    166   int REGISTER = 95;
    167   /** RegularExpression Id. */
    168   int RETURN = 96;
    169   /** RegularExpression Id. */
    170   int SHORT = 97;
    171   /** RegularExpression Id. */
    172   int SIGNED = 98;
    173   /** RegularExpression Id. */
    174   int SIZEOF = 99;
    175   /** RegularExpression Id. */
    176   int STATIC = 100;
    177   /** RegularExpression Id. */
    178   int STRUCT = 101;
    179   /** RegularExpression Id. */
    180   int CLASS = 102;
    181   /** RegularExpression Id. */
    182   int SWITCH = 103;
    183   /** RegularExpression Id. */
    184   int TEMPLATE = 104;
    185   /** RegularExpression Id. */
    186   int THIS = 105;
    187   /** RegularExpression Id. */
    188   int TRY = 106;
    189   /** RegularExpression Id. */
    190   int TYPEDEF = 107;
    191   /** RegularExpression Id. */
    192   int UNION = 108;
    193   /** RegularExpression Id. */
    194   int UNSIGNED = 109;
    195   /** RegularExpression Id. */
    196   int VIRTUAL = 110;
    197   /** RegularExpression Id. */
    198   int VOID = 111;
    199   /** RegularExpression Id. */
    200   int VOLATILE = 112;
    201   /** RegularExpression Id. */
    202   int WHILE = 113;
    203   /** RegularExpression Id. */
    204   int OPERATOR = 114;
    205   /** RegularExpression Id. */
    206   int TRUETOK = 115;
    207   /** RegularExpression Id. */
    208   int FALSETOK = 116;
    209   /** RegularExpression Id. */
    210   int THROW = 117;
    211   /** RegularExpression Id. */
    212   int OCTALINT = 118;
    213   /** RegularExpression Id. */
    214   int OCTALLONG = 119;
    215   /** RegularExpression Id. */
    216   int UNSIGNED_OCTALINT = 120;
    217   /** RegularExpression Id. */
    218   int UNSIGNED_OCTALLONG = 121;
    219   /** RegularExpression Id. */
    220   int DECIMALINT = 122;
    221   /** RegularExpression Id. */
    222   int DECIMALLONG = 123;
    223   /** RegularExpression Id. */
    224   int UNSIGNED_DECIMALINT = 124;
    225   /** RegularExpression Id. */
    226   int UNSIGNED_DECIMALLONG = 125;
    227   /** RegularExpression Id. */
    228   int HEXADECIMALINT = 126;
    229   /** RegularExpression Id. */
    230   int HEXADECIMALLONG = 127;
    231   /** RegularExpression Id. */
    232   int UNSIGNED_HEXADECIMALINT = 128;
    233   /** RegularExpression Id. */
    234   int UNSIGNED_HEXADECIMALLONG = 129;
    235   /** RegularExpression Id. */
    236   int FLOATONE = 130;
    237   /** RegularExpression Id. */
    238   int FLOATTWO = 131;
    239   /** RegularExpression Id. */
    240   int CHARACTER = 132;
    241   /** RegularExpression Id. */
    242   int STRING = 133;
    243   /** RegularExpression Id. */
    244   int ID = 135;
    245
    246   /** Lexical state. */
    247   int DEFAULT = 0;
    248   /** Lexical state. */
    249   int IN_LINE_COMMENT = 1;
    250   /** Lexical state. */
    251   int IN_COMMENT = 2;
    252   /** Lexical state. */
    253   int IN_PREPROCESSOR_OUTPUT_COMMENT = 3;
    254   /** Lexical state. */
    255   int PREPROCESSOR_OUTPUT = 4;
    256
    257   /** Literal token values. */
    258   String[] tokenImage = {
    259     "<EOF>",
    260     "\" \"",
    261     "\"\\f\"",
    262     "\"\\t\"",
    263     "\"\\r\\n\"",
    264     "\"\\n\"",
    265     "\"//\"",
    266     "\"/*\"",
    267     "\"#\"",
    268     "\"\\n\"",
    269     "<token of kind 10>",
    270     "\"*/\"",
    271     "<token of kind 12>",
    272     "\"*/\"",
    273     "\"\\n\"",
    274     "\"/*\"",
    275     "\"\\\\\\n\"",
    276     "\"\\\\\\r\\n\"",
    277     "<token of kind 18>",
    278     "\"{\"",
    279     "\"}\"",
    280     "\"[\"",
    281     "\"]\"",
    282     "\"(\"",
    283     "\")\"",
    284     "\"::\"",
    285     "\":\"",
    286     "\";\"",
    287     "\",\"",
    288     "\"?\"",
    289     "\"...\"",
    290     "\"=\"",
    291     "\"*=\"",
    292     "\"/=\"",
    293     "\"%=\"",
    294     "\"+=\"",
    295     "\"-=\"",
    296     "\"<<=\"",
    297     "\">>=\"",
    298     "\"&=\"",
    299     "\"^=\"",
    300     "\"|=\"",
    301     "\"||\"",
    302     "\"&&\"",
    303     "\"|\"",
    304     "\"^\"",
    305     "\"&\"",
    306     "\"==\"",
    307     "\"!=\"",
    308     "\"<\"",
    309     "\">\"",
    310     "\"<=\"",
    311     "\">=\"",
    312     "\"<<\"",
    313     "\">>\"",
    314     "\"+\"",
    315     "\"-\"",
    316     "\"*\"",
    317     "\"/\"",
    318     "\"%\"",
    319     "\"++\"",
    320     "\"--\"",
    321     "\"~\"",
    322     "\"!\"",
    323     "\".\"",
    324     "\"->\"",
    325     "\".*\"",
    326     "\"->*\"",
    327     "\"auto\"",
    328     "\"break\"",
    329     "\"case\"",
    330     "\"catch\"",
    331     "\"char\"",
    332     "\"const\"",
    333     "\"continue\"",
    334     "\"default\"",
    335     "\"delete\"",
    336     "\"do\"",
    337     "\"double\"",
    338     "\"else\"",
    339     "\"enum\"",
    340     "\"extern\"",
    341     "\"float\"",
    342     "\"for\"",
    343     "\"friend\"",
    344     "\"goto\"",
    345     "\"if\"",
    346     "\"inline\"",
    347     "\"int\"",
    348     "\"long\"",
    349     "\"new\"",
    350     "\"private\"",
    351     "\"protected\"",
    352     "\"public\"",
    353     "\"redeclared\"",
    354     "\"register\"",
    355     "\"return\"",
    356     "\"short\"",
    357     "\"signed\"",
    358     "\"sizeof\"",
    359     "\"static\"",
    360     "\"struct\"",
    361     "\"class\"",
    362     "\"switch\"",
    363     "\"template\"",
    364     "\"this\"",
    365     "\"try\"",
    366     "\"typedef\"",
    367     "\"union\"",
    368     "\"unsigned\"",
    369     "\"virtual\"",
    370     "\"void\"",
    371     "\"volatile\"",
    372     "\"while\"",
    373     "\"operator\"",
    374     "\"true\"",
    375     "\"false\"",
    376     "\"throw\"",
    377     "<OCTALINT>",
    378     "<OCTALLONG>",
    379     "<UNSIGNED_OCTALINT>",
    380     "<UNSIGNED_OCTALLONG>",
    381     "<DECIMALINT>",
    382     "<DECIMALLONG>",
    383     "<UNSIGNED_DECIMALINT>",
    384     "<UNSIGNED_DECIMALLONG>",
    385     "<HEXADECIMALINT>",
    386     "<HEXADECIMALLONG>",
    387     "<UNSIGNED_HEXADECIMALINT>",
    388     "<UNSIGNED_HEXADECIMALLONG>",
    389     "<FLOATONE>",
    390     "<FLOATTWO>",
    391     "<CHARACTER>",
    392     "<STRING>",
    393     "\"finally\"",
    394     "<ID>",
    395   };
    396
    397 }