csv_plus_plus 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/bin/csv++ +13 -54
- data/lib/csv_plus_plus/cli_flag.rb +83 -0
- data/lib/csv_plus_plus/color.rb +45 -11
- data/lib/csv_plus_plus/error.rb +7 -0
- data/lib/csv_plus_plus/graph.rb +0 -5
- data/lib/csv_plus_plus/language/compiler.rb +0 -1
- data/lib/csv_plus_plus/language/scope.rb +0 -2
- data/lib/csv_plus_plus/language/syntax_error.rb +1 -1
- data/lib/csv_plus_plus/modifier.rb +4 -15
- data/lib/csv_plus_plus/modifier.tab.rb +367 -381
- data/lib/csv_plus_plus/options.rb +1 -0
- data/lib/csv_plus_plus/version.rb +1 -1
- data/lib/csv_plus_plus/writer/excel.rb +15 -2
- data/lib/csv_plus_plus/writer/google_sheet_builder.rb +12 -31
- data/lib/csv_plus_plus/writer/google_sheet_modifier.rb +56 -0
- data/lib/csv_plus_plus/writer/google_sheets.rb +4 -4
- data/lib/csv_plus_plus/writer/rubyxl_builder.rb +112 -0
- data/lib/csv_plus_plus/writer/rubyxl_modifier.rb +52 -0
- data/lib/csv_plus_plus/writer.rb +2 -3
- data/lib/csv_plus_plus.rb +1 -0
- metadata +26 -15
@@ -12,7 +12,7 @@ require_relative './lexer'
|
|
12
12
|
module CSVPlusPlus
|
13
13
|
class ModifierParser < Racc::Parser
|
14
14
|
|
15
|
-
module_eval(<<'...end modifier.y/module_eval...', 'modifier.y',
|
15
|
+
module_eval(<<'...end modifier.y/module_eval...', 'modifier.y', 121)
|
16
16
|
attr_reader :return_value
|
17
17
|
|
18
18
|
include ::CSVPlusPlus::Lexer
|
@@ -103,352 +103,351 @@ module_eval(<<'...end modifier.y/module_eval...', 'modifier.y', 123)
|
|
103
103
|
##### State transition tables begin ###
|
104
104
|
|
105
105
|
racc_action_table = [
|
106
|
-
|
107
|
-
22, 23, 24, 25, 26, 27, 13, 14, 15,
|
108
|
-
17, 18, 19, 20, 21, 22, 23, 24, 25,
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
15, 16, 17, 18, 19, 20, 21, 22, 23,
|
115
|
-
25, 26, 27,
|
116
|
-
|
117
|
-
68, 69,
|
118
|
-
129, 130, 131, 132,
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
106
|
+
128, 13, 14, 15, 16, 17, 18, 19, 20, 21,
|
107
|
+
22, 23, 24, 25, 26, 27, 28, 13, 14, 15,
|
108
|
+
16, 17, 18, 19, 20, 21, 22, 23, 24, 25,
|
109
|
+
26, 27, 28, 86, 87, 88, 89, 90, 91, 92,
|
110
|
+
93, 6, 95, 96, 98, 99, 100, 101, 102, 103,
|
111
|
+
104, 105, 106, 108, 109, 110, 111, 112, 113, 114,
|
112
|
+
115, 116, 117, 118, 119, 120, 121, 122, 123, 124,
|
113
|
+
125, 126, 127, 129, 130, 131, 132, 133, 134, 13,
|
114
|
+
14, 15, 16, 17, 18, 19, 20, 21, 22, 23,
|
115
|
+
24, 25, 26, 27, 28, 30, 47, 50, 51, 52,
|
116
|
+
31, 31, 62, 5, 61, 60, 63, 59, 66, 67,
|
117
|
+
68, 69, 70, 71, 62, 10, 61, 60, 63, 59,
|
118
|
+
129, 130, 131, 132, 133, 134, 129, 130, 131, 132,
|
119
|
+
133, 134, 55, 32, 54, 56, 80, 81, 82, 83,
|
120
|
+
80, 81, 82, 83, 5, 4, 33, 34, 35, 36,
|
121
|
+
37, 38, 39, 40, 41, 42, 43, 44, 45, 46,
|
122
|
+
64, 72, 73, 74, 75, 76, 77, 84, 137, 138,
|
123
|
+
139, 140, 141, 142, 143, 144, 145, 146, 147, 148,
|
124
|
+
149, 150, 151, 152, 153, 154, 155, 156, 157, 158,
|
125
|
+
159, 160, 161, 162, 128, 128, 128, 128, 128, 128,
|
126
|
+
128, 128, 128, 128, 128, 128, 128, 128, 128, 128,
|
127
|
+
128, 183, 128, 128, 128, 128, 128, 128, 128, 128,
|
128
|
+
128, 128, 128, 128, 128 ]
|
129
129
|
|
130
130
|
racc_action_check = [
|
131
|
-
|
132
|
-
8, 8, 8, 8, 8, 8,
|
131
|
+
46, 8, 8, 8, 8, 8, 8, 8, 8, 8,
|
132
|
+
8, 8, 8, 8, 8, 8, 8, 9, 9, 9,
|
133
133
|
9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
|
134
|
-
9,
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
134
|
+
9, 9, 9, 45, 45, 45, 45, 45, 45, 45,
|
135
|
+
45, 1, 46, 46, 46, 46, 46, 46, 46, 46,
|
136
|
+
46, 46, 46, 46, 46, 46, 46, 46, 46, 46,
|
137
|
+
46, 46, 46, 46, 46, 46, 46, 46, 46, 46,
|
138
|
+
46, 46, 46, 46, 46, 46, 46, 46, 46, 31,
|
139
|
+
31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
|
140
|
+
31, 31, 31, 31, 31, 11, 29, 32, 32, 32,
|
141
|
+
11, 29, 34, 2, 34, 34, 34, 34, 36, 36,
|
142
|
+
36, 36, 36, 36, 57, 6, 57, 57, 57, 57,
|
143
|
+
139, 139, 139, 139, 139, 139, 140, 140, 140, 140,
|
144
|
+
140, 140, 33, 13, 33, 33, 43, 43, 43, 43,
|
145
|
+
78, 78, 78, 78, 0, 0, 14, 15, 16, 17,
|
146
|
+
18, 19, 20, 21, 22, 23, 24, 26, 27, 28,
|
147
|
+
35, 37, 38, 39, 40, 41, 42, 44, 96, 98,
|
148
|
+
99, 100, 101, 102, 104, 105, 106, 108, 110, 111,
|
149
|
+
112, 113, 114, 115, 116, 117, 118, 119, 120, 121,
|
150
|
+
122, 125, 126, 127, 137, 138, 141, 142, 143, 144,
|
151
|
+
145, 146, 147, 148, 149, 150, 151, 152, 153, 154,
|
152
|
+
155, 156, 157, 158, 159, 160, 161, 162, 167, 169,
|
153
|
+
170, 174, 180, 182, 188 ]
|
154
154
|
|
155
155
|
racc_action_pointer = [
|
156
|
-
|
157
|
-
nil,
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
nil,
|
156
|
+
129, 41, 88, nil, nil, nil, 115, nil, -18, -2,
|
157
|
+
nil, 86, nil, 123, 136, 137, 138, 139, 140, 141,
|
158
|
+
142, 143, 144, 145, 146, nil, 147, 148, 149, 87,
|
159
|
+
nil, 60, 58, 92, 63, 149, 63, 150, 150, 146,
|
160
|
+
153, 148, 154, 101, 150, -18, -17, nil, nil, nil,
|
161
|
+
nil, nil, nil, nil, nil, nil, nil, 75, nil, nil,
|
162
162
|
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
163
|
-
nil, nil, nil, nil, nil, nil,
|
163
|
+
nil, nil, nil, nil, nil, nil, nil, nil, 105, nil,
|
164
164
|
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
165
|
-
nil, nil, nil, nil,
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
nil, nil, nil, nil, nil, nil, nil,
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
165
|
+
nil, nil, nil, nil, nil, nil, 163, nil, 164, 165,
|
166
|
+
166, 167, 168, nil, 169, 170, 171, nil, 172, nil,
|
167
|
+
173, 174, 175, 176, 177, 178, 179, 180, 181, 182,
|
168
|
+
183, 184, 185, nil, nil, 186, 187, 188, nil, nil,
|
169
|
+
nil, nil, nil, nil, nil, nil, nil, 177, 178, 30,
|
170
|
+
36, 179, 180, 181, 182, 183, 184, 185, 186, 187,
|
171
|
+
188, 189, 190, 191, 192, 193, 203, 195, 196, 197,
|
172
|
+
198, 199, 200, nil, nil, nil, nil, 201, nil, 202,
|
173
|
+
203, nil, nil, nil, 204, nil, nil, nil, nil, nil,
|
174
|
+
205, nil, 206, nil, nil, nil, nil, nil, 207, nil,
|
175
|
+
nil, nil, nil, nil, nil ]
|
176
176
|
|
177
177
|
racc_action_default = [
|
178
|
-
-
|
179
|
-
|
180
|
-
-
|
181
|
-
|
182
|
-
-
|
183
|
-
-
|
184
|
-
-
|
185
|
-
-
|
186
|
-
-30, -31, -
|
187
|
-
-
|
188
|
-
-
|
189
|
-
-
|
190
|
-
-
|
191
|
-
-
|
192
|
-
-
|
193
|
-
-
|
194
|
-
-
|
195
|
-
-72,
|
196
|
-
-85, -86,
|
197
|
-
-
|
178
|
+
-105, -105, -2, -3, -4, -6, -105, -1, -105, -105,
|
179
|
+
195, -105, -9, -105, -105, -105, -105, -105, -105, -17,
|
180
|
+
-105, -105, -105, -105, -105, -23, -105, -105, -105, -105,
|
181
|
+
-5, -105, -105, -105, -105, -105, -105, -105, -105, -105,
|
182
|
+
-105, -105, -105, -105, -105, -105, -105, -7, -8, -10,
|
183
|
+
-33, -34, -35, -11, -36, -37, -38, -12, -40, -41,
|
184
|
+
-42, -43, -44, -45, -13, -14, -46, -47, -48, -49,
|
185
|
+
-50, -51, -15, -16, -18, -19, -20, -21, -22, -28,
|
186
|
+
-29, -30, -31, -32, -24, -25, -52, -53, -54, -55,
|
187
|
+
-56, -57, -58, -59, -26, -60, -61, -64, -105, -105,
|
188
|
+
-105, -105, -105, -70, -105, -105, -105, -74, -105, -77,
|
189
|
+
-105, -105, -105, -105, -105, -105, -105, -105, -105, -105,
|
190
|
+
-105, -105, -105, -91, -92, -105, -105, -105, -98, -99,
|
191
|
+
-100, -101, -102, -103, -104, -39, -27, -105, -105, -105,
|
192
|
+
-105, -105, -105, -105, -105, -105, -105, -105, -105, -105,
|
193
|
+
-105, -105, -105, -105, -105, -105, -105, -105, -105, -105,
|
194
|
+
-105, -105, -105, -62, -65, -66, -67, -105, -69, -105,
|
195
|
+
-72, -97, -73, -75, -105, -79, -80, -81, -82, -83,
|
196
|
+
-105, -85, -86, -87, -88, -89, -90, -93, -94, -95,
|
197
|
+
-68, -71, -96, -78, -84 ]
|
198
198
|
|
199
199
|
racc_goto_table = [
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
nil, nil, nil, nil, nil, nil,
|
200
|
+
97, 79, 58, 170, 3, 1, 7, 11, 29, 2,
|
201
|
+
8, 9, 48, 49, 182, 53, 107, 57, 65, 78,
|
202
|
+
188, 85, 94, nil, nil, 135, nil, nil, nil, nil,
|
203
|
+
nil, nil, nil, nil, nil, nil, 136, nil, nil, nil,
|
204
204
|
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
205
205
|
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
206
206
|
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
207
207
|
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
208
208
|
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
209
|
-
nil,
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
nil, nil,
|
214
|
-
|
209
|
+
nil, 163, 164, nil, nil, 167, 168, 169, nil, 172,
|
210
|
+
173, 174, 175, 176, 177, 178, 179, 180, 181, 165,
|
211
|
+
166, 184, 185, 186, 187, nil, 189, nil, nil, nil,
|
212
|
+
nil, 190, nil, 191, 192, nil, nil, nil, 193, nil,
|
213
|
+
nil, nil, nil, nil, 194, nil, 192, nil, nil, nil,
|
214
|
+
nil, nil, 192 ]
|
215
215
|
|
216
216
|
racc_goto_check = [
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
nil, nil, nil, nil, nil, nil,
|
217
|
+
17, 15, 16, 19, 3, 1, 3, 4, 4, 2,
|
218
|
+
5, 6, 7, 8, 19, 9, 18, 10, 11, 12,
|
219
|
+
19, 13, 14, nil, nil, 16, nil, nil, nil, nil,
|
220
|
+
nil, nil, nil, nil, nil, nil, 15, nil, nil, nil,
|
221
221
|
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
222
222
|
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
223
223
|
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
224
224
|
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
225
225
|
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
226
|
-
nil,
|
227
|
-
|
228
|
-
18,
|
229
|
-
|
230
|
-
nil, nil,
|
231
|
-
|
226
|
+
nil, 17, 17, nil, nil, 17, 17, 17, nil, 17,
|
227
|
+
17, 17, 17, 17, 17, 17, 17, 17, 17, 18,
|
228
|
+
18, 17, 17, 17, 17, nil, 17, nil, nil, nil,
|
229
|
+
nil, 17, nil, 17, 17, nil, nil, nil, 17, nil,
|
230
|
+
nil, nil, nil, nil, 17, nil, 17, nil, nil, nil,
|
231
|
+
nil, nil, 17 ]
|
232
232
|
|
233
233
|
racc_goto_pointer = [
|
234
|
-
nil,
|
235
|
-
-
|
236
|
-
-140 ]
|
234
|
+
nil, 5, 9, 4, -1, 6, 6, -19, -19, -18,
|
235
|
+
-17, -18, -24, -24, -24, -42, -32, -46, -30, -141 ]
|
237
236
|
|
238
237
|
racc_goto_default = [
|
239
238
|
nil, nil, nil, nil, nil, nil, nil, 12, nil, nil,
|
240
|
-
nil, nil, nil, nil, nil, nil, nil,
|
241
|
-
nil ]
|
239
|
+
nil, nil, nil, nil, nil, nil, nil, 171, nil, nil ]
|
242
240
|
|
243
241
|
racc_reduce_table = [
|
244
242
|
0, 0, :racc_error,
|
245
|
-
2,
|
246
|
-
1,
|
247
|
-
1,
|
248
|
-
0,
|
249
|
-
4,
|
250
|
-
0,
|
251
|
-
4,
|
252
|
-
3,
|
253
|
-
1,
|
254
|
-
3,
|
255
|
-
3,
|
256
|
-
3,
|
257
|
-
3,
|
258
|
-
3,
|
259
|
-
3,
|
260
|
-
|
261
|
-
|
262
|
-
3,
|
263
|
-
3,
|
264
|
-
3,
|
265
|
-
3,
|
266
|
-
|
267
|
-
|
268
|
-
3,
|
269
|
-
3,
|
270
|
-
|
271
|
-
|
272
|
-
1,
|
273
|
-
1,
|
274
|
-
1,
|
275
|
-
1,
|
276
|
-
|
277
|
-
|
278
|
-
1,
|
279
|
-
1,
|
243
|
+
2, 97, :_reduce_none,
|
244
|
+
1, 97, :_reduce_none,
|
245
|
+
1, 97, :_reduce_none,
|
246
|
+
0, 101, :_reduce_4,
|
247
|
+
4, 98, :_reduce_5,
|
248
|
+
0, 102, :_reduce_6,
|
249
|
+
4, 99, :_reduce_none,
|
250
|
+
3, 100, :_reduce_none,
|
251
|
+
1, 100, :_reduce_none,
|
252
|
+
3, 103, :_reduce_10,
|
253
|
+
3, 103, :_reduce_11,
|
254
|
+
3, 103, :_reduce_none,
|
255
|
+
3, 103, :_reduce_13,
|
256
|
+
3, 103, :_reduce_14,
|
257
|
+
3, 103, :_reduce_15,
|
258
|
+
3, 103, :_reduce_16,
|
259
|
+
1, 103, :_reduce_17,
|
260
|
+
3, 103, :_reduce_18,
|
261
|
+
3, 103, :_reduce_19,
|
262
|
+
3, 103, :_reduce_20,
|
263
|
+
3, 103, :_reduce_21,
|
264
|
+
3, 103, :_reduce_none,
|
265
|
+
1, 103, :_reduce_23,
|
266
|
+
3, 103, :_reduce_24,
|
267
|
+
3, 103, :_reduce_25,
|
268
|
+
3, 103, :_reduce_26,
|
269
|
+
2, 108, :_reduce_none,
|
270
|
+
1, 108, :_reduce_28,
|
271
|
+
1, 111, :_reduce_none,
|
272
|
+
1, 111, :_reduce_none,
|
273
|
+
1, 111, :_reduce_none,
|
274
|
+
1, 111, :_reduce_none,
|
275
|
+
1, 104, :_reduce_none,
|
276
|
+
1, 104, :_reduce_none,
|
277
|
+
1, 104, :_reduce_none,
|
278
|
+
1, 105, :_reduce_none,
|
279
|
+
1, 105, :_reduce_none,
|
280
|
+
1, 105, :_reduce_none,
|
281
|
+
2, 106, :_reduce_none,
|
282
|
+
1, 106, :_reduce_40,
|
283
|
+
1, 112, :_reduce_none,
|
284
|
+
1, 112, :_reduce_none,
|
285
|
+
1, 112, :_reduce_none,
|
286
|
+
1, 112, :_reduce_none,
|
287
|
+
1, 112, :_reduce_none,
|
288
|
+
1, 107, :_reduce_none,
|
289
|
+
1, 107, :_reduce_none,
|
290
|
+
1, 107, :_reduce_none,
|
280
291
|
1, 107, :_reduce_none,
|
281
292
|
1, 107, :_reduce_none,
|
282
293
|
1, 107, :_reduce_none,
|
283
|
-
1, 108, :_reduce_none,
|
284
|
-
1, 108, :_reduce_none,
|
285
|
-
1, 108, :_reduce_none,
|
286
|
-
2, 101, :_reduce_none,
|
287
|
-
1, 101, :_reduce_43,
|
288
294
|
1, 109, :_reduce_none,
|
289
295
|
1, 109, :_reduce_none,
|
290
296
|
1, 109, :_reduce_none,
|
291
297
|
1, 109, :_reduce_none,
|
292
298
|
1, 109, :_reduce_none,
|
293
|
-
1,
|
294
|
-
1,
|
295
|
-
1,
|
296
|
-
1, 102, :_reduce_none,
|
297
|
-
1, 102, :_reduce_none,
|
298
|
-
1, 102, :_reduce_none,
|
299
|
-
1, 104, :_reduce_none,
|
300
|
-
1, 104, :_reduce_none,
|
301
|
-
1, 104, :_reduce_none,
|
302
|
-
1, 104, :_reduce_none,
|
303
|
-
1, 104, :_reduce_none,
|
304
|
-
1, 104, :_reduce_none,
|
305
|
-
1, 104, :_reduce_none,
|
306
|
-
1, 104, :_reduce_none,
|
307
|
-
1, 105, :_reduce_none,
|
308
|
-
1, 105, :_reduce_none,
|
309
|
-
3, 105, :_reduce_none,
|
310
|
-
3, 105, :_reduce_none,
|
311
|
-
1, 105, :_reduce_none,
|
312
|
-
3, 105, :_reduce_none,
|
313
|
-
3, 105, :_reduce_none,
|
314
|
-
3, 105, :_reduce_none,
|
315
|
-
4, 105, :_reduce_none,
|
316
|
-
3, 105, :_reduce_none,
|
317
|
-
1, 105, :_reduce_none,
|
318
|
-
4, 105, :_reduce_none,
|
319
|
-
3, 105, :_reduce_none,
|
320
|
-
3, 105, :_reduce_none,
|
321
|
-
1, 105, :_reduce_none,
|
322
|
-
3, 105, :_reduce_none,
|
323
|
-
1, 105, :_reduce_none,
|
324
|
-
1, 105, :_reduce_none,
|
325
|
-
4, 105, :_reduce_none,
|
326
|
-
3, 105, :_reduce_none,
|
327
|
-
3, 105, :_reduce_none,
|
328
|
-
3, 105, :_reduce_none,
|
329
|
-
3, 105, :_reduce_none,
|
330
|
-
3, 105, :_reduce_none,
|
331
|
-
4, 105, :_reduce_none,
|
332
|
-
3, 105, :_reduce_none,
|
333
|
-
3, 105, :_reduce_none,
|
334
|
-
3, 105, :_reduce_none,
|
335
|
-
3, 105, :_reduce_none,
|
336
|
-
3, 105, :_reduce_none,
|
337
|
-
3, 105, :_reduce_none,
|
338
|
-
1, 105, :_reduce_none,
|
339
|
-
1, 105, :_reduce_none,
|
340
|
-
3, 105, :_reduce_none,
|
341
|
-
3, 105, :_reduce_none,
|
342
|
-
3, 105, :_reduce_none,
|
343
|
-
2, 112, :_reduce_none,
|
344
|
-
1, 112, :_reduce_none,
|
299
|
+
1, 109, :_reduce_none,
|
300
|
+
1, 109, :_reduce_none,
|
301
|
+
1, 109, :_reduce_none,
|
345
302
|
1, 110, :_reduce_none,
|
346
|
-
1,
|
347
|
-
|
348
|
-
|
349
|
-
1,
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
303
|
+
1, 110, :_reduce_none,
|
304
|
+
3, 110, :_reduce_none,
|
305
|
+
3, 110, :_reduce_none,
|
306
|
+
1, 110, :_reduce_none,
|
307
|
+
3, 110, :_reduce_none,
|
308
|
+
3, 110, :_reduce_none,
|
309
|
+
3, 110, :_reduce_none,
|
310
|
+
4, 110, :_reduce_none,
|
311
|
+
3, 110, :_reduce_none,
|
312
|
+
1, 110, :_reduce_none,
|
313
|
+
4, 110, :_reduce_none,
|
314
|
+
3, 110, :_reduce_none,
|
315
|
+
3, 110, :_reduce_none,
|
316
|
+
1, 110, :_reduce_none,
|
317
|
+
3, 110, :_reduce_none,
|
318
|
+
1, 110, :_reduce_none,
|
319
|
+
1, 110, :_reduce_none,
|
320
|
+
4, 110, :_reduce_none,
|
321
|
+
3, 110, :_reduce_none,
|
322
|
+
3, 110, :_reduce_none,
|
323
|
+
3, 110, :_reduce_none,
|
324
|
+
3, 110, :_reduce_none,
|
325
|
+
3, 110, :_reduce_none,
|
326
|
+
4, 110, :_reduce_none,
|
327
|
+
3, 110, :_reduce_none,
|
328
|
+
3, 110, :_reduce_none,
|
329
|
+
3, 110, :_reduce_none,
|
330
|
+
3, 110, :_reduce_none,
|
331
|
+
3, 110, :_reduce_none,
|
332
|
+
3, 110, :_reduce_none,
|
333
|
+
1, 110, :_reduce_none,
|
334
|
+
1, 110, :_reduce_none,
|
335
|
+
3, 110, :_reduce_none,
|
336
|
+
3, 110, :_reduce_none,
|
337
|
+
3, 110, :_reduce_none,
|
338
|
+
2, 115, :_reduce_none,
|
339
|
+
1, 115, :_reduce_none,
|
340
|
+
1, 113, :_reduce_none,
|
341
|
+
1, 114, :_reduce_none,
|
342
|
+
1, 114, :_reduce_none,
|
343
|
+
1, 114, :_reduce_none,
|
344
|
+
1, 114, :_reduce_none,
|
345
|
+
1, 114, :_reduce_none,
|
346
|
+
1, 114, :_reduce_none ]
|
347
|
+
|
348
|
+
racc_reduce_n = 105
|
349
|
+
|
350
|
+
racc_shift_n = 195
|
356
351
|
|
357
352
|
racc_token_table = {
|
358
353
|
false => 0,
|
359
354
|
:error => 1,
|
360
|
-
"
|
361
|
-
"
|
362
|
-
"
|
363
|
-
:
|
364
|
-
|
365
|
-
|
366
|
-
:
|
367
|
-
:
|
368
|
-
:
|
369
|
-
:
|
370
|
-
:
|
371
|
-
:
|
372
|
-
:
|
373
|
-
:
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
"
|
378
|
-
"
|
379
|
-
"
|
380
|
-
"
|
381
|
-
"
|
382
|
-
"
|
383
|
-
"
|
384
|
-
"
|
385
|
-
"
|
386
|
-
"
|
387
|
-
"
|
388
|
-
"
|
389
|
-
"
|
390
|
-
"
|
391
|
-
"
|
392
|
-
"
|
393
|
-
"
|
394
|
-
"
|
395
|
-
"
|
396
|
-
"
|
397
|
-
"
|
398
|
-
"
|
399
|
-
"
|
400
|
-
"
|
401
|
-
"
|
402
|
-
"
|
403
|
-
"
|
404
|
-
"
|
405
|
-
"
|
406
|
-
"
|
407
|
-
"
|
408
|
-
"
|
409
|
-
"
|
410
|
-
"
|
411
|
-
"
|
412
|
-
"
|
413
|
-
"
|
414
|
-
"
|
415
|
-
"
|
416
|
-
"
|
417
|
-
"
|
418
|
-
"
|
419
|
-
"
|
420
|
-
"
|
421
|
-
"
|
422
|
-
"
|
423
|
-
"
|
424
|
-
"
|
425
|
-
"
|
426
|
-
"
|
427
|
-
"
|
428
|
-
"
|
429
|
-
"
|
430
|
-
"
|
431
|
-
"
|
432
|
-
"
|
433
|
-
"
|
434
|
-
"
|
435
|
-
"
|
436
|
-
"
|
437
|
-
"
|
438
|
-
"
|
439
|
-
"
|
440
|
-
"
|
441
|
-
"
|
442
|
-
"
|
443
|
-
"
|
444
|
-
"
|
445
|
-
"
|
446
|
-
"
|
447
|
-
"
|
448
|
-
"
|
449
|
-
"
|
450
|
-
|
451
|
-
|
355
|
+
"![[" => 2,
|
356
|
+
"[[" => 3,
|
357
|
+
"]]" => 4,
|
358
|
+
":" => 5,
|
359
|
+
"=" => 6,
|
360
|
+
"/" => 7,
|
361
|
+
:A1_NOTATION => 8,
|
362
|
+
:END_MODIFIERS => 9,
|
363
|
+
:EQ => 10,
|
364
|
+
:HEX_COLOR => 11,
|
365
|
+
:NUMBER => 12,
|
366
|
+
:MODIFIER_ID => 13,
|
367
|
+
:MODIFIER_SEPARATOR => 14,
|
368
|
+
:START_CELL_MODIFIERS => 15,
|
369
|
+
:START_ROW_MODIFIERS => 16,
|
370
|
+
:STRING => 17,
|
371
|
+
:URL => 18,
|
372
|
+
"halign" => 19,
|
373
|
+
"valign" => 20,
|
374
|
+
"border" => 21,
|
375
|
+
"bordercolor" => 22,
|
376
|
+
"borderstyle" => 23,
|
377
|
+
"color" => 24,
|
378
|
+
"expand" => 25,
|
379
|
+
"font" => 26,
|
380
|
+
"fontcolor" => 27,
|
381
|
+
"fontfamily" => 28,
|
382
|
+
"fontsize" => 29,
|
383
|
+
"format" => 30,
|
384
|
+
"freeze" => 31,
|
385
|
+
"note" => 32,
|
386
|
+
"numberformat" => 33,
|
387
|
+
"validate" => 34,
|
388
|
+
"bold" => 35,
|
389
|
+
"italic" => 36,
|
390
|
+
"strikethrough" => 37,
|
391
|
+
"underline" => 38,
|
392
|
+
"left" => 39,
|
393
|
+
"center" => 40,
|
394
|
+
"right" => 41,
|
395
|
+
"top" => 42,
|
396
|
+
"bottom" => 43,
|
397
|
+
"all" => 44,
|
398
|
+
"dashed" => 45,
|
399
|
+
"dotted" => 46,
|
400
|
+
"double" => 47,
|
401
|
+
"solid" => 48,
|
402
|
+
"solid_medium" => 49,
|
403
|
+
"solid_thick" => 50,
|
404
|
+
"currency" => 51,
|
405
|
+
"date" => 52,
|
406
|
+
"date_time" => 53,
|
407
|
+
"number" => 54,
|
408
|
+
"percent" => 55,
|
409
|
+
"text" => 56,
|
410
|
+
"time" => 57,
|
411
|
+
"scientific" => 58,
|
412
|
+
"blank" => 59,
|
413
|
+
"boolean" => 60,
|
414
|
+
"custom_formula" => 61,
|
415
|
+
"date_after" => 62,
|
416
|
+
"date_before" => 63,
|
417
|
+
"date_between" => 64,
|
418
|
+
"date_eq" => 65,
|
419
|
+
"date_is_valid" => 66,
|
420
|
+
"date_not_between" => 67,
|
421
|
+
"date_not_eq" => 68,
|
422
|
+
"date_on_or_after" => 69,
|
423
|
+
"date_on_or_before" => 70,
|
424
|
+
"not_blank" => 71,
|
425
|
+
"number_between" => 72,
|
426
|
+
"number_eq" => 73,
|
427
|
+
"number_greater" => 74,
|
428
|
+
"number_greater_than_eq" => 75,
|
429
|
+
"number_less" => 76,
|
430
|
+
"number_less_than_eq" => 77,
|
431
|
+
"number_not_between" => 78,
|
432
|
+
"number_not_eq" => 79,
|
433
|
+
"one_of_list" => 80,
|
434
|
+
"one_of_range" => 81,
|
435
|
+
"text_contains" => 82,
|
436
|
+
"text_ends_with" => 83,
|
437
|
+
"text_eq" => 84,
|
438
|
+
"text_is_email" => 85,
|
439
|
+
"text_is_url" => 86,
|
440
|
+
"text_not_contains" => 87,
|
441
|
+
"text_not_eq" => 88,
|
442
|
+
"text_starts_with" => 89,
|
443
|
+
"past_year" => 90,
|
444
|
+
"past_month" => 91,
|
445
|
+
"past_week" => 92,
|
446
|
+
"yesterday" => 93,
|
447
|
+
"today" => 94,
|
448
|
+
"tomorrow" => 95 }
|
449
|
+
|
450
|
+
racc_nt_base = 96
|
452
451
|
|
453
452
|
racc_use_result_var = true
|
454
453
|
|
@@ -471,6 +470,9 @@ Racc_arg = [
|
|
471
470
|
Racc_token_to_s_table = [
|
472
471
|
"$end",
|
473
472
|
"error",
|
473
|
+
"\"![[\"",
|
474
|
+
"\"[[\"",
|
475
|
+
"\"]]\"",
|
474
476
|
"\":\"",
|
475
477
|
"\"=\"",
|
476
478
|
"\"/\"",
|
@@ -485,7 +487,8 @@ Racc_token_to_s_table = [
|
|
485
487
|
"START_ROW_MODIFIERS",
|
486
488
|
"STRING",
|
487
489
|
"URL",
|
488
|
-
"\"
|
490
|
+
"\"halign\"",
|
491
|
+
"\"valign\"",
|
489
492
|
"\"border\"",
|
490
493
|
"\"bordercolor\"",
|
491
494
|
"\"borderstyle\"",
|
@@ -569,15 +572,14 @@ Racc_token_to_s_table = [
|
|
569
572
|
"@1",
|
570
573
|
"@2",
|
571
574
|
"modifier",
|
572
|
-
"
|
575
|
+
"halign_option",
|
576
|
+
"valign_option",
|
573
577
|
"border_options",
|
574
578
|
"borderstyle_option",
|
575
579
|
"format_options",
|
576
580
|
"numberformat_option",
|
577
581
|
"condition",
|
578
582
|
"format_option",
|
579
|
-
"halign_option",
|
580
|
-
"valign_option",
|
581
583
|
"border_option",
|
582
584
|
"condition_value",
|
583
585
|
"relative_date",
|
@@ -595,21 +597,21 @@ Racc_debug_parser = false
|
|
595
597
|
|
596
598
|
# reduce 3 omitted
|
597
599
|
|
598
|
-
module_eval(<<'.,.,', 'modifier.y',
|
600
|
+
module_eval(<<'.,.,', 'modifier.y', 26)
|
599
601
|
def _reduce_4(val, _values, result)
|
600
602
|
parsing_row!
|
601
603
|
result
|
602
604
|
end
|
603
605
|
.,.,
|
604
606
|
|
605
|
-
module_eval(<<'.,.,', 'modifier.y',
|
607
|
+
module_eval(<<'.,.,', 'modifier.y', 28)
|
606
608
|
def _reduce_5(val, _values, result)
|
607
609
|
finished_row!
|
608
610
|
result
|
609
611
|
end
|
610
612
|
.,.,
|
611
613
|
|
612
|
-
module_eval(<<'.,.,', 'modifier.y',
|
614
|
+
module_eval(<<'.,.,', 'modifier.y', 30)
|
613
615
|
def _reduce_6(val, _values, result)
|
614
616
|
parsing_cell!
|
615
617
|
result
|
@@ -622,147 +624,137 @@ module_eval(<<'.,.,', 'modifier.y', 28)
|
|
622
624
|
|
623
625
|
# reduce 9 omitted
|
624
626
|
|
625
|
-
# reduce 10 omitted
|
626
|
-
|
627
|
-
# reduce 11 omitted
|
628
|
-
|
629
627
|
module_eval(<<'.,.,', 'modifier.y', 36)
|
630
|
-
def
|
631
|
-
s!(:
|
628
|
+
def _reduce_10(val, _values, result)
|
629
|
+
s!(:halign, val[2])
|
632
630
|
result
|
633
631
|
end
|
634
632
|
.,.,
|
635
633
|
|
636
634
|
module_eval(<<'.,.,', 'modifier.y', 37)
|
635
|
+
def _reduce_11(val, _values, result)
|
636
|
+
s!(:valign, val[2])
|
637
|
+
result
|
638
|
+
end
|
639
|
+
.,.,
|
640
|
+
|
641
|
+
# reduce 12 omitted
|
642
|
+
|
643
|
+
module_eval(<<'.,.,', 'modifier.y', 39)
|
637
644
|
def _reduce_13(val, _values, result)
|
638
|
-
s!(:
|
645
|
+
s!(:bordercolor, val[2])
|
639
646
|
result
|
640
647
|
end
|
641
648
|
.,.,
|
642
649
|
|
643
|
-
module_eval(<<'.,.,', 'modifier.y',
|
650
|
+
module_eval(<<'.,.,', 'modifier.y', 40)
|
644
651
|
def _reduce_14(val, _values, result)
|
645
|
-
s!(:
|
652
|
+
s!(:borderstyle, val[2])
|
646
653
|
result
|
647
654
|
end
|
648
655
|
.,.,
|
649
656
|
|
650
|
-
module_eval(<<'.,.,', 'modifier.y',
|
657
|
+
module_eval(<<'.,.,', 'modifier.y', 41)
|
651
658
|
def _reduce_15(val, _values, result)
|
652
|
-
s!(:
|
659
|
+
s!(:color, val[2])
|
653
660
|
result
|
654
661
|
end
|
655
662
|
.,.,
|
656
663
|
|
657
|
-
module_eval(<<'.,.,', 'modifier.y',
|
664
|
+
module_eval(<<'.,.,', 'modifier.y', 42)
|
658
665
|
def _reduce_16(val, _values, result)
|
659
|
-
s!(:expand, Expand.new)
|
666
|
+
s!(:expand, Expand.new(val[2].to_i))
|
660
667
|
result
|
661
668
|
end
|
662
669
|
.,.,
|
663
670
|
|
664
|
-
module_eval(<<'.,.,', 'modifier.y',
|
671
|
+
module_eval(<<'.,.,', 'modifier.y', 43)
|
665
672
|
def _reduce_17(val, _values, result)
|
666
|
-
s!(:
|
673
|
+
s!(:expand, Expand.new)
|
667
674
|
result
|
668
675
|
end
|
669
676
|
.,.,
|
670
677
|
|
671
|
-
module_eval(<<'.,.,', 'modifier.y',
|
678
|
+
module_eval(<<'.,.,', 'modifier.y', 44)
|
672
679
|
def _reduce_18(val, _values, result)
|
673
|
-
s!(:
|
680
|
+
s!(:fontfamily, val[2])
|
674
681
|
result
|
675
682
|
end
|
676
683
|
.,.,
|
677
684
|
|
678
|
-
module_eval(<<'.,.,', 'modifier.y',
|
685
|
+
module_eval(<<'.,.,', 'modifier.y', 45)
|
679
686
|
def _reduce_19(val, _values, result)
|
680
|
-
s!(:
|
687
|
+
s!(:fontcolor, val[2])
|
681
688
|
result
|
682
689
|
end
|
683
690
|
.,.,
|
684
691
|
|
685
|
-
module_eval(<<'.,.,', 'modifier.y',
|
692
|
+
module_eval(<<'.,.,', 'modifier.y', 46)
|
686
693
|
def _reduce_20(val, _values, result)
|
694
|
+
s!(:fontfamily, val[2])
|
695
|
+
result
|
696
|
+
end
|
697
|
+
.,.,
|
698
|
+
|
699
|
+
module_eval(<<'.,.,', 'modifier.y', 47)
|
700
|
+
def _reduce_21(val, _values, result)
|
687
701
|
s!(:fontsize, val[2].to_f)
|
688
702
|
result
|
689
703
|
end
|
690
704
|
.,.,
|
691
705
|
|
692
|
-
# reduce
|
706
|
+
# reduce 22 omitted
|
693
707
|
|
694
|
-
module_eval(<<'.,.,', 'modifier.y',
|
695
|
-
def
|
708
|
+
module_eval(<<'.,.,', 'modifier.y', 49)
|
709
|
+
def _reduce_23(val, _values, result)
|
696
710
|
freeze!
|
697
711
|
result
|
698
712
|
end
|
699
713
|
.,.,
|
700
714
|
|
701
|
-
module_eval(<<'.,.,', 'modifier.y',
|
702
|
-
def
|
715
|
+
module_eval(<<'.,.,', 'modifier.y', 50)
|
716
|
+
def _reduce_24(val, _values, result)
|
703
717
|
s!(:note, val[2])
|
704
718
|
result
|
705
719
|
end
|
706
720
|
.,.,
|
707
721
|
|
708
|
-
module_eval(<<'.,.,', 'modifier.y',
|
709
|
-
def
|
722
|
+
module_eval(<<'.,.,', 'modifier.y', 51)
|
723
|
+
def _reduce_25(val, _values, result)
|
710
724
|
s!(:numberformat, val[2])
|
711
725
|
result
|
712
726
|
end
|
713
727
|
.,.,
|
714
728
|
|
715
|
-
module_eval(<<'.,.,', 'modifier.y',
|
716
|
-
def
|
729
|
+
module_eval(<<'.,.,', 'modifier.y', 52)
|
730
|
+
def _reduce_26(val, _values, result)
|
717
731
|
s!(:validation, val[2])
|
718
732
|
result
|
719
733
|
end
|
720
734
|
.,.,
|
721
735
|
|
722
|
-
# reduce
|
736
|
+
# reduce 27 omitted
|
723
737
|
|
724
|
-
module_eval(<<'.,.,', 'modifier.y',
|
725
|
-
def
|
738
|
+
module_eval(<<'.,.,', 'modifier.y', 54)
|
739
|
+
def _reduce_28(val, _values, result)
|
726
740
|
s!(:format, val[0])
|
727
741
|
result
|
728
742
|
end
|
729
743
|
.,.,
|
730
744
|
|
731
|
-
# reduce 28 omitted
|
732
|
-
|
733
745
|
# reduce 29 omitted
|
734
746
|
|
735
747
|
# reduce 30 omitted
|
736
748
|
|
737
749
|
# reduce 31 omitted
|
738
750
|
|
739
|
-
|
740
|
-
def _reduce_32(val, _values, result)
|
741
|
-
s!(:align, val[0]); s!(:align, val[1])
|
742
|
-
result
|
743
|
-
end
|
744
|
-
.,.,
|
751
|
+
# reduce 32 omitted
|
745
752
|
|
746
|
-
|
747
|
-
def _reduce_33(val, _values, result)
|
748
|
-
s!(:align, val[0]); s!(:align, val[1])
|
749
|
-
result
|
750
|
-
end
|
751
|
-
.,.,
|
753
|
+
# reduce 33 omitted
|
752
754
|
|
753
|
-
|
754
|
-
def _reduce_34(val, _values, result)
|
755
|
-
s!(:align, val[0])
|
756
|
-
result
|
757
|
-
end
|
758
|
-
.,.,
|
755
|
+
# reduce 34 omitted
|
759
756
|
|
760
|
-
|
761
|
-
def _reduce_35(val, _values, result)
|
762
|
-
s!(:align, val[0])
|
763
|
-
result
|
764
|
-
end
|
765
|
-
.,.,
|
757
|
+
# reduce 35 omitted
|
766
758
|
|
767
759
|
# reduce 36 omitted
|
768
760
|
|
@@ -772,18 +764,18 @@ module_eval(<<'.,.,', 'modifier.y', 57)
|
|
772
764
|
|
773
765
|
# reduce 39 omitted
|
774
766
|
|
775
|
-
|
767
|
+
module_eval(<<'.,.,', 'modifier.y', 60)
|
768
|
+
def _reduce_40(val, _values, result)
|
769
|
+
s!(:border, val[0])
|
770
|
+
result
|
771
|
+
end
|
772
|
+
.,.,
|
776
773
|
|
777
774
|
# reduce 41 omitted
|
778
775
|
|
779
776
|
# reduce 42 omitted
|
780
777
|
|
781
|
-
|
782
|
-
def _reduce_43(val, _values, result)
|
783
|
-
s!(:border, val[0])
|
784
|
-
result
|
785
|
-
end
|
786
|
-
.,.,
|
778
|
+
# reduce 43 omitted
|
787
779
|
|
788
780
|
# reduce 44 omitted
|
789
781
|
|
@@ -907,12 +899,6 @@ module_eval(<<'.,.,', 'modifier.y', 62)
|
|
907
899
|
|
908
900
|
# reduce 104 omitted
|
909
901
|
|
910
|
-
# reduce 105 omitted
|
911
|
-
|
912
|
-
# reduce 106 omitted
|
913
|
-
|
914
|
-
# reduce 107 omitted
|
915
|
-
|
916
902
|
def _reduce_none(val, _values, result)
|
917
903
|
val[0]
|
918
904
|
end
|