1 /*******************************************************************************
2  * Copyright (c) 2015 IBM Corporation and others.
3  *
4  * This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License 2.0
6  * which accompanies this distribution, and is available at
7  * https://www.eclipse.org/legal/epl-2.0/
8  *
9  * SPDX-License-Identifier: EPL-2.0
10  *
11  * Contributors:
12  *     IBM Corporation - initial API and implementation
13  *******************************************************************************/
14 /* Generated By:JavaCC: Do not edit this line. HTMLParserConstants.java */
15 package org.apache.lucene.demo.html;
16 
17 public interface HTMLParserConstants {
18 
19   int EOF = 0;
20   int ScriptStart = 1;
21   int TagName = 2;
22   int DeclName = 3;
23   int Comment1 = 4;
24   int Comment2 = 5;
25   int Word = 6;
26   int LET = 7;
27   int NUM = 8;
28   int HEX = 9;
29   int Space = 10;
30   int SP = 11;
31   int Entity = 12;
32   int Punct = 13;
33   int ScriptText = 14;
34   int ScriptEnd = 15;
35   int ArgName = 16;
36   int ArgEquals = 17;
37   int TagEnd = 18;
38   int ArgValue = 19;
39   int ArgQuote1 = 20;
40   int ArgQuote2 = 21;
41   int Quote1Text = 23;
42   int CloseQuote1 = 24;
43   int Quote2Text = 25;
44   int CloseQuote2 = 26;
45   int CommentText1 = 27;
46   int CommentEnd1 = 28;
47   int CommentText2 = 29;
48   int CommentEnd2 = 30;
49 
50   int DEFAULT = 0;
51   int WithinScript = 1;
52   int WithinTag = 2;
53   int AfterEquals = 3;
54   int WithinQuote1 = 4;
55   int WithinQuote2 = 5;
56   int WithinComment1 = 6;
57   int WithinComment2 = 7;
58 
59   String[] tokenImage = {
60     "<EOF>", //$NON-NLS-1$
61     "\"<script\"", //$NON-NLS-1$
62     "<TagName>", //$NON-NLS-1$
63     "<DeclName>", //$NON-NLS-1$
64     "\"<!--\"", //$NON-NLS-1$
65     "\"<!\"", //$NON-NLS-1$
66     "<Word>", //$NON-NLS-1$
67     "<LET>", //$NON-NLS-1$
68     "<NUM>", //$NON-NLS-1$
69     "<HEX>", //$NON-NLS-1$
70     "<Space>", //$NON-NLS-1$
71     "<SP>", //$NON-NLS-1$
72     "<Entity>", //$NON-NLS-1$
73     "<Punct>", //$NON-NLS-1$
74     "<ScriptText>", //$NON-NLS-1$
75     "<ScriptEnd>", //$NON-NLS-1$
76     "<ArgName>", //$NON-NLS-1$
77     "\"=\"", //$NON-NLS-1$
78     "<TagEnd>", //$NON-NLS-1$
79     "<ArgValue>", //$NON-NLS-1$
80     "\"\\\'\"", //$NON-NLS-1$
81     "\"\\\"\"", //$NON-NLS-1$
82     "<token of kind 22>", //$NON-NLS-1$
83     "<Quote1Text>", //$NON-NLS-1$
84     "<CloseQuote1>", //$NON-NLS-1$
85     "<Quote2Text>", //$NON-NLS-1$
86     "<CloseQuote2>", //$NON-NLS-1$
87     "<CommentText1>", //$NON-NLS-1$
88     "\"-->\"", //$NON-NLS-1$
89     "<CommentText2>", //$NON-NLS-1$
90     "\">\"", //$NON-NLS-1$
91   };
92 
93 }
94