001: // $ANTLR 2.7.7 (2006-01-29): "antlr.print.g" -> "ANTLRTreePrinter.java"$
002:
003: /*
004: [The "BSD licence"]
005: Copyright (c) 2005-2006 Terence Parr
006: All rights reserved.
007:
008: Redistribution and use in source and binary forms, with or without
009: modification, are permitted provided that the following conditions
010: are met:
011: 1. Redistributions of source code must retain the above copyright
012: notice, this list of conditions and the following disclaimer.
013: 2. Redistributions in binary form must reproduce the above copyright
014: notice, this list of conditions and the following disclaimer in the
015: documentation and/or other materials provided with the distribution.
016: 3. The name of the author may not be used to endorse or promote products
017: derived from this software without specific prior written permission.
018:
019: THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
020: IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
021: OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
022: IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
023: INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
024: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
025: DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
026: THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
027: (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
028: THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
029: */
030: package org.antlr.tool;
031:
032: import java.util.*;
033:
034: public interface ANTLRTreePrinterTokenTypes {
035: int EOF = 1;
036: int NULL_TREE_LOOKAHEAD = 3;
037: int OPTIONS = 4;
038: int TOKENS = 5;
039: int PARSER = 6;
040: int LEXER = 7;
041: int RULE = 8;
042: int BLOCK = 9;
043: int OPTIONAL = 10;
044: int CLOSURE = 11;
045: int POSITIVE_CLOSURE = 12;
046: int SYNPRED = 13;
047: int RANGE = 14;
048: int CHAR_RANGE = 15;
049: int EPSILON = 16;
050: int ALT = 17;
051: int EOR = 18;
052: int EOB = 19;
053: int EOA = 20;
054: int ID = 21;
055: int ARG = 22;
056: int ARGLIST = 23;
057: int RET = 24;
058: int LEXER_GRAMMAR = 25;
059: int PARSER_GRAMMAR = 26;
060: int TREE_GRAMMAR = 27;
061: int COMBINED_GRAMMAR = 28;
062: int INITACTION = 29;
063: int LABEL = 30;
064: int TEMPLATE = 31;
065: int SCOPE = 32;
066: int GATED_SEMPRED = 33;
067: int SYN_SEMPRED = 34;
068: int BACKTRACK_SEMPRED = 35;
069: int FRAGMENT = 36;
070: int ACTION = 37;
071: int DOC_COMMENT = 38;
072: int SEMI = 39;
073: int LITERAL_lexer = 40;
074: int LITERAL_tree = 41;
075: int LITERAL_grammar = 42;
076: int AMPERSAND = 43;
077: int COLON = 44;
078: int RCURLY = 45;
079: int ASSIGN = 46;
080: int STRING_LITERAL = 47;
081: int CHAR_LITERAL = 48;
082: int INT = 49;
083: int STAR = 50;
084: int TOKEN_REF = 51;
085: int LITERAL_protected = 52;
086: int LITERAL_public = 53;
087: int LITERAL_private = 54;
088: int BANG = 55;
089: int ARG_ACTION = 56;
090: int LITERAL_returns = 57;
091: int LITERAL_throws = 58;
092: int COMMA = 59;
093: int LPAREN = 60;
094: int OR = 61;
095: int RPAREN = 62;
096: int LITERAL_catch = 63;
097: int LITERAL_finally = 64;
098: int PLUS_ASSIGN = 65;
099: int SEMPRED = 66;
100: int IMPLIES = 67;
101: int ROOT = 68;
102: int RULE_REF = 69;
103: int NOT = 70;
104: int TREE_BEGIN = 71;
105: int QUESTION = 72;
106: int PLUS = 73;
107: int WILDCARD = 74;
108: int REWRITE = 75;
109: int DOLLAR = 76;
110: int DOUBLE_QUOTE_STRING_LITERAL = 77;
111: int DOUBLE_ANGLE_STRING_LITERAL = 78;
112: int WS = 79;
113: int COMMENT = 80;
114: int SL_COMMENT = 81;
115: int ML_COMMENT = 82;
116: int OPEN_ELEMENT_OPTION = 83;
117: int CLOSE_ELEMENT_OPTION = 84;
118: int ESC = 85;
119: int DIGIT = 86;
120: int XDIGIT = 87;
121: int NESTED_ARG_ACTION = 88;
122: int NESTED_ACTION = 89;
123: int ACTION_CHAR_LITERAL = 90;
124: int ACTION_STRING_LITERAL = 91;
125: int ACTION_ESC = 92;
126: int WS_LOOP = 93;
127: int INTERNAL_RULE_REF = 94;
128: int WS_OPT = 95;
129: int SRC = 96;
130: }
|