001: /* Generated By:JJTree&JavaCC: Do not edit this line. ParserConstants.java */
002: package org.apache.velocity.runtime.parser;
003:
004: public interface ParserConstants {
005:
006: int EOF = 0;
007: int LBRACKET = 1;
008: int RBRACKET = 2;
009: int COMMA = 3;
010: int DOUBLEDOT = 4;
011: int COLON = 5;
012: int LEFT_CURLEY = 6;
013: int RIGHT_CURLEY = 7;
014: int LPAREN = 8;
015: int RPAREN = 9;
016: int REFMOD2_RPAREN = 10;
017: int ESCAPE_DIRECTIVE = 11;
018: int SET_DIRECTIVE = 12;
019: int DOLLAR = 13;
020: int DOLLARBANG = 14;
021: int HASH = 17;
022: int SINGLE_LINE_COMMENT_START = 18;
023: int DOUBLE_ESCAPE = 19;
024: int ESCAPE = 20;
025: int TEXT = 21;
026: int SINGLE_LINE_COMMENT = 22;
027: int FORMAL_COMMENT = 23;
028: int MULTI_LINE_COMMENT = 24;
029: int WHITESPACE = 26;
030: int STRING_LITERAL = 27;
031: int TRUE = 28;
032: int FALSE = 29;
033: int NEWLINE = 30;
034: int MINUS = 31;
035: int PLUS = 32;
036: int MULTIPLY = 33;
037: int DIVIDE = 34;
038: int MODULUS = 35;
039: int LOGICAL_AND = 36;
040: int LOGICAL_OR = 37;
041: int LOGICAL_LT = 38;
042: int LOGICAL_LE = 39;
043: int LOGICAL_GT = 40;
044: int LOGICAL_GE = 41;
045: int LOGICAL_EQUALS = 42;
046: int LOGICAL_NOT_EQUALS = 43;
047: int LOGICAL_NOT = 44;
048: int EQUALS = 45;
049: int END = 46;
050: int IF_DIRECTIVE = 47;
051: int ELSEIF_DIRECTIVE = 48;
052: int ELSE_DIRECTIVE = 49;
053: int STOP_DIRECTIVE = 50;
054: int DIGIT = 51;
055: int INTEGER_LITERAL = 52;
056: int FLOATING_POINT_LITERAL = 53;
057: int EXPONENT = 54;
058: int LETTER = 55;
059: int DIRECTIVE_CHAR = 56;
060: int WORD = 57;
061: int BRACKETED_WORD = 58;
062: int ALPHA_CHAR = 59;
063: int ALPHANUM_CHAR = 60;
064: int IDENTIFIER_CHAR = 61;
065: int IDENTIFIER = 62;
066: int DOT = 63;
067: int LCURLY = 64;
068: int RCURLY = 65;
069: int REFERENCE_TERMINATOR = 66;
070: int DIRECTIVE_TERMINATOR = 67;
071:
072: int DIRECTIVE = 0;
073: int REFMOD2 = 1;
074: int REFMODIFIER = 2;
075: int DEFAULT = 3;
076: int PRE_DIRECTIVE = 4;
077: int REFERENCE = 5;
078: int IN_MULTI_LINE_COMMENT = 6;
079: int IN_FORMAL_COMMENT = 7;
080: int IN_SINGLE_LINE_COMMENT = 8;
081:
082: String[] tokenImage = { "<EOF>", "\"[\"", "\"]\"", "\",\"",
083: "\"..\"", "\":\"", "\"{\"", "\"}\"", "\"(\"", "<RPAREN>",
084: "\")\"", "<ESCAPE_DIRECTIVE>", "<SET_DIRECTIVE>",
085: "<DOLLAR>", "<DOLLARBANG>", "<token of kind 15>", "\"#*\"",
086: "\"#\"", "\"##\"", "\"\\\\\\\\\"", "\"\\\\\"", "<TEXT>",
087: "<SINGLE_LINE_COMMENT>", "\"*#\"", "\"*#\"",
088: "<token of kind 25>", "<WHITESPACE>", "<STRING_LITERAL>",
089: "\"true\"", "\"false\"", "<NEWLINE>", "\"-\"", "\"+\"",
090: "\"*\"", "\"/\"", "\"%\"", "<LOGICAL_AND>", "<LOGICAL_OR>",
091: "<LOGICAL_LT>", "<LOGICAL_LE>", "<LOGICAL_GT>",
092: "<LOGICAL_GE>", "<LOGICAL_EQUALS>", "<LOGICAL_NOT_EQUALS>",
093: "<LOGICAL_NOT>", "\"=\"", "<END>", "<IF_DIRECTIVE>",
094: "<ELSEIF_DIRECTIVE>", "<ELSE_DIRECTIVE>",
095: "<STOP_DIRECTIVE>", "<DIGIT>", "<INTEGER_LITERAL>",
096: "<FLOATING_POINT_LITERAL>", "<EXPONENT>", "<LETTER>",
097: "<DIRECTIVE_CHAR>", "<WORD>", "<BRACKETED_WORD>",
098: "<ALPHA_CHAR>", "<ALPHANUM_CHAR>", "<IDENTIFIER_CHAR>",
099: "<IDENTIFIER>", "<DOT>", "\"{\"", "\"}\"",
100: "<REFERENCE_TERMINATOR>", "<DIRECTIVE_TERMINATOR>", };
101:
102: }
|