aboutsummaryrefslogtreecommitdiff
path: root/src/org/json/simple/parser/Yylex.java
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2014-05-05 20:25:53 +0000
committerPacien TRAN-GIRARD2014-05-05 20:25:53 +0000
commitc67f1d95464d1d6c2854c59a920a2b3ea975df0f (patch)
treebf84b623ddec71edfbfc68f16d5530a3e11f7155 /src/org/json/simple/parser/Yylex.java
parent0a87883db4d8e1728c1f520deda15e6e79ff1f01 (diff)
parentb8cafdd1c70b3fbb455ee6821c3dd0e5dc587188 (diff)
downloadesieequest-c67f1d95464d1d6c2854c59a920a2b3ea975df0f.tar.gz
Merge branch 'zuul-awesome' into 'master'
Zuul Awesome
Diffstat (limited to 'src/org/json/simple/parser/Yylex.java')
-rw-r--r--src/org/json/simple/parser/Yylex.java625
1 files changed, 625 insertions, 0 deletions
diff --git a/src/org/json/simple/parser/Yylex.java b/src/org/json/simple/parser/Yylex.java
new file mode 100644
index 0000000..10049c4
--- /dev/null
+++ b/src/org/json/simple/parser/Yylex.java
@@ -0,0 +1,625 @@
1/* The following code was generated by JFlex 1.4.2 */
2
3package org.json.simple.parser;
4
5class Yylex {
6
7 /** This character denotes the end of file */
8 public static final int YYEOF = -1;
9
10 /** initial size of the lookahead buffer */
11 private static final int ZZ_BUFFERSIZE = 16384;
12
13 /** lexical states */
14 public static final int YYINITIAL = 0;
15 public static final int STRING_BEGIN = 2;
16
17 /**
18 * ZZ_LEXSTATE[l] is the state in the DFA for the lexical state l
19 * ZZ_LEXSTATE[l+1] is the state in the DFA for the lexical state l at the
20 * beginning of a line l is of the form l = 2*k, k a non negative integer
21 */
22 private static final int ZZ_LEXSTATE[] = { 0, 0, 1, 1 };
23
24 /**
25 * Translates characters to character classes
26 */
27 private static final String ZZ_CMAP_PACKED = "\11\0\1\7\1\7\2\0\1\7\22\0\1\7\1\0\1\11\10\0" + "\1\6\1\31\1\2\1\4\1\12\12\3\1\32\6\0\4\1\1\5" + "\1\1\24\0\1\27\1\10\1\30\3\0\1\22\1\13\2\1\1\21" + "\1\14\5\0\1\23\1\0\1\15\3\0\1\16\1\24\1\17\1\20" + "\5\0\1\25\1\0\1\26\uff82\0";
28
29 /**
30 * Translates characters to character classes
31 */
32 private static final char[] ZZ_CMAP = Yylex.zzUnpackCMap(Yylex.ZZ_CMAP_PACKED);
33
34 /**
35 * Translates DFA states to action switch labels.
36 */
37 private static final int[] ZZ_ACTION = Yylex.zzUnpackAction();
38
39 private static final String ZZ_ACTION_PACKED_0 = "\2\0\2\1\1\2\1\3\1\4\3\1\1\5\1\6" + "\1\7\1\10\1\11\1\12\1\13\1\14\1\15\5\0" + "\1\14\1\16\1\17\1\20\1\21\1\22\1\23\1\24" + "\1\0\1\25\1\0\1\25\4\0\1\26\1\27\2\0" + "\1\30";
40
41 private static int[] zzUnpackAction() {
42 final int[] result = new int[45];
43 int offset = 0;
44 offset = Yylex.zzUnpackAction(Yylex.ZZ_ACTION_PACKED_0, offset, result);
45 return result;
46 }
47
48 private static int zzUnpackAction(final String packed, final int offset, final int[] result) {
49 int i = 0; /* index in packed string */
50 int j = offset; /* index in unpacked array */
51 final int l = packed.length();
52 while (i < l) {
53 int count = packed.charAt(i++);
54 final int value = packed.charAt(i++);
55 do {
56 result[j++] = value;
57 } while (--count > 0);
58 }
59 return j;
60 }
61
62 /**
63 * Translates a state to a row index in the transition table
64 */
65 private static final int[] ZZ_ROWMAP = Yylex.zzUnpackRowMap();
66
67 private static final String ZZ_ROWMAP_PACKED_0 = "\0\0\0\33\0\66\0\121\0\154\0\207\0\66\0\242" + "\0\275\0\330\0\66\0\66\0\66\0\66\0\66\0\66" + "\0\363\0\u010e\0\66\0\u0129\0\u0144\0\u015f\0\u017a\0\u0195" + "\0\66\0\66\0\66\0\66\0\66\0\66\0\66\0\66" + "\0\u01b0\0\u01cb\0\u01e6\0\u01e6\0\u0201\0\u021c\0\u0237\0\u0252" + "\0\66\0\66\0\u026d\0\u0288\0\66";
68
69 private static int[] zzUnpackRowMap() {
70 final int[] result = new int[45];
71 int offset = 0;
72 offset = Yylex.zzUnpackRowMap(Yylex.ZZ_ROWMAP_PACKED_0, offset, result);
73 return result;
74 }
75
76 private static int zzUnpackRowMap(final String packed, final int offset, final int[] result) {
77 int i = 0; /* index in packed string */
78 int j = offset; /* index in unpacked array */
79 final int l = packed.length();
80 while (i < l) {
81 final int high = packed.charAt(i++) << 16;
82 result[j++] = high | packed.charAt(i++);
83 }
84 return j;
85 }
86
87 /**
88 * The transition table of the DFA
89 */
90 private static final int ZZ_TRANS[] = { 2, 2, 3, 4, 2, 2, 2, 5, 2, 6, 2, 2, 7, 8, 2, 9, 2, 2, 2, 2, 2, 10, 11, 12, 13, 14, 15, 16, 16, 16, 16, 16, 16, 16, 16, 17, 18, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4, 19, 20, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 20, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 5, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 21, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 22, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 23, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 16,
91 16, 16, 16, 16, 16, 16, 16, -1, -1, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, -1, -1, -1, -1, -1, -1, -1, -1, 24, 25, 26, 27, 28, 29, 30, 31, 32, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 34, 35, -1, -1, 34, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 36, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 38, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 39, -1, 39, -1, 39, -1, -1, -1, -1, -1, 39, 39, -1, -1, -1, -1, 39, 39, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 33, -1, 20, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 20, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 35,
92 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 38, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 40, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 42, -1, 42, -1, 42, -1, -1, -1, -1, -1, 42, 42, -1, -1, -1, -1, 42, 42, -1, -1, -1, -1, -1, -1, -1, -1, -1, 43, -1, 43, -1, 43, -1, -1, -1, -1, -1, 43, 43, -1, -1, -1, -1, 43, 43, -1, -1, -1, -1, -1, -1, -1, -1, -1, 44, -1, 44, -1, 44, -1, -1, -1, -1, -1, 44, 44, -1, -1, -1, -1, 44, 44, -1, -1, -1, -1, -1, -1, -1, -1, };
93
94 /* error codes */
95 private static final int ZZ_UNKNOWN_ERROR = 0;
96 private static final int ZZ_NO_MATCH = 1;
97 private static final int ZZ_PUSHBACK_2BIG = 2;
98
99 /* error messages for the codes above */
100 private static final String ZZ_ERROR_MSG[] = { "Unkown internal scanner error", "Error: could not match input", "Error: pushback value was too large" };
101
102 /**
103 * ZZ_ATTRIBUTE[aState] contains the attributes of state <code>aState</code>
104 */
105 private static final int[] ZZ_ATTRIBUTE = Yylex.zzUnpackAttribute();
106
107 private static final String ZZ_ATTRIBUTE_PACKED_0 = "\2\0\1\11\3\1\1\11\3\1\6\11\2\1\1\11" + "\5\0\10\11\1\0\1\1\1\0\1\1\4\0\2\11" + "\2\0\1\11";
108
109 private static int[] zzUnpackAttribute() {
110 final int[] result = new int[45];
111 int offset = 0;
112 offset = Yylex.zzUnpackAttribute(Yylex.ZZ_ATTRIBUTE_PACKED_0, offset, result);
113 return result;
114 }
115
116 private static int zzUnpackAttribute(final String packed, final int offset, final int[] result) {
117 int i = 0; /* index in packed string */
118 int j = offset; /* index in unpacked array */
119 final int l = packed.length();
120 while (i < l) {
121 int count = packed.charAt(i++);
122 final int value = packed.charAt(i++);
123 do {
124 result[j++] = value;
125 } while (--count > 0);
126 }
127 return j;
128 }
129
130 /** the input device */
131 private rejava.io.Reader zzReader;
132
133 /** the current state of the DFA */
134 private int zzState;
135
136 /** the current lexical state */
137 private int zzLexicalState = Yylex.YYINITIAL;
138
139 /**
140 * this buffer contains the current text to be matched and is the source of
141 * the yytext() string
142 */
143 private char zzBuffer[] = new char[Yylex.ZZ_BUFFERSIZE];
144
145 /** the textposition at the last accepting state */
146 private int zzMarkedPos;
147
148 /** the current text position in the buffer */
149 private int zzCurrentPos;
150
151 /** startRead marks the beginning of the yytext() string in the buffer */
152 private int zzStartRead;
153
154 /**
155 * endRead marks the last character in the buffer, that has been read from
156 * input
157 */
158 private int zzEndRead;
159
160 /** number of newlines encountered up to the start of the matched text */
161 // private int yyline;
162
163 /** the number of characters up to the start of the matched text */
164 private int yychar;
165
166 /**
167 * the number of characters from the last newline up to the start of the
168 * matched text
169 */
170 // private int yycolumn;
171
172 /**
173 * zzAtBOL == true <=> the scanner is currently at the beginning of a line
174 */
175 // private boolean zzAtBOL = true;
176
177 /** zzAtEOF == true <=> the scanner is at the EOF */
178 private boolean zzAtEOF;
179
180 /* user code: */
181 private StringBuffer sb = new StringBuffer();
182
183 int getPosition() {
184 return this.yychar;
185 }
186
187 /**
188 * Creates a new scanner There is also a java.io.InputStream version of this
189 * constructor.
190 *
191 * @param in
192 * the java.io.Reader to read input from.
193 */
194 Yylex(final rejava.io.Reader in) {
195 this.zzReader = in;
196 }
197
198 /**
199 * Creates a new scanner. There is also java.io.Reader version of this
200 * constructor.
201 *
202 * @param in
203 * the java.io.Inputstream to read input from.
204 */
205 // Yylex(java.io.InputStream in) {
206 // this(new java.io.InputStreamReader(in));
207 // }
208