1
2 package gate.jape.parser;
3
4 public interface ParseCpslConstants {
5
6 int EOF = 0;
7 int space = 1;
8 int spaces = 2;
9 int newline = 3;
10 int digits = 4;
11 int letter = 5;
12 int letters = 6;
13 int lettersAndDigits = 7;
14 int letterOrDigitOrDash = 8;
15 int lettersAndDigitsAndDashes = 9;
16 int multiphase = 10;
17 int phases = 11;
18 int path = 12;
19 int phasesWhiteSpace = 13;
20 int phasesSingleLineCStyleComment = 14;
21 int phasesSingleLineCpslStyleComment = 15;
22 int phasesCommentStart = 16;
23 int phasesCommentChars = 17;
24 int phasesCommentEnd = 18;
25 int phase = 19;
26 int input = 20;
27 int option = 21;
28 int rule = 22;
29 int macro = 23;
30 int priority = 24;
31 int pling = 25;
32 int kleeneOp = 26;
33 int integer = 27;
34 int string = 34;
35 int bool = 35;
36 int ident = 36;
37 int floatingPoint = 37;
38 int exponent = 38;
39 int colon = 39;
40 int semicolon = 40;
41 int period = 41;
42 int bar = 42;
43 int comma = 43;
44 int leftBrace = 44;
45 int rightBrace = 45;
46 int leftBracket = 46;
47 int rightBracket = 47;
48 int assign = 48;
49 int equals = 49;
50 int colonplus = 50;
51 int whiteSpace = 51;
52 int singleLineCStyleComment = 52;
53 int singleLineCpslStyleComment = 53;
54 int commentStart = 54;
55 int commentChars = 55;
56 int commentEnd = 56;
57 int other = 57;
58
59 int DEFAULT = 0;
60 int IN_PHASES = 1;
61 int PHASES_WITHIN_COMMENT = 2;
62 int IN_STRING = 3;
63 int WITHIN_COMMENT = 4;
64
65 String[] tokenImage = {
66 "<EOF>",
67 "<space>",
68 "<spaces>",
69 "<newline>",
70 "<digits>",
71 "<letter>",
72 "<letters>",
73 "<lettersAndDigits>",
74 "<letterOrDigitOrDash>",
75 "<lettersAndDigitsAndDashes>",
76 "\"Multiphase:\"",
77 "\"Phases:\"",
78 "<path>",
79 "<phasesWhiteSpace>",
80 "<phasesSingleLineCStyleComment>",
81 "<phasesSingleLineCpslStyleComment>",
82 "<phasesCommentStart>",
83 "<phasesCommentChars>",
84 "<phasesCommentEnd>",
85 "\"Phase:\"",
86 "\"Input:\"",
87 "\"Options:\"",
88 "\"Rule:\"",
89 "\"Macro:\"",
90 "\"Priority:\"",
91 "\"!\"",
92 "<kleeneOp>",
93 "<integer>",
94 "\"\\\"\"",
95 "\"\\\\n\"",
96 "\"\\\\r\"",
97 "\"\\\\t\"",
98 "\"\\\\\\\"\"",
99 "<token of kind 33>",
100 "\"\\\"\"",
101 "<bool>",
102 "<ident>",
103 "<floatingPoint>",
104 "<exponent>",
105 "\":\"",
106 "\";\"",
107 "\".\"",
108 "\"|\"",
109 "\",\"",
110 "\"{\"",
111 "\"}\"",
112 "\"(\"",
113 "\")\"",
114 "\"=\"",
115 "\"==\"",
116 "\":+\"",
117 "<whiteSpace>",
118 "<singleLineCStyleComment>",
119 "<singleLineCpslStyleComment>",
120 "<commentStart>",
121 "<commentChars>",
122 "<commentEnd>",
123 "<other>",
124 "\"-->\"",
125 };
126
127 }
128