001: /*
002: * GrammarConstants.java
003: *
004: * THIS FILE HAS BEEN GENERATED AUTOMATICALLY. DO NOT EDIT!
005: *
006: * This work is free software; you can redistribute it and/or modify
007: * it under the terms of the GNU General Public License as published
008: * by the Free Software Foundation; either version 2 of the License,
009: * or (at your option) any later version.
010: *
011: * This work is distributed in the hope that it will be useful, but
012: * WITHOUT ANY WARRANTY; without even the implied warranty of
013: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
014: * General Public License for more details.
015: *
016: * You should have received a copy of the GNU General Public License
017: * along with this program; if not, write to the Free Software
018: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
019: * USA
020: *
021: * As a special exception, the copyright holders of this library give
022: * you permission to link this library with independent modules to
023: * produce an executable, regardless of the license terms of these
024: * independent modules, and to copy and distribute the resulting
025: * executable under terms of your choice, provided that you also meet,
026: * for each linked independent module, the terms and conditions of the
027: * license of that module. An independent module is a module which is
028: * not derived from or based on this library. If you modify this
029: * library, you may extend this exception to your version of the
030: * library, but you are not obligated to do so. If you do not wish to
031: * do so, delete this exception statement from your version.
032: *
033: * Copyright (c) 2003 Per Cederberg. All rights reserved.
034: */
035:
036: package net.percederberg.grammatica;
037:
038: /**
039: * An interface with constants for the parser and tokenizer.
040: *
041: * @author Per Cederberg, <per at percederberg dot net>
042: * @version 1.2
043: */
044: interface GrammarConstants {
045:
046: /**
047: * A token identity constant.
048: */
049: public static final int HEADER = 1001;
050:
051: /**
052: * A token identity constant.
053: */
054: public static final int TOKENS = 1002;
055:
056: /**
057: * A token identity constant.
058: */
059: public static final int PRODUCTIONS = 1003;
060:
061: /**
062: * A token identity constant.
063: */
064: public static final int IGNORE = 1004;
065:
066: /**
067: * A token identity constant.
068: */
069: public static final int ERROR = 1005;
070:
071: /**
072: * A token identity constant.
073: */
074: public static final int UNTERMINATED_DIRECTIVE = 1006;
075:
076: /**
077: * A token identity constant.
078: */
079: public static final int EQUALS = 1007;
080:
081: /**
082: * A token identity constant.
083: */
084: public static final int LEFT_PAREN = 1008;
085:
086: /**
087: * A token identity constant.
088: */
089: public static final int RIGHT_PAREN = 1009;
090:
091: /**
092: * A token identity constant.
093: */
094: public static final int LEFT_BRACE = 1010;
095:
096: /**
097: * A token identity constant.
098: */
099: public static final int RIGHT_BRACE = 1011;
100:
101: /**
102: * A token identity constant.
103: */
104: public static final int LEFT_BRACKET = 1012;
105:
106: /**
107: * A token identity constant.
108: */
109: public static final int RIGHT_BRACKET = 1013;
110:
111: /**
112: * A token identity constant.
113: */
114: public static final int QUESTION_MARK = 1014;
115:
116: /**
117: * A token identity constant.
118: */
119: public static final int PLUS_SIGN = 1015;
120:
121: /**
122: * A token identity constant.
123: */
124: public static final int ASTERISK = 1016;
125:
126: /**
127: * A token identity constant.
128: */
129: public static final int VERTICAL_BAR = 1017;
130:
131: /**
132: * A token identity constant.
133: */
134: public static final int SEMICOLON = 1018;
135:
136: /**
137: * A token identity constant.
138: */
139: public static final int IDENTIFIER = 1019;
140:
141: /**
142: * A token identity constant.
143: */
144: public static final int QUOTED_STRING = 1020;
145:
146: /**
147: * A token identity constant.
148: */
149: public static final int REGEXP = 1021;
150:
151: /**
152: * A token identity constant.
153: */
154: public static final int SINGLE_LINE_COMMENT = 1022;
155:
156: /**
157: * A token identity constant.
158: */
159: public static final int MULTI_LINE_COMMENT = 1023;
160:
161: /**
162: * A token identity constant.
163: */
164: public static final int WHITESPACE = 1024;
165:
166: /**
167: * A production node identity constant.
168: */
169: public static final int GRAMMAR = 2001;
170:
171: /**
172: * A production node identity constant.
173: */
174: public static final int HEADER_PART = 2002;
175:
176: /**
177: * A production node identity constant.
178: */
179: public static final int HEADER_DECLARATION = 2003;
180:
181: /**
182: * A production node identity constant.
183: */
184: public static final int TOKEN_PART = 2004;
185:
186: /**
187: * A production node identity constant.
188: */
189: public static final int TOKEN_DECLARATION = 2005;
190:
191: /**
192: * A production node identity constant.
193: */
194: public static final int TOKEN_VALUE = 2006;
195:
196: /**
197: * A production node identity constant.
198: */
199: public static final int TOKEN_HANDLING = 2007;
200:
201: /**
202: * A production node identity constant.
203: */
204: public static final int PRODUCTION_PART = 2008;
205:
206: /**
207: * A production node identity constant.
208: */
209: public static final int PRODUCTION_DECLARATION = 2009;
210:
211: /**
212: * A production node identity constant.
213: */
214: public static final int PRODUCTION = 2010;
215:
216: /**
217: * A production node identity constant.
218: */
219: public static final int PRODUCTION_ATOM = 2011;
220: }
|