KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > finalist > jag > template > parser > JagParserConstants


1 /* Copyright (C) 2003 Finalist IT Group
2  *
3  * This file is part of JAG - the Java J2EE Application Generator
4  *
5  * JAG is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  * JAG is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  * You should have received a copy of the GNU General Public License
14  * along with JAG; if not, write to the Free Software
15  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16  */

17
18 package com.finalist.jag.template.parser;
19
20 public interface JagParserConstants {
21    static int IDENT = 0;
22    static int STRING = 1;
23    static int INTEGER = 2;
24    static int FLOAT = 3;
25    static int TEXT = 4;
26
27    static int HEADERDEF_BEGIN = 5;
28    static int HEADERDEF_END = 6;
29    static int TAGDEF_BEGIN = 7;
30    static int TAGDEF_END = 8;
31    static int TAGDEF_CLOSE = 9;
32    static int ASSIGN = 10;
33    static int SEMICOLON = 11;
34    static int COLON = 12;
35
36    static int LANGUAGE = 13;
37    static int TAGSTART = 14;
38    static int TAGEND = 15;
39    static int TAGLIB = 16;
40    static int URI = 17;
41    static int PREFIX = 18;
42    static int DEFINE = 19;
43    static int PARAMDEF = 20;
44
45    static int TAGNAME = 21;
46    static int TAGACTION = 22;
47    static int SLIST = 23;
48
49    static int COMMENT_BEGIN = 24;
50    static int COMMENT_END = 25;
51
52    static final char EOF_CHAR = (char) -1;
53
54    static String JavaDoc[] tokennames =
55       {
56          "IDENT", //IDENT = 0
57
"STRING", //STRING = 1
58
"INTEGER", //INTEGER = 2
59
"FLOAT", //FLOAT = 3
60
"TEXT", //TEXT = 4
61

62          "<#@", //HEADERDEF_BEGIN = 5
63
"#>", //HEADERDEF_END = 6
64
"<", //TAGDEF_BEGIN = 7
65
">", //TAGDEF_END = 8
66
"/", //TAGDEF_CLOSE = 9
67
"=", //ASSIGN = 10
68
";", //SEMICOLON = 11
69
":", //COLON = 12
70

71          "language", //LANGUAGE = 13
72
"tagstart", //TAGSTART = 14
73
"tagend", //TAGEND = 15
74
"taglib", //TAGLIB = 16
75
"uri", //URI = 17
76
"prefix", //PREFIX = 18
77
"define", //DEFINE = 19
78

79          "PARAMDEF", //PARAMDEF = 20
80

81          "TAGNAME", //TAGNAME = 21
82
"TAGACTION", //TAGACTION = 22
83
"SLIST", //SLIST = 23
84

85          "!--", //COMMENT_BEGIN = 24
86
"--" //COMMENT_END = 25
87
};
88 }
89
90 ;
91
Popular Tags