1
2 package com.quiotix.html.parser;
3
4
5
6
7
8
9 public interface HtmlParserConstants {
10
11
12 int EOF = 0;
13
14 int ALPHA_CHAR = 4;
15
16 int NUM_CHAR = 5;
17
18 int ALPHANUM_CHAR = 6;
19
20 int IDENTIFIER_CHAR = 7;
21
22 int IDENTIFIER = 8;
23
24 int QUOTED_STRING_NB = 9;
25
26 int QUOTED_STRING = 10;
27
28 int WHITESPACE = 11;
29
30 int NEWLINE = 12;
31
32 int QUOTE = 13;
33
34 int EOL = 14;
35
36 int TAG_START = 15;
37
38 int ENDTAG_START = 16;
39
40 int COMMENT_START = 17;
41
42 int DECL_START = 18;
43
44 int PCDATA = 19;
45
46 int TAG_SCRIPT = 20;
47
48 int TAG_STYLE = 21;
49
50 int TAG_NAME = 22;
51
52 int LST_ERROR = 23;
53
54 int ATTR_NAME = 25;
55
56 int TAG_END = 26;
57
58 int TAG_SLASHEND = 27;
59
60 int ATTR_EQ = 28;
61
62 int IMPLICIT_TAG_END = 29;
63
64 int LIT_ERROR = 30;
65
66 int ATTR_VAL = 32;
67
68 int LAV_ERROR = 33;
69
70 int COMMENT_END = 34;
71
72 int DASH = 35;
73
74 int COMMENT_EOL = 36;
75
76 int COMMENT_WORD = 37;
77
78 int DECL_ANY = 38;
79
80 int DECL_END = 39;
81
82 int SCRIPT_END = 40;
83
84 int STYLE_END = 41;
85
86 int BLOCK_EOL = 42;
87
88 int BLOCK_LBR = 43;
89
90 int BLOCK_WORD = 44;
91
92
93 int LexStyle = 0;
94
95 int LexScript = 1;
96
97 int LexDecl = 2;
98
99 int LexComment = 3;
100
101 int LexAttrVal = 4;
102
103 int LexInTag = 5;
104
105 int LexStartTag = 6;
106
107 int DEFAULT = 7;
108
109
110 String[] tokenImage = {
111 "<EOF>",
112 "\"=\\n\"",
113 "\"=\\r\\n\"",
114 "\"=\\r\"",
115 "<ALPHA_CHAR>",
116 "<NUM_CHAR>",
117 "<ALPHANUM_CHAR>",
118 "<IDENTIFIER_CHAR>",
119 "<IDENTIFIER>",
120 "<QUOTED_STRING_NB>",
121 "<QUOTED_STRING>",
122 "<WHITESPACE>",
123 "<NEWLINE>",
124 "<QUOTE>",
125 "<EOL>",
126 "\"<\"",
127 "\"</\"",
128 "\"<!--\"",
129 "\"<!\"",
130 "<PCDATA>",
131 "\"SCRIPT\"",
132 "\"STYLE\"",
133 "<TAG_NAME>",
134 "<LST_ERROR>",
135 "<token of kind 24>",
136 "<ATTR_NAME>",
137 "\">\"",
138 "\"/>\"",
139 "\"=\"",
140 "\"<\"",
141 "<LIT_ERROR>",
142 "<token of kind 31>",
143 "<ATTR_VAL>",
144 "<LAV_ERROR>",
145 "<COMMENT_END>",
146 "\"-\"",
147 "<COMMENT_EOL>",
148 "<COMMENT_WORD>",
149 "<DECL_ANY>",
150 "\">\"",
151 "\"</SCRIPT>\"",
152 "\"</STYLE>\"",
153 "<BLOCK_EOL>",
154 "\"<\"",
155 "<BLOCK_WORD>",
156 };
157
158 }