1 2 package org.apache.velocity.runtime.parser; 3 4 public interface ParserConstants { 5 6 int EOF = 0; 7 int LBRACKET = 1; 8 int RBRACKET = 2; 9 int COMMA = 3; 10 int DOUBLEDOT = 4; 11 int LPAREN = 5; 12 int RPAREN = 6; 13 int REFMOD2_RPAREN = 7; 14 int ESCAPE_DIRECTIVE = 8; 15 int SET_DIRECTIVE = 9; 16 int DOLLAR = 10; 17 int DOLLARBANG = 11; 18 int HASH = 15; 19 int DOUBLE_ESCAPE = 16; 20 int ESCAPE = 17; 21 int TEXT = 18; 22 int SINGLE_LINE_COMMENT = 19; 23 int FORMAL_COMMENT = 20; 24 int MULTI_LINE_COMMENT = 21; 25 int WHITESPACE = 23; 26 int STRING_LITERAL = 24; 27 int TRUE = 25; 28 int FALSE = 26; 29 int NEWLINE = 27; 30 int MINUS = 28; 31 int PLUS = 29; 32 int MULTIPLY = 30; 33 int DIVIDE = 31; 34 int MODULUS = 32; 35 int LOGICAL_AND = 33; 36 int LOGICAL_OR = 34; 37 int LOGICAL_LT = 35; 38 int LOGICAL_LE = 36; 39 int LOGICAL_GT = 37; 40 int LOGICAL_GE = 38; 41 int LOGICAL_EQUALS = 39; 42 int LOGICAL_NOT_EQUALS = 40; 43 int LOGICAL_NOT = 41; 44 int EQUALS = 42; 45 int END = 43; 46 int IF_DIRECTIVE = 44; 47 int ELSEIF_DIRECTIVE = 45; 48 int ELSE_DIRECTIVE = 46; 49 int STOP_DIRECTIVE = 47; 50 int DIGIT = 48; 51 int NUMBER_LITERAL = 49; 52 int LETTER = 50; 53 int DIRECTIVE_CHAR = 51; 54 int WORD = 52; 55 int ALPHA_CHAR = 53; 56 int ALPHANUM_CHAR = 54; 57 int IDENTIFIER_CHAR = 55; 58 int IDENTIFIER = 56; 59 int DOT = 57; 60 int LCURLY = 58; 61 int RCURLY = 59; 62 int REFERENCE_TERMINATOR = 60; 63 int DIRECTIVE_TERMINATOR = 61; 64 65 int DIRECTIVE = 0; 66 int REFMOD2 = 1; 67 int REFMODIFIER = 2; 68 int DEFAULT = 3; 69 int PRE_DIRECTIVE = 4; 70 int REFERENCE = 5; 71 int IN_MULTI_LINE_COMMENT = 6; 72 int IN_FORMAL_COMMENT = 7; 73 int IN_SINGLE_LINE_COMMENT = 8; 74 75 String [] tokenImage = { 76 "<EOF>", 77 "\"[\"", 78 "\"]\"", 79 "\",\"", 80 "\"..\"", 81 "\"(\"", 82 "<RPAREN>", 83 "\")\"", 84 "<ESCAPE_DIRECTIVE>", 85 "<SET_DIRECTIVE>", 86 "<DOLLAR>", 87 "<DOLLARBANG>", 88 "\"##\"", 89 "<token of kind 13>", 90 "\"#*\"", 91 "\"#\"", 92 "\"\\\\\\\\\"", 93 "\"\\\\\"", 94 "<TEXT>", 95 "<SINGLE_LINE_COMMENT>", 96 "\"*#\"", 97 "\"*#\"", 98 "<token of kind 22>", 99 "<WHITESPACE>", 100 "<STRING_LITERAL>", 101 "\"true\"", 102 "\"false\"", 103 "<NEWLINE>", 104 "\"-\"", 105 "\"+\"", 106 "\"*\"", 107 "\"/\"", 108 "\"%\"", 109 "\"&&\"", 110 "\"||\"", 111 "\"<\"", 112 "\"<=\"", 113 "\">\"", 114 "\">=\"", 115 "\"==\"", 116 "\"!=\"", 117 "\"!\"", 118 "\"=\"", 119 "<END>", 120 "\"if\"", 121 "\"elseif\"", 122 "<ELSE_DIRECTIVE>", 123 "\"stop\"", 124 "<DIGIT>", 125 "<NUMBER_LITERAL>", 126 "<LETTER>", 127 "<DIRECTIVE_CHAR>", 128 "<WORD>", 129 "<ALPHA_CHAR>", 130 "<ALPHANUM_CHAR>", 131 "<IDENTIFIER_CHAR>", 132 "<IDENTIFIER>", 133 "<DOT>", 134 "\"{\"", 135 "\"}\"", 136 "<REFERENCE_TERMINATOR>", 137 "<DIRECTIVE_TERMINATOR>", 138 }; 139 140 } 141 | Popular Tags |