001: // $ANTLR 2.7.7 (2006-01-29): "codegen.g" -> "CodeGenTreeWalker.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.codegen;
031:
032: import org.antlr.tool.*;
033: import org.antlr.analysis.*;
034: import org.antlr.misc.*;
035: import java.util.*;
036: import org.antlr.stringtemplate.*;
037: import antlr.TokenWithIndex;
038: import antlr.CommonToken;
039:
040: public interface CodeGenTreeWalkerTokenTypes {
041: int EOF = 1;
042: int NULL_TREE_LOOKAHEAD = 3;
043: int OPTIONS = 4;
044: int TOKENS = 5;
045: int PARSER = 6;
046: int LEXER = 7;
047: int RULE = 8;
048: int BLOCK = 9;
049: int OPTIONAL = 10;
050: int CLOSURE = 11;
051: int POSITIVE_CLOSURE = 12;
052: int SYNPRED = 13;
053: int RANGE = 14;
054: int CHAR_RANGE = 15;
055: int EPSILON = 16;
056: int ALT = 17;
057: int EOR = 18;
058: int EOB = 19;
059: int EOA = 20;
060: int ID = 21;
061: int ARG = 22;
062: int ARGLIST = 23;
063: int RET = 24;
064: int LEXER_GRAMMAR = 25;
065: int PARSER_GRAMMAR = 26;
066: int TREE_GRAMMAR = 27;
067: int COMBINED_GRAMMAR = 28;
068: int INITACTION = 29;
069: int LABEL = 30;
070: int TEMPLATE = 31;
071: int SCOPE = 32;
072: int GATED_SEMPRED = 33;
073: int SYN_SEMPRED = 34;
074: int BACKTRACK_SEMPRED = 35;
075: int FRAGMENT = 36;
076: int ACTION = 37;
077: int DOC_COMMENT = 38;
078: int SEMI = 39;
079: int LITERAL_lexer = 40;
080: int LITERAL_tree = 41;
081: int LITERAL_grammar = 42;
082: int AMPERSAND = 43;
083: int COLON = 44;
084: int RCURLY = 45;
085: int ASSIGN = 46;
086: int STRING_LITERAL = 47;
087: int CHAR_LITERAL = 48;
088: int INT = 49;
089: int STAR = 50;
090: int TOKEN_REF = 51;
091: int LITERAL_protected = 52;
092: int LITERAL_public = 53;
093: int LITERAL_private = 54;
094: int BANG = 55;
095: int ARG_ACTION = 56;
096: int LITERAL_returns = 57;
097: int LITERAL_throws = 58;
098: int COMMA = 59;
099: int LPAREN = 60;
100: int OR = 61;
101: int RPAREN = 62;
102: int LITERAL_catch = 63;
103: int LITERAL_finally = 64;
104: int PLUS_ASSIGN = 65;
105: int SEMPRED = 66;
106: int IMPLIES = 67;
107: int ROOT = 68;
108: int RULE_REF = 69;
109: int NOT = 70;
110: int TREE_BEGIN = 71;
111: int QUESTION = 72;
112: int PLUS = 73;
113: int WILDCARD = 74;
114: int REWRITE = 75;
115: int DOLLAR = 76;
116: int DOUBLE_QUOTE_STRING_LITERAL = 77;
117: int DOUBLE_ANGLE_STRING_LITERAL = 78;
118: int WS = 79;
119: int COMMENT = 80;
120: int SL_COMMENT = 81;
121: int ML_COMMENT = 82;
122: int OPEN_ELEMENT_OPTION = 83;
123: int CLOSE_ELEMENT_OPTION = 84;
124: int ESC = 85;
125: int DIGIT = 86;
126: int XDIGIT = 87;
127: int NESTED_ARG_ACTION = 88;
128: int NESTED_ACTION = 89;
129: int ACTION_CHAR_LITERAL = 90;
130: int ACTION_STRING_LITERAL = 91;
131: int ACTION_ESC = 92;
132: int WS_LOOP = 93;
133: int INTERNAL_RULE_REF = 94;
134: int WS_OPT = 95;
135: int SRC = 96;
136: }
|