1 2 package freemarker.core; 3 4 interface FMParserConstants { 5 6 int EOF = 0; 7 int BLANK = 1; 8 int START_TAG = 2; 9 int END_TAG = 3; 10 int CLOSE_TAG1 = 4; 11 int CLOSE_TAG2 = 5; 12 int ATTEMPT = 6; 13 int RECOVER = 7; 14 int IF = 8; 15 int ELSE_IF = 9; 16 int LIST = 10; 17 int FOREACH = 11; 18 int SWITCH = 12; 19 int CASE = 13; 20 int ASSIGN = 14; 21 int GLOBALASSIGN = 15; 22 int LOCALASSIGN = 16; 23 int INCLUDE = 17; 24 int IMPORT = 18; 25 int FUNCTION = 19; 26 int MACRO = 20; 27 int TRANSFORM = 21; 28 int VISIT = 22; 29 int STOP = 23; 30 int RETURN = 24; 31 int CALL = 25; 32 int SETTING = 26; 33 int COMPRESS = 27; 34 int COMMENT = 28; 35 int TERSE_COMMENT = 29; 36 int NOPARSE = 30; 37 int END_IF = 31; 38 int END_LIST = 32; 39 int END_RECOVER = 33; 40 int END_FOREACH = 34; 41 int END_LOCAL = 35; 42 int END_GLOBAL = 36; 43 int END_ASSIGN = 37; 44 int END_FUNCTION = 38; 45 int END_MACRO = 39; 46 int END_COMPRESS = 40; 47 int END_TRANSFORM = 41; 48 int END_SWITCH = 42; 49 int ELSE = 43; 50 int BREAK = 44; 51 int SIMPLE_RETURN = 45; 52 int HALT = 46; 53 int FLUSH = 47; 54 int TRIM = 48; 55 int LTRIM = 49; 56 int RTRIM = 50; 57 int NOTRIM = 51; 58 int DEFAUL = 52; 59 int SIMPLE_NESTED = 53; 60 int NESTED = 54; 61 int SIMPLE_RECURSE = 55; 62 int RECURSE = 56; 63 int FALLBACK = 57; 64 int ESCAPE = 58; 65 int END_ESCAPE = 59; 66 int NOESCAPE = 60; 67 int END_NOESCAPE = 61; 68 int UNIFIED_CALL = 62; 69 int UNIFIED_CALL_END = 63; 70 int FTL_HEADER = 64; 71 int TRIVIAL_FTL_HEADER = 65; 72 int UNKNOWN_DIRECTIVE = 66; 73 int WHITESPACE = 67; 74 int PRINTABLE_CHARS = 68; 75 int FALSE_ALERT = 69; 76 int OUTPUT_ESCAPE = 70; 77 int NUMERICAL_ESCAPE = 71; 78 int ESCAPED_CHAR = 78; 79 int STRING_LITERAL = 79; 80 int RAW_STRING = 80; 81 int FALSE = 81; 82 int TRUE = 82; 83 int INTEGER = 83; 84 int DECIMAL = 84; 85 int DOT = 85; 86 int DOT_DOT = 86; 87 int BUILT_IN = 87; 88 int EQUALS = 88; 89 int DOUBLE_EQUALS = 89; 90 int NOT_EQUALS = 90; 91 int LESS_THAN = 91; 92 int LESS_THAN_EQUALS = 92; 93 int ESCAPED_GT = 93; 94 int ESCAPED_GTE = 94; 95 int PLUS = 95; 96 int MINUS = 96; 97 int TIMES = 97; 98 int DOUBLE_STAR = 98; 99 int ELLIPSIS = 99; 100 int DIVIDE = 100; 101 int PERCENT = 101; 102 int AND = 102; 103 int OR = 103; 104 int NOT = 104; 105 int COMMA = 105; 106 int SEMICOLON = 106; 107 int COLON = 107; 108 int OPEN_BRACKET = 108; 109 int CLOSE_BRACKET = 109; 110 int OPEN_PAREN = 110; 111 int CLOSE_PAREN = 111; 112 int OPEN_BRACE = 112; 113 int CLOSE_BRACE = 113; 114 int IN = 114; 115 int AS = 115; 116 int USING = 116; 117 int ID = 117; 118 int LETTER = 118; 119 int DIGIT = 119; 120 int DIRECTIVE_END = 120; 121 int EMPTY_DIRECTIVE_END = 121; 122 int NATURAL_GT = 122; 123 int NATURAL_GTE = 123; 124 int TERMINATING_WHITESPACE = 124; 125 int TERSE_COMMENT_END = 125; 126 int MAYBE_END = 126; 127 int KEEP_GOING = 127; 128 int LONE_LESS_THAN_OR_DASH = 128; 129 130 int DEFAULT = 0; 131 int NODIRECTIVE = 1; 132 int FM_EXPRESSION = 2; 133 int IN_PAREN = 3; 134 int EXPRESSION_COMMENT = 4; 135 int NO_SPACE_EXPRESSION = 5; 136 int NO_PARSE = 6; 137 138 String [] tokenImage = { 139 "<EOF>", 140 "<BLANK>", 141 "<START_TAG>", 142 "<END_TAG>", 143 "<CLOSE_TAG1>", 144 "<CLOSE_TAG2>", 145 "<ATTEMPT>", 146 "<RECOVER>", 147 "<IF>", 148 "<ELSE_IF>", 149 "<LIST>", 150 "<FOREACH>", 151 "<SWITCH>", 152 "<CASE>", 153 "<ASSIGN>", 154 "<GLOBALASSIGN>", 155 "<LOCALASSIGN>", 156 "<INCLUDE>", 157 "<IMPORT>", 158 "<FUNCTION>", 159 "<MACRO>", 160 "<TRANSFORM>", 161 "<VISIT>", 162 "<STOP>", 163 "<RETURN>", 164 "<CALL>", 165 "<SETTING>", 166 "<COMPRESS>", 167 "<COMMENT>", 168 "\"<#--\"", 169 "<NOPARSE>", 170 "<END_IF>", 171 "<END_LIST>", 172 "<END_RECOVER>", 173 "<END_FOREACH>", 174 "<END_LOCAL>", 175 "<END_GLOBAL>", 176 "<END_ASSIGN>", 177 "<END_FUNCTION>", 178 "<END_MACRO>", 179 "<END_COMPRESS>", 180 "<END_TRANSFORM>", 181 "<END_SWITCH>", 182 "<ELSE>", 183 "<BREAK>", 184 "<SIMPLE_RETURN>", 185 "<HALT>", 186 "<FLUSH>", 187 "<TRIM>", 188 "<LTRIM>", 189 "<RTRIM>", 190 "<NOTRIM>", 191 "<DEFAUL>", 192 "<SIMPLE_NESTED>", 193 "<NESTED>", 194 "<SIMPLE_RECURSE>", 195 "<RECURSE>", 196 "<FALLBACK>", 197 "<ESCAPE>", 198 "<END_ESCAPE>", 199 "<NOESCAPE>", 200 "<END_NOESCAPE>", 201 "\"<@\"", 202 "<UNIFIED_CALL_END>", 203 "<FTL_HEADER>", 204 "<TRIVIAL_FTL_HEADER>", 205 "<UNKNOWN_DIRECTIVE>", 206 "<WHITESPACE>", 207 "<PRINTABLE_CHARS>", 208 "<FALSE_ALERT>", 209 "\"${\"", 210 "\"#{\"", 211 "<token of kind 72>", 212 "<token of kind 73>", 213 "<token of kind 74>", 214 "\">\"", 215 "\"-\"", 216 "\"-->\"", 217 "<ESCAPED_CHAR>", 218 "<STRING_LITERAL>", 219 "<RAW_STRING>", 220 "\"false\"", 221 "\"true\"", 222 "<INTEGER>", 223 "<DECIMAL>", 224 "\".\"", 225 "\"..\"", 226 "\"?\"", 227 "\"=\"", 228 "\"==\"", 229 "\"!=\"", 230 "<LESS_THAN>", 231 "<LESS_THAN_EQUALS>", 232 "<ESCAPED_GT>", 233 "<ESCAPED_GTE>", 234 "\"+\"", 235 "\"-\"", 236 "\"*\"", 237 "\"**\"", 238 "\"...\"", 239 "\"/\"", 240 "\"%\"", 241 "<AND>", 242 "<OR>", 243 "\"!\"", 244 "\",\"", 245 "\";\"", 246 "\":\"", 247 "\"[\"", 248 "\"]\"", 249 "\"(\"", 250 "\")\"", 251 "\"{\"", 252 "\"}\"", 253 "\"in\"", 254 "\"as\"", 255 "\"using\"", 256 "<ID>", 257 "<LETTER>", 258 "<DIGIT>", 259 "\">\"", 260 "\"/>\"", 261 "\">\"", 262 "\">=\"", 263 "<TERMINATING_WHITESPACE>", 264 "\"-->\"", 265 "<MAYBE_END>", 266 "<KEEP_GOING>", 267 "<LONE_LESS_THAN_OR_DASH>", 268 }; 269 270 } 271 | Popular Tags |