ExprInit.C 243 KB
Newer Older
hrchilds's avatar
hrchilds committed
1 2
/*****************************************************************************
*
brugger's avatar
 
brugger committed
3
* Copyright (c) 2000 - 2011, Lawrence Livermore National Security, LLC
hrchilds's avatar
hrchilds committed
4
* Produced at the Lawrence Livermore National Laboratory
brugger's avatar
 
brugger committed
5
* LLNL-CODE-442911
hrchilds's avatar
hrchilds committed
6 7
* All rights reserved.
*
brugger's avatar
 
brugger committed
8
* This file is  part of VisIt. For  details, see https://visit.llnl.gov/.  The
hrchilds's avatar
hrchilds committed
9 10 11 12 13 14 15 16 17 18
* full copyright notice is contained in the file COPYRIGHT located at the root
* of the VisIt distribution or at http://www.llnl.gov/visit/copyright.html.
*
* Redistribution  and  use  in  source  and  binary  forms,  with  or  without
* modification, are permitted provided that the following conditions are met:
*
*  - Redistributions of  source code must  retain the above  copyright notice,
*    this list of conditions and the disclaimer below.
*  - Redistributions in binary form must reproduce the above copyright notice,
*    this  list of  conditions  and  the  disclaimer (as noted below)  in  the
brugger's avatar
 
brugger committed
19 20 21
*    documentation and/or other materials provided with the distribution.
*  - Neither the name of  the LLNS/LLNL nor the names of  its contributors may
*    be used to endorse or promote products derived from this software without
hrchilds's avatar
hrchilds committed
22 23 24 25 26
*    specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT  HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR  IMPLIED WARRANTIES, INCLUDING,  BUT NOT  LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND  FITNESS FOR A PARTICULAR  PURPOSE
brugger's avatar
 
brugger committed
27 28 29
* ARE  DISCLAIMED. IN  NO EVENT  SHALL LAWRENCE  LIVERMORE NATIONAL  SECURITY,
* LLC, THE  U.S.  DEPARTMENT OF  ENERGY  OR  CONTRIBUTORS BE  LIABLE  FOR  ANY
* DIRECT,  INDIRECT,   INCIDENTAL,   SPECIAL,   EXEMPLARY,  OR   CONSEQUENTIAL
hrchilds's avatar
hrchilds committed
30 31 32 33 34 35 36 37 38
* DAMAGES (INCLUDING, BUT NOT  LIMITED TO, PROCUREMENT OF  SUBSTITUTE GOODS OR
* SERVICES; LOSS OF  USE, DATA, OR PROFITS; OR  BUSINESS INTERRUPTION) HOWEVER
* CAUSED  AND  ON  ANY  THEORY  OF  LIABILITY,  WHETHER  IN  CONTRACT,  STRICT
* LIABILITY, OR TORT  (INCLUDING NEGLIGENCE OR OTHERWISE)  ARISING IN ANY  WAY
* OUT OF THE  USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
* DAMAGE.
*
*****************************************************************************/

hrchilds's avatar
hrchilds committed
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
//
//   Automatically generated!!!  Use 'make init' to rebuild.
//

#include "ExprGrammar.h"


static void SetShiftState(State &s, int next, const Symbol *sym)
{
    s.shift[sym] = next;
}

static void SetReduceRule(State &s, int rule, const Symbol *sym)
{
    s.reduce[sym] = rule;
}

hrchilds's avatar
hrchilds committed
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
static void InitState_0(Dictionary &d, State &s)
{
    // shift transitions
    SetShiftState(s,   1, d.Get('-'));
    SetShiftState(s,   2, d.Get('('));
    SetShiftState(s,   3, d.Get('<'));
    SetShiftState(s,   4, d.Get('{'));
    SetShiftState(s,   5, d.Get(257));
    SetShiftState(s,   6, d.Get(258));
    SetShiftState(s,   7, d.Get(259));
    SetShiftState(s,   8, d.Get(260));
    SetShiftState(s,   9, d.Get(261));
    SetShiftState(s,  10, d.Get("Expr"));
    SetShiftState(s,  11, d.Get("Constant"));
    SetShiftState(s,  12, d.Get("Vector"));
    SetShiftState(s,  13, d.Get("Function"));
    SetShiftState(s,  14, d.Get("Variable"));
    SetShiftState(s,  15, d.Get("Database"));
}

static void InitState_1(Dictionary &d, State &s)
{
    // shift transitions
    SetShiftState(s,   1, d.Get('-'));
    SetShiftState(s,   2, d.Get('('));
    SetShiftState(s,   3, d.Get('<'));
    SetShiftState(s,   4, d.Get('{'));
    SetShiftState(s,   5, d.Get(257));
    SetShiftState(s,   6, d.Get(258));
    SetShiftState(s,   7, d.Get(259));
    SetShiftState(s,   8, d.Get(260));
    SetShiftState(s,   9, d.Get(261));
    SetShiftState(s,  16, d.Get("Expr"));
    SetShiftState(s,  11, d.Get("Constant"));
    SetShiftState(s,  12, d.Get("Vector"));
    SetShiftState(s,  13, d.Get("Function"));
    SetShiftState(s,  14, d.Get("Variable"));
    SetShiftState(s,  15, d.Get("Database"));
}

static void InitState_2(Dictionary &d, State &s)
{
    // shift transitions
    SetShiftState(s,  17, d.Get('-'));
    SetShiftState(s,  18, d.Get('('));
    SetShiftState(s,  19, d.Get('<'));
    SetShiftState(s,  20, d.Get('{'));
    SetShiftState(s,  21, d.Get(257));
    SetShiftState(s,  22, d.Get(258));
    SetShiftState(s,  23, d.Get(259));
    SetShiftState(s,  24, d.Get(260));
    SetShiftState(s,  25, d.Get(261));
    SetShiftState(s,  26, d.Get("Expr"));
    SetShiftState(s,  27, d.Get("Constant"));
    SetShiftState(s,  28, d.Get("Vector"));
    SetShiftState(s,  29, d.Get("Function"));
    SetShiftState(s,  30, d.Get("Variable"));
    SetShiftState(s,  31, d.Get("Database"));
}

static void InitState_3(Dictionary &d, State &s)
{
    // shift transitions
    SetShiftState(s,  32, d.Get('/'));
120 121 122 123 124 125 126
    SetShiftState(s,  33, d.Get('\\'));
    SetShiftState(s,  34, d.Get('['));
    SetShiftState(s,  35, d.Get(257));
    SetShiftState(s,  36, d.Get("PathSpec"));
    SetShiftState(s,  37, d.Get("MultiSlash"));
    SetShiftState(s,  38, d.Get("DBSpec"));
    SetShiftState(s,  39, d.Get("TimeSpec"));
hrchilds's avatar
hrchilds committed
127 128 129 130 131
}

static void InitState_4(Dictionary &d, State &s)
{
    // shift transitions
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146
    SetShiftState(s,  40, d.Get('-'));
    SetShiftState(s,  41, d.Get('('));
    SetShiftState(s,  42, d.Get('<'));
    SetShiftState(s,  43, d.Get('{'));
    SetShiftState(s,  44, d.Get(257));
    SetShiftState(s,  45, d.Get(258));
    SetShiftState(s,  46, d.Get(259));
    SetShiftState(s,  47, d.Get(260));
    SetShiftState(s,  48, d.Get(261));
    SetShiftState(s,  49, d.Get("Expr"));
    SetShiftState(s,  50, d.Get("Constant"));
    SetShiftState(s,  51, d.Get("Vector"));
    SetShiftState(s,  52, d.Get("Function"));
    SetShiftState(s,  53, d.Get("Variable"));
    SetShiftState(s,  54, d.Get("Database"));
hrchilds's avatar
hrchilds committed
147 148 149 150 151
}

static void InitState_5(Dictionary &d, State &s)
{
    // shift transitions
152
    SetShiftState(s,  55, d.Get('('));
hrchilds's avatar
hrchilds committed
153

154
    // reduce rule 42: Variable ==> Identifier 
155
    SetReduceRule(s,  42, d.Get(256));
156 157 158 159 160 161 162 163
    SetReduceRule(s,  42, d.Get('+'));
    SetReduceRule(s,  42, d.Get('*'));
    SetReduceRule(s,  42, d.Get('-'));
    SetReduceRule(s,  42, d.Get('/'));
    SetReduceRule(s,  42, d.Get('^'));
    SetReduceRule(s,  42, d.Get('%'));
    SetReduceRule(s,  42, d.Get('['));
    SetReduceRule(s,  42, d.Get('&'));
hrchilds's avatar
hrchilds committed
164 165
}

hrchilds's avatar
hrchilds committed
166
static void InitState_6(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
167
{
168
    // reduce rule 16: Constant ==> Integer 
169
    SetReduceRule(s,  16, d.Get(256));
hrchilds's avatar
hrchilds committed
170 171 172 173 174 175 176
    SetReduceRule(s,  16, d.Get('+'));
    SetReduceRule(s,  16, d.Get('*'));
    SetReduceRule(s,  16, d.Get('-'));
    SetReduceRule(s,  16, d.Get('/'));
    SetReduceRule(s,  16, d.Get('^'));
    SetReduceRule(s,  16, d.Get('%'));
    SetReduceRule(s,  16, d.Get('['));
177
    SetReduceRule(s,  16, d.Get('&'));
hrchilds's avatar
hrchilds committed
178 179
}

180
static void InitState_7(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
181
{
182
    // reduce rule 17: Constant ==> Float 
183
    SetReduceRule(s,  17, d.Get(256));
hrchilds's avatar
hrchilds committed
184 185 186 187 188 189 190
    SetReduceRule(s,  17, d.Get('+'));
    SetReduceRule(s,  17, d.Get('*'));
    SetReduceRule(s,  17, d.Get('-'));
    SetReduceRule(s,  17, d.Get('/'));
    SetReduceRule(s,  17, d.Get('^'));
    SetReduceRule(s,  17, d.Get('%'));
    SetReduceRule(s,  17, d.Get('['));
191
    SetReduceRule(s,  17, d.Get('&'));
hrchilds's avatar
hrchilds committed
192 193
}

194
static void InitState_8(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
195
{
196
    // reduce rule 18: Constant ==> String 
197
    SetReduceRule(s,  18, d.Get(256));
hrchilds's avatar
hrchilds committed
198 199 200 201 202 203 204
    SetReduceRule(s,  18, d.Get('+'));
    SetReduceRule(s,  18, d.Get('*'));
    SetReduceRule(s,  18, d.Get('-'));
    SetReduceRule(s,  18, d.Get('/'));
    SetReduceRule(s,  18, d.Get('^'));
    SetReduceRule(s,  18, d.Get('%'));
    SetReduceRule(s,  18, d.Get('['));
205
    SetReduceRule(s,  18, d.Get('&'));
hrchilds's avatar
hrchilds committed
206 207
}

208 209 210
static void InitState_9(Dictionary &d, State &s)
{
    // reduce rule 19: Constant ==> Bool 
211
    SetReduceRule(s,  19, d.Get(256));
212 213 214 215 216 217 218 219 220 221
    SetReduceRule(s,  19, d.Get('+'));
    SetReduceRule(s,  19, d.Get('*'));
    SetReduceRule(s,  19, d.Get('-'));
    SetReduceRule(s,  19, d.Get('/'));
    SetReduceRule(s,  19, d.Get('^'));
    SetReduceRule(s,  19, d.Get('%'));
    SetReduceRule(s,  19, d.Get('['));
    SetReduceRule(s,  19, d.Get('&'));
}

hrchilds's avatar
hrchilds committed
222
static void InitState_10(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
223 224
{
    // shift transitions
225 226 227 228 229 230 231 232
    SetShiftState(s,  56, d.Get('+'));
    SetShiftState(s,  57, d.Get('*'));
    SetShiftState(s,  58, d.Get('-'));
    SetShiftState(s,  59, d.Get('/'));
    SetShiftState(s,  60, d.Get('^'));
    SetShiftState(s,  61, d.Get('%'));
    SetShiftState(s,  62, d.Get('['));
    SetShiftState(s,  63, d.Get('&'));
hrchilds's avatar
hrchilds committed
233 234

    // reduce rule 0: START ==> Expr 
hrchilds's avatar
hrchilds committed
235
    SetReduceRule(s,   0, d.Get(256));
hrchilds's avatar
hrchilds committed
236 237
}

hrchilds's avatar
hrchilds committed
238
static void InitState_11(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
239
{
240
    // reduce rule 11: Expr ==> Constant 
241
    SetReduceRule(s,  11, d.Get(256));
hrchilds's avatar
hrchilds committed
242 243 244 245 246 247 248
    SetReduceRule(s,  11, d.Get('+'));
    SetReduceRule(s,  11, d.Get('*'));
    SetReduceRule(s,  11, d.Get('-'));
    SetReduceRule(s,  11, d.Get('/'));
    SetReduceRule(s,  11, d.Get('^'));
    SetReduceRule(s,  11, d.Get('%'));
    SetReduceRule(s,  11, d.Get('['));
249
    SetReduceRule(s,  11, d.Get('&'));
hrchilds's avatar
hrchilds committed
250 251
}

252
static void InitState_12(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
253
{
254
    // reduce rule 12: Expr ==> Vector 
255
    SetReduceRule(s,  12, d.Get(256));
hrchilds's avatar
hrchilds committed
256 257 258 259 260 261 262
    SetReduceRule(s,  12, d.Get('+'));
    SetReduceRule(s,  12, d.Get('*'));
    SetReduceRule(s,  12, d.Get('-'));
    SetReduceRule(s,  12, d.Get('/'));
    SetReduceRule(s,  12, d.Get('^'));
    SetReduceRule(s,  12, d.Get('%'));
    SetReduceRule(s,  12, d.Get('['));
263
    SetReduceRule(s,  12, d.Get('&'));
hrchilds's avatar
hrchilds committed
264 265
}

266
static void InitState_13(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
267
{
268
    // reduce rule 13: Expr ==> Function 
269
    SetReduceRule(s,  13, d.Get(256));
hrchilds's avatar
hrchilds committed
270 271 272 273 274 275 276
    SetReduceRule(s,  13, d.Get('+'));
    SetReduceRule(s,  13, d.Get('*'));
    SetReduceRule(s,  13, d.Get('-'));
    SetReduceRule(s,  13, d.Get('/'));
    SetReduceRule(s,  13, d.Get('^'));
    SetReduceRule(s,  13, d.Get('%'));
    SetReduceRule(s,  13, d.Get('['));
277
    SetReduceRule(s,  13, d.Get('&'));
hrchilds's avatar
hrchilds committed
278 279
}

280
static void InitState_14(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
281
{
282
    // reduce rule 14: Expr ==> Variable 
283
    SetReduceRule(s,  14, d.Get(256));
hrchilds's avatar
hrchilds committed
284 285 286 287 288 289 290
    SetReduceRule(s,  14, d.Get('+'));
    SetReduceRule(s,  14, d.Get('*'));
    SetReduceRule(s,  14, d.Get('-'));
    SetReduceRule(s,  14, d.Get('/'));
    SetReduceRule(s,  14, d.Get('^'));
    SetReduceRule(s,  14, d.Get('%'));
    SetReduceRule(s,  14, d.Get('['));
291
    SetReduceRule(s,  14, d.Get('&'));
hrchilds's avatar
hrchilds committed
292 293
}

294 295 296
static void InitState_15(Dictionary &d, State &s)
{
    // reduce rule 15: Expr ==> Database 
297
    SetReduceRule(s,  15, d.Get(256));
298 299 300 301 302 303 304 305 306 307
    SetReduceRule(s,  15, d.Get('+'));
    SetReduceRule(s,  15, d.Get('*'));
    SetReduceRule(s,  15, d.Get('-'));
    SetReduceRule(s,  15, d.Get('/'));
    SetReduceRule(s,  15, d.Get('^'));
    SetReduceRule(s,  15, d.Get('%'));
    SetReduceRule(s,  15, d.Get('['));
    SetReduceRule(s,  15, d.Get('&'));
}

hrchilds's avatar
hrchilds committed
308
static void InitState_16(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
309
{
hrchilds's avatar
hrchilds committed
310
    // shift transitions
311
    SetShiftState(s,  62, d.Get('['));
hrchilds's avatar
hrchilds committed
312

313
    // reduce rule 9: Expr ==> - Expr 
314
    SetReduceRule(s,   9, d.Get(256));
315 316 317 318 319 320 321
    SetReduceRule(s,   9, d.Get('+'));
    SetReduceRule(s,   9, d.Get('*'));
    SetReduceRule(s,   9, d.Get('-'));
    SetReduceRule(s,   9, d.Get('/'));
    SetReduceRule(s,   9, d.Get('^'));
    SetReduceRule(s,   9, d.Get('%'));
    SetReduceRule(s,   9, d.Get('&'));
hrchilds's avatar
hrchilds committed
322 323
}

hrchilds's avatar
hrchilds committed
324
static void InitState_17(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
325 326
{
    // shift transitions
hrchilds's avatar
hrchilds committed
327 328 329 330 331 332 333 334 335
    SetShiftState(s,  17, d.Get('-'));
    SetShiftState(s,  18, d.Get('('));
    SetShiftState(s,  19, d.Get('<'));
    SetShiftState(s,  20, d.Get('{'));
    SetShiftState(s,  21, d.Get(257));
    SetShiftState(s,  22, d.Get(258));
    SetShiftState(s,  23, d.Get(259));
    SetShiftState(s,  24, d.Get(260));
    SetShiftState(s,  25, d.Get(261));
336
    SetShiftState(s,  64, d.Get("Expr"));
hrchilds's avatar
hrchilds committed
337 338 339 340 341
    SetShiftState(s,  27, d.Get("Constant"));
    SetShiftState(s,  28, d.Get("Vector"));
    SetShiftState(s,  29, d.Get("Function"));
    SetShiftState(s,  30, d.Get("Variable"));
    SetShiftState(s,  31, d.Get("Database"));
hrchilds's avatar
hrchilds committed
342 343
}

hrchilds's avatar
hrchilds committed
344
static void InitState_18(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
345 346
{
    // shift transitions
hrchilds's avatar
hrchilds committed
347 348 349 350 351 352 353 354 355
    SetShiftState(s,  17, d.Get('-'));
    SetShiftState(s,  18, d.Get('('));
    SetShiftState(s,  19, d.Get('<'));
    SetShiftState(s,  20, d.Get('{'));
    SetShiftState(s,  21, d.Get(257));
    SetShiftState(s,  22, d.Get(258));
    SetShiftState(s,  23, d.Get(259));
    SetShiftState(s,  24, d.Get(260));
    SetShiftState(s,  25, d.Get(261));
356
    SetShiftState(s,  65, d.Get("Expr"));
hrchilds's avatar
hrchilds committed
357 358 359 360 361
    SetShiftState(s,  27, d.Get("Constant"));
    SetShiftState(s,  28, d.Get("Vector"));
    SetShiftState(s,  29, d.Get("Function"));
    SetShiftState(s,  30, d.Get("Variable"));
    SetShiftState(s,  31, d.Get("Database"));
hrchilds's avatar
hrchilds committed
362 363
}

hrchilds's avatar
hrchilds committed
364
static void InitState_19(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
365 366
{
    // shift transitions
hrchilds's avatar
hrchilds committed
367
    SetShiftState(s,  32, d.Get('/'));
368 369 370 371 372 373 374
    SetShiftState(s,  33, d.Get('\\'));
    SetShiftState(s,  34, d.Get('['));
    SetShiftState(s,  35, d.Get(257));
    SetShiftState(s,  66, d.Get("PathSpec"));
    SetShiftState(s,  37, d.Get("MultiSlash"));
    SetShiftState(s,  67, d.Get("DBSpec"));
    SetShiftState(s,  39, d.Get("TimeSpec"));
hrchilds's avatar
hrchilds committed
375 376
}

hrchilds's avatar
hrchilds committed
377
static void InitState_20(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
378 379
{
    // shift transitions
380 381 382 383 384 385 386 387 388 389 390 391 392 393 394
    SetShiftState(s,  40, d.Get('-'));
    SetShiftState(s,  41, d.Get('('));
    SetShiftState(s,  42, d.Get('<'));
    SetShiftState(s,  43, d.Get('{'));
    SetShiftState(s,  44, d.Get(257));
    SetShiftState(s,  45, d.Get(258));
    SetShiftState(s,  46, d.Get(259));
    SetShiftState(s,  47, d.Get(260));
    SetShiftState(s,  48, d.Get(261));
    SetShiftState(s,  68, d.Get("Expr"));
    SetShiftState(s,  50, d.Get("Constant"));
    SetShiftState(s,  51, d.Get("Vector"));
    SetShiftState(s,  52, d.Get("Function"));
    SetShiftState(s,  53, d.Get("Variable"));
    SetShiftState(s,  54, d.Get("Database"));
hrchilds's avatar
hrchilds committed
395 396
}

hrchilds's avatar
hrchilds committed
397
static void InitState_21(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
398 399
{
    // shift transitions
400
    SetShiftState(s,  69, d.Get('('));
hrchilds's avatar
hrchilds committed
401

402 403 404 405 406 407 408 409 410 411
    // reduce rule 42: Variable ==> Identifier 
    SetReduceRule(s,  42, d.Get('+'));
    SetReduceRule(s,  42, d.Get('*'));
    SetReduceRule(s,  42, d.Get('-'));
    SetReduceRule(s,  42, d.Get('/'));
    SetReduceRule(s,  42, d.Get('^'));
    SetReduceRule(s,  42, d.Get('%'));
    SetReduceRule(s,  42, d.Get('['));
    SetReduceRule(s,  42, d.Get(')'));
    SetReduceRule(s,  42, d.Get('&'));
hrchilds's avatar
hrchilds committed
412 413
}

hrchilds's avatar
hrchilds committed
414
static void InitState_22(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
415
{
416
    // reduce rule 16: Constant ==> Integer 
hrchilds's avatar
hrchilds committed
417 418 419 420 421 422 423 424
    SetReduceRule(s,  16, d.Get('+'));
    SetReduceRule(s,  16, d.Get('*'));
    SetReduceRule(s,  16, d.Get('-'));
    SetReduceRule(s,  16, d.Get('/'));
    SetReduceRule(s,  16, d.Get('^'));
    SetReduceRule(s,  16, d.Get('%'));
    SetReduceRule(s,  16, d.Get('['));
    SetReduceRule(s,  16, d.Get(')'));
425
    SetReduceRule(s,  16, d.Get('&'));
hrchilds's avatar
hrchilds committed
426 427
}

428
static void InitState_23(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
429
{
430
    // reduce rule 17: Constant ==> Float 
hrchilds's avatar
hrchilds committed
431 432 433 434 435 436 437 438
    SetReduceRule(s,  17, d.Get('+'));
    SetReduceRule(s,  17, d.Get('*'));
    SetReduceRule(s,  17, d.Get('-'));
    SetReduceRule(s,  17, d.Get('/'));
    SetReduceRule(s,  17, d.Get('^'));
    SetReduceRule(s,  17, d.Get('%'));
    SetReduceRule(s,  17, d.Get('['));
    SetReduceRule(s,  17, d.Get(')'));
439
    SetReduceRule(s,  17, d.Get('&'));
hrchilds's avatar
hrchilds committed
440 441
}

442
static void InitState_24(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
443
{
444
    // reduce rule 18: Constant ==> String 
hrchilds's avatar
hrchilds committed
445 446 447 448 449 450 451 452
    SetReduceRule(s,  18, d.Get('+'));
    SetReduceRule(s,  18, d.Get('*'));
    SetReduceRule(s,  18, d.Get('-'));
    SetReduceRule(s,  18, d.Get('/'));
    SetReduceRule(s,  18, d.Get('^'));
    SetReduceRule(s,  18, d.Get('%'));
    SetReduceRule(s,  18, d.Get('['));
    SetReduceRule(s,  18, d.Get(')'));
453
    SetReduceRule(s,  18, d.Get('&'));
hrchilds's avatar
hrchilds committed
454 455
}

456
static void InitState_25(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
457
{
458 459 460 461 462 463 464 465 466 467
    // reduce rule 19: Constant ==> Bool 
    SetReduceRule(s,  19, d.Get('+'));
    SetReduceRule(s,  19, d.Get('*'));
    SetReduceRule(s,  19, d.Get('-'));
    SetReduceRule(s,  19, d.Get('/'));
    SetReduceRule(s,  19, d.Get('^'));
    SetReduceRule(s,  19, d.Get('%'));
    SetReduceRule(s,  19, d.Get('['));
    SetReduceRule(s,  19, d.Get(')'));
    SetReduceRule(s,  19, d.Get('&'));
hrchilds's avatar
hrchilds committed
468 469
}

470
static void InitState_26(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
471
{
472
    // shift transitions
473 474 475 476 477 478 479 480 481
    SetShiftState(s,  70, d.Get('+'));
    SetShiftState(s,  71, d.Get('*'));
    SetShiftState(s,  72, d.Get('-'));
    SetShiftState(s,  73, d.Get('/'));
    SetShiftState(s,  74, d.Get('^'));
    SetShiftState(s,  75, d.Get('%'));
    SetShiftState(s,  76, d.Get('['));
    SetShiftState(s,  77, d.Get(')'));
    SetShiftState(s,  78, d.Get('&'));
hrchilds's avatar
hrchilds committed
482 483
}

484
static void InitState_27(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
485
{
486
    // reduce rule 11: Expr ==> Constant 
hrchilds's avatar
hrchilds committed
487 488 489 490 491 492 493 494
    SetReduceRule(s,  11, d.Get('+'));
    SetReduceRule(s,  11, d.Get('*'));
    SetReduceRule(s,  11, d.Get('-'));
    SetReduceRule(s,  11, d.Get('/'));
    SetReduceRule(s,  11, d.Get('^'));
    SetReduceRule(s,  11, d.Get('%'));
    SetReduceRule(s,  11, d.Get('['));
    SetReduceRule(s,  11, d.Get(')'));
495
    SetReduceRule(s,  11, d.Get('&'));
hrchilds's avatar
hrchilds committed
496 497
}

498
static void InitState_28(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
499
{
500
    // reduce rule 12: Expr ==> Vector 
hrchilds's avatar
hrchilds committed
501 502 503 504 505 506 507 508
    SetReduceRule(s,  12, d.Get('+'));
    SetReduceRule(s,  12, d.Get('*'));
    SetReduceRule(s,  12, d.Get('-'));
    SetReduceRule(s,  12, d.Get('/'));
    SetReduceRule(s,  12, d.Get('^'));
    SetReduceRule(s,  12, d.Get('%'));
    SetReduceRule(s,  12, d.Get('['));
    SetReduceRule(s,  12, d.Get(')'));
509
    SetReduceRule(s,  12, d.Get('&'));
hrchilds's avatar
hrchilds committed
510 511
}

512
static void InitState_29(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
513
{
514
    // reduce rule 13: Expr ==> Function 
hrchilds's avatar
hrchilds committed
515 516 517 518 519 520 521 522
    SetReduceRule(s,  13, d.Get('+'));
    SetReduceRule(s,  13, d.Get('*'));
    SetReduceRule(s,  13, d.Get('-'));
    SetReduceRule(s,  13, d.Get('/'));
    SetReduceRule(s,  13, d.Get('^'));
    SetReduceRule(s,  13, d.Get('%'));
    SetReduceRule(s,  13, d.Get('['));
    SetReduceRule(s,  13, d.Get(')'));
523
    SetReduceRule(s,  13, d.Get('&'));
hrchilds's avatar
hrchilds committed
524 525
}

526
static void InitState_30(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
527
{
528
    // reduce rule 14: Expr ==> Variable 
hrchilds's avatar
hrchilds committed
529 530 531 532 533 534 535 536
    SetReduceRule(s,  14, d.Get('+'));
    SetReduceRule(s,  14, d.Get('*'));
    SetReduceRule(s,  14, d.Get('-'));
    SetReduceRule(s,  14, d.Get('/'));
    SetReduceRule(s,  14, d.Get('^'));
    SetReduceRule(s,  14, d.Get('%'));
    SetReduceRule(s,  14, d.Get('['));
    SetReduceRule(s,  14, d.Get(')'));
537 538 539 540 541 542 543 544 545 546 547 548 549 550 551
    SetReduceRule(s,  14, d.Get('&'));
}

static void InitState_31(Dictionary &d, State &s)
{
    // reduce rule 15: Expr ==> Database 
    SetReduceRule(s,  15, d.Get('+'));
    SetReduceRule(s,  15, d.Get('*'));
    SetReduceRule(s,  15, d.Get('-'));
    SetReduceRule(s,  15, d.Get('/'));
    SetReduceRule(s,  15, d.Get('^'));
    SetReduceRule(s,  15, d.Get('%'));
    SetReduceRule(s,  15, d.Get('['));
    SetReduceRule(s,  15, d.Get(')'));
    SetReduceRule(s,  15, d.Get('&'));
hrchilds's avatar
hrchilds committed
552 553
}

hrchilds's avatar
hrchilds committed
554
static void InitState_32(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
555
{
556 557
    // reduce rule 39: MultiSlash ==> / 
    SetReduceRule(s,  39, d.Get('/'));
558
    SetReduceRule(s,  39, d.Get('\\'));
559
    SetReduceRule(s,  39, d.Get(257));
hrchilds's avatar
hrchilds committed
560 561
}

hrchilds's avatar
hrchilds committed
562
static void InitState_33(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
563
{
564
    // reduce rule 41: MultiSlash ==> (backslash) 
565 566 567
    SetReduceRule(s,  41, d.Get('/'));
    SetReduceRule(s,  41, d.Get('\\'));
    SetReduceRule(s,  41, d.Get(257));
hrchilds's avatar
hrchilds committed
568 569
}

hrchilds's avatar
hrchilds committed
570
static void InitState_34(Dictionary &d, State &s)
571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593
{
    // shift transitions
    SetShiftState(s,  79, d.Get('-'));
    SetShiftState(s,  80, d.Get('('));
    SetShiftState(s,  81, d.Get('<'));
    SetShiftState(s,  82, d.Get('{'));
    SetShiftState(s,  83, d.Get('#'));
    SetShiftState(s,  84, d.Get(257));
    SetShiftState(s,  85, d.Get(258));
    SetShiftState(s,  86, d.Get(259));
    SetShiftState(s,  87, d.Get(260));
    SetShiftState(s,  88, d.Get(261));
    SetShiftState(s,  89, d.Get("Expr"));
    SetShiftState(s,  90, d.Get("Constant"));
    SetShiftState(s,  91, d.Get("Vector"));
    SetShiftState(s,  92, d.Get("ListElems"));
    SetShiftState(s,  93, d.Get("ListElem"));
    SetShiftState(s,  94, d.Get("Function"));
    SetShiftState(s,  95, d.Get("Variable"));
    SetShiftState(s,  96, d.Get("Database"));
}

static void InitState_35(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
594
{
595 596
    // reduce rule 37: PathSpec ==> Identifier 
    SetReduceRule(s,  37, d.Get('/'));
597
    SetReduceRule(s,  37, d.Get('\\'));
598 599 600 601
    SetReduceRule(s,  37, d.Get('['));
    SetReduceRule(s,  37, d.Get('>'));
    SetReduceRule(s,  37, d.Get('@'));
    SetReduceRule(s,  37, d.Get(':'));
hrchilds's avatar
hrchilds committed
602 603
}

604
static void InitState_36(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
605 606
{
    // shift transitions
hrchilds's avatar
hrchilds committed
607
    SetShiftState(s,  32, d.Get('/'));
608 609 610 611 612 613 614 615 616 617
    SetShiftState(s,  33, d.Get('\\'));
    SetShiftState(s,  34, d.Get('['));
    SetShiftState(s,  97, d.Get('>'));
    SetShiftState(s,  98, d.Get('@'));
    SetShiftState(s,  99, d.Get("MultiSlash"));
    SetShiftState(s, 100, d.Get("MachSpec"));
    SetShiftState(s, 101, d.Get("TimeSpec"));

    // reduce rule 46: DBSpec ==> PathSpec 
    SetReduceRule(s,  46, d.Get(':'));
hrchilds's avatar
hrchilds committed
618 619
}

620
static void InitState_37(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
621 622
{
    // shift transitions
623 624 625
    SetShiftState(s, 102, d.Get('/'));
    SetShiftState(s, 103, d.Get('\\'));
    SetShiftState(s, 104, d.Get(257));
hrchilds's avatar
hrchilds committed
626 627
}

628
static void InitState_38(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
629
{
hrchilds's avatar
hrchilds committed
630
    // shift transitions
631
    SetShiftState(s, 105, d.Get(':'));
hrchilds's avatar
hrchilds committed
632 633
}

634
static void InitState_39(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
635
{
636 637
    // reduce rule 48: DBSpec ==> TimeSpec 
    SetReduceRule(s,  48, d.Get(':'));
hrchilds's avatar
hrchilds committed
638 639
}

640
static void InitState_40(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
641 642
{
    // shift transitions
643 644 645 646 647 648 649 650 651 652 653 654 655 656 657
    SetShiftState(s,  40, d.Get('-'));
    SetShiftState(s,  41, d.Get('('));
    SetShiftState(s,  42, d.Get('<'));
    SetShiftState(s,  43, d.Get('{'));
    SetShiftState(s,  44, d.Get(257));
    SetShiftState(s,  45, d.Get(258));
    SetShiftState(s,  46, d.Get(259));
    SetShiftState(s,  47, d.Get(260));
    SetShiftState(s,  48, d.Get(261));
    SetShiftState(s, 106, d.Get("Expr"));
    SetShiftState(s,  50, d.Get("Constant"));
    SetShiftState(s,  51, d.Get("Vector"));
    SetShiftState(s,  52, d.Get("Function"));
    SetShiftState(s,  53, d.Get("Variable"));
    SetShiftState(s,  54, d.Get("Database"));
hrchilds's avatar
hrchilds committed
658 659
}

660
static void InitState_41(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
661 662
{
    // shift transitions
hrchilds's avatar
hrchilds committed
663 664 665 666 667 668 669 670 671
    SetShiftState(s,  17, d.Get('-'));
    SetShiftState(s,  18, d.Get('('));
    SetShiftState(s,  19, d.Get('<'));
    SetShiftState(s,  20, d.Get('{'));
    SetShiftState(s,  21, d.Get(257));
    SetShiftState(s,  22, d.Get(258));
    SetShiftState(s,  23, d.Get(259));
    SetShiftState(s,  24, d.Get(260));
    SetShiftState(s,  25, d.Get(261));
672
    SetShiftState(s, 107, d.Get("Expr"));
hrchilds's avatar
hrchilds committed
673 674 675 676 677
    SetShiftState(s,  27, d.Get("Constant"));
    SetShiftState(s,  28, d.Get("Vector"));
    SetShiftState(s,  29, d.Get("Function"));
    SetShiftState(s,  30, d.Get("Variable"));
    SetShiftState(s,  31, d.Get("Database"));
hrchilds's avatar
hrchilds committed
678 679
}

680
static void InitState_42(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
681 682
{
    // shift transitions
hrchilds's avatar
hrchilds committed
683
    SetShiftState(s,  32, d.Get('/'));
684 685 686 687 688 689 690
    SetShiftState(s,  33, d.Get('\\'));
    SetShiftState(s,  34, d.Get('['));
    SetShiftState(s,  35, d.Get(257));
    SetShiftState(s, 108, d.Get("PathSpec"));
    SetShiftState(s,  37, d.Get("MultiSlash"));
    SetShiftState(s, 109, d.Get("DBSpec"));
    SetShiftState(s,  39, d.Get("TimeSpec"));
hrchilds's avatar
hrchilds committed
691 692
}

693
static void InitState_43(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
694 695
{
    // shift transitions
696 697 698 699 700 701 702 703 704 705 706 707 708 709 710
    SetShiftState(s,  40, d.Get('-'));
    SetShiftState(s,  41, d.Get('('));
    SetShiftState(s,  42, d.Get('<'));
    SetShiftState(s,  43, d.Get('{'));
    SetShiftState(s,  44, d.Get(257));
    SetShiftState(s,  45, d.Get(258));
    SetShiftState(s,  46, d.Get(259));
    SetShiftState(s,  47, d.Get(260));
    SetShiftState(s,  48, d.Get(261));
    SetShiftState(s, 110, d.Get("Expr"));
    SetShiftState(s,  50, d.Get("Constant"));
    SetShiftState(s,  51, d.Get("Vector"));
    SetShiftState(s,  52, d.Get("Function"));
    SetShiftState(s,  53, d.Get("Variable"));
    SetShiftState(s,  54, d.Get("Database"));
hrchilds's avatar
hrchilds committed
711 712
}

713
static void InitState_44(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
714 715
{
    // shift transitions
716
    SetShiftState(s, 111, d.Get('('));
hrchilds's avatar
hrchilds committed
717

718 719 720 721 722 723 724 725 726 727
    // reduce rule 42: Variable ==> Identifier 
    SetReduceRule(s,  42, d.Get('+'));
    SetReduceRule(s,  42, d.Get('*'));
    SetReduceRule(s,  42, d.Get('-'));
    SetReduceRule(s,  42, d.Get('/'));
    SetReduceRule(s,  42, d.Get('^'));
    SetReduceRule(s,  42, d.Get('%'));
    SetReduceRule(s,  42, d.Get('['));
    SetReduceRule(s,  42, d.Get(','));
    SetReduceRule(s,  42, d.Get('&'));
hrchilds's avatar
hrchilds committed
728 729
}

730
static void InitState_45(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
731
{
732
    // reduce rule 16: Constant ==> Integer 
hrchilds's avatar
hrchilds committed
733 734 735 736 737 738 739 740
    SetReduceRule(s,  16, d.Get('+'));
    SetReduceRule(s,  16, d.Get('*'));
    SetReduceRule(s,  16, d.Get('-'));
    SetReduceRule(s,  16, d.Get('/'));
    SetReduceRule(s,  16, d.Get('^'));
    SetReduceRule(s,  16, d.Get('%'));
    SetReduceRule(s,  16, d.Get('['));
    SetReduceRule(s,  16, d.Get(','));
741
    SetReduceRule(s,  16, d.Get('&'));
hrchilds's avatar
hrchilds committed
742 743
}

744
static void InitState_46(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
745
{
746
    // reduce rule 17: Constant ==> Float 
hrchilds's avatar
hrchilds committed
747 748 749 750 751 752 753 754
    SetReduceRule(s,  17, d.Get('+'));
    SetReduceRule(s,  17, d.Get('*'));
    SetReduceRule(s,  17, d.Get('-'));
    SetReduceRule(s,  17, d.Get('/'));
    SetReduceRule(s,  17, d.Get('^'));
    SetReduceRule(s,  17, d.Get('%'));
    SetReduceRule(s,  17, d.Get('['));
    SetReduceRule(s,  17, d.Get(','));
755
    SetReduceRule(s,  17, d.Get('&'));
hrchilds's avatar
hrchilds committed
756 757
}

758
static void InitState_47(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
759
{
760
    // reduce rule 18: Constant ==> String 
hrchilds's avatar
hrchilds committed
761 762 763 764 765 766 767 768
    SetReduceRule(s,  18, d.Get('+'));
    SetReduceRule(s,  18, d.Get('*'));
    SetReduceRule(s,  18, d.Get('-'));
    SetReduceRule(s,  18, d.Get('/'));
    SetReduceRule(s,  18, d.Get('^'));
    SetReduceRule(s,  18, d.Get('%'));
    SetReduceRule(s,  18, d.Get('['));
    SetReduceRule(s,  18, d.Get(','));
769
    SetReduceRule(s,  18, d.Get('&'));
hrchilds's avatar
hrchilds committed
770 771
}

772
static void InitState_48(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
773
{
774 775 776 777 778 779 780 781 782 783
    // reduce rule 19: Constant ==> Bool 
    SetReduceRule(s,  19, d.Get('+'));
    SetReduceRule(s,  19, d.Get('*'));
    SetReduceRule(s,  19, d.Get('-'));
    SetReduceRule(s,  19, d.Get('/'));
    SetReduceRule(s,  19, d.Get('^'));
    SetReduceRule(s,  19, d.Get('%'));
    SetReduceRule(s,  19, d.Get('['));
    SetReduceRule(s,  19, d.Get(','));
    SetReduceRule(s,  19, d.Get('&'));
hrchilds's avatar
hrchilds committed
784 785
}

786
static void InitState_49(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
787
{
788
    // shift transitions
789 790 791 792 793 794 795 796 797
    SetShiftState(s, 112, d.Get('+'));
    SetShiftState(s, 113, d.Get('*'));
    SetShiftState(s, 114, d.Get('-'));
    SetShiftState(s, 115, d.Get('/'));
    SetShiftState(s, 116, d.Get('^'));
    SetShiftState(s, 117, d.Get('%'));
    SetShiftState(s, 118, d.Get('['));
    SetShiftState(s, 119, d.Get(','));
    SetShiftState(s, 120, d.Get('&'));
hrchilds's avatar
hrchilds committed
798 799
}

800
static void InitState_50(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
801
{
802
    // reduce rule 11: Expr ==> Constant 
hrchilds's avatar
hrchilds committed
803 804 805 806 807 808 809 810
    SetReduceRule(s,  11, d.Get('+'));
    SetReduceRule(s,  11, d.Get('*'));
    SetReduceRule(s,  11, d.Get('-'));
    SetReduceRule(s,  11, d.Get('/'));
    SetReduceRule(s,  11, d.Get('^'));
    SetReduceRule(s,  11, d.Get('%'));
    SetReduceRule(s,  11, d.Get('['));
    SetReduceRule(s,  11, d.Get(','));
811
    SetReduceRule(s,  11, d.Get('&'));
hrchilds's avatar
hrchilds committed
812 813
}

814
static void InitState_51(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
815
{
816
    // reduce rule 12: Expr ==> Vector 
hrchilds's avatar
hrchilds committed
817 818 819 820 821 822 823 824
    SetReduceRule(s,  12, d.Get('+'));
    SetReduceRule(s,  12, d.Get('*'));
    SetReduceRule(s,  12, d.Get('-'));
    SetReduceRule(s,  12, d.Get('/'));
    SetReduceRule(s,  12, d.Get('^'));
    SetReduceRule(s,  12, d.Get('%'));
    SetReduceRule(s,  12, d.Get('['));
    SetReduceRule(s,  12, d.Get(','));
825
    SetReduceRule(s,  12, d.Get('&'));
hrchilds's avatar
hrchilds committed
826 827
}

828
static void InitState_52(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
829
{
830
    // reduce rule 13: Expr ==> Function 
hrchilds's avatar
hrchilds committed
831 832 833 834 835 836 837 838
    SetReduceRule(s,  13, d.Get('+'));
    SetReduceRule(s,  13, d.Get('*'));
    SetReduceRule(s,  13, d.Get('-'));
    SetReduceRule(s,  13, d.Get('/'));
    SetReduceRule(s,  13, d.Get('^'));
    SetReduceRule(s,  13, d.Get('%'));
    SetReduceRule(s,  13, d.Get('['));
    SetReduceRule(s,  13, d.Get(','));
839
    SetReduceRule(s,  13, d.Get('&'));
hrchilds's avatar
hrchilds committed
840 841
}

842
static void InitState_53(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
843
{
844
    // reduce rule 14: Expr ==> Variable 
hrchilds's avatar
hrchilds committed
845 846 847 848 849 850 851 852
    SetReduceRule(s,  14, d.Get('+'));
    SetReduceRule(s,  14, d.Get('*'));
    SetReduceRule(s,  14, d.Get('-'));
    SetReduceRule(s,  14, d.Get('/'));
    SetReduceRule(s,  14, d.Get('^'));
    SetReduceRule(s,  14, d.Get('%'));
    SetReduceRule(s,  14, d.Get('['));
    SetReduceRule(s,  14, d.Get(','));
853 854 855
    SetReduceRule(s,  14, d.Get('&'));
}

856
static void InitState_54(Dictionary &d, State &s)
857 858 859 860 861 862 863 864 865 866 867
{
    // reduce rule 15: Expr ==> Database 
    SetReduceRule(s,  15, d.Get('+'));
    SetReduceRule(s,  15, d.Get('*'));
    SetReduceRule(s,  15, d.Get('-'));
    SetReduceRule(s,  15, d.Get('/'));
    SetReduceRule(s,  15, d.Get('^'));
    SetReduceRule(s,  15, d.Get('%'));
    SetReduceRule(s,  15, d.Get('['));
    SetReduceRule(s,  15, d.Get(','));
    SetReduceRule(s,  15, d.Get('&'));
hrchilds's avatar
hrchilds committed
868 869
}

870
static void InitState_55(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
871 872
{
    // shift transitions
873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892
    SetShiftState(s, 121, d.Get('-'));
    SetShiftState(s, 122, d.Get('['));
    SetShiftState(s, 123, d.Get('('));
    SetShiftState(s, 124, d.Get(')'));
    SetShiftState(s, 125, d.Get('<'));
    SetShiftState(s, 126, d.Get('{'));
    SetShiftState(s, 127, d.Get(257));
    SetShiftState(s, 128, d.Get(258));
    SetShiftState(s, 129, d.Get(259));
    SetShiftState(s, 130, d.Get(260));
    SetShiftState(s, 131, d.Get(261));
    SetShiftState(s, 132, d.Get("Expr"));
    SetShiftState(s, 133, d.Get("Constant"));
    SetShiftState(s, 134, d.Get("Vector"));
    SetShiftState(s, 135, d.Get("List"));
    SetShiftState(s, 136, d.Get("Function"));
    SetShiftState(s, 137, d.Get("Args"));
    SetShiftState(s, 138, d.Get("Arg"));
    SetShiftState(s, 139, d.Get("Variable"));
    SetShiftState(s, 140, d.Get("Database"));
hrchilds's avatar
hrchilds committed
893 894
}

895
static void InitState_56(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
896 897 898 899 900 901 902 903 904 905 906
{
    // shift transitions
    SetShiftState(s,   1, d.Get('-'));
    SetShiftState(s,   2, d.Get('('));
    SetShiftState(s,   3, d.Get('<'));
    SetShiftState(s,   4, d.Get('{'));
    SetShiftState(s,   5, d.Get(257));
    SetShiftState(s,   6, d.Get(258));
    SetShiftState(s,   7, d.Get(259));
    SetShiftState(s,   8, d.Get(260));
    SetShiftState(s,   9, d.Get(261));
907
    SetShiftState(s, 141, d.Get("Expr"));
hrchilds's avatar
hrchilds committed
908 909 910 911 912 913 914
    SetShiftState(s,  11, d.Get("Constant"));
    SetShiftState(s,  12, d.Get("Vector"));
    SetShiftState(s,  13, d.Get("Function"));
    SetShiftState(s,  14, d.Get("Variable"));
    SetShiftState(s,  15, d.Get("Database"));
}

915
static void InitState_57(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
916 917 918 919 920 921 922 923 924 925 926
{
    // shift transitions
    SetShiftState(s,   1, d.Get('-'));
    SetShiftState(s,   2, d.Get('('));
    SetShiftState(s,   3, d.Get('<'));
    SetShiftState(s,   4, d.Get('{'));
    SetShiftState(s,   5, d.Get(257));
    SetShiftState(s,   6, d.Get(258));
    SetShiftState(s,   7, d.Get(259));
    SetShiftState(s,   8, d.Get(260));
    SetShiftState(s,   9, d.Get(261));
927
    SetShiftState(s, 142, d.Get("Expr"));
hrchilds's avatar
hrchilds committed
928 929 930 931 932 933 934
    SetShiftState(s,  11, d.Get("Constant"));
    SetShiftState(s,  12, d.Get("Vector"));
    SetShiftState(s,  13, d.Get("Function"));
    SetShiftState(s,  14, d.Get("Variable"));
    SetShiftState(s,  15, d.Get("Database"));
}

935
static void InitState_58(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
936 937 938 939 940 941 942 943 944 945 946
{
    // shift transitions
    SetShiftState(s,   1, d.Get('-'));
    SetShiftState(s,   2, d.Get('('));
    SetShiftState(s,   3, d.Get('<'));
    SetShiftState(s,   4, d.Get('{'));
    SetShiftState(s,   5, d.Get(257));
    SetShiftState(s,   6, d.Get(258));
    SetShiftState(s,   7, d.Get(259));
    SetShiftState(s,   8, d.Get(260));
    SetShiftState(s,   9, d.Get(261));
947
    SetShiftState(s, 143, d.Get("Expr"));
hrchilds's avatar
hrchilds committed
948 949 950 951 952 953 954
    SetShiftState(s,  11, d.Get("Constant"));
    SetShiftState(s,  12, d.Get("Vector"));
    SetShiftState(s,  13, d.Get("Function"));
    SetShiftState(s,  14, d.Get("Variable"));
    SetShiftState(s,  15, d.Get("Database"));
}

955
static void InitState_59(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
956 957 958 959 960 961 962 963 964 965 966
{
    // shift transitions
    SetShiftState(s,   1, d.Get('-'));
    SetShiftState(s,   2, d.Get('('));
    SetShiftState(s,   3, d.Get('<'));
    SetShiftState(s,   4, d.Get('{'));
    SetShiftState(s,   5, d.Get(257));
    SetShiftState(s,   6, d.Get(258));
    SetShiftState(s,   7, d.Get(259));
    SetShiftState(s,   8, d.Get(260));
    SetShiftState(s,   9, d.Get(261));
967
    SetShiftState(s, 144, d.Get("Expr"));
hrchilds's avatar
hrchilds committed
968 969 970 971 972 973 974
    SetShiftState(s,  11, d.Get("Constant"));
    SetShiftState(s,  12, d.Get("Vector"));
    SetShiftState(s,  13, d.Get("Function"));
    SetShiftState(s,  14, d.Get("Variable"));
    SetShiftState(s,  15, d.Get("Database"));
}

975
static void InitState_60(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
976 977 978 979 980 981 982 983 984 985 986
{
    // shift transitions
    SetShiftState(s,   1, d.Get('-'));
    SetShiftState(s,   2, d.Get('('));
    SetShiftState(s,   3, d.Get('<'));
    SetShiftState(s,   4, d.Get('{'));
    SetShiftState(s,   5, d.Get(257));
    SetShiftState(s,   6, d.Get(258));
    SetShiftState(s,   7, d.Get(259));
    SetShiftState(s,   8, d.Get(260));
    SetShiftState(s,   9, d.Get(261));
987
    SetShiftState(s, 145, d.Get("Expr"));
hrchilds's avatar
hrchilds committed
988 989 990 991 992
    SetShiftState(s,  11, d.Get("Constant"));
    SetShiftState(s,  12, d.Get("Vector"));
    SetShiftState(s,  13, d.Get("Function"));
    SetShiftState(s,  14, d.Get("Variable"));
    SetShiftState(s,  15, d.Get("Database"));
hrchilds's avatar
hrchilds committed
993
}
hrchilds's avatar
hrchilds committed
994

995
static void InitState_61(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
996 997 998 999 1000 1001 1002 1003 1004 1005 1006
{
    // shift transitions
    SetShiftState(s,   1, d.Get('-'));
    SetShiftState(s,   2, d.Get('('));
    SetShiftState(s,   3, d.Get('<'));
    SetShiftState(s,   4, d.Get('{'));
    SetShiftState(s,   5, d.Get(257));
    SetShiftState(s,   6, d.Get(258));
    SetShiftState(s,   7, d.Get(259));
    SetShiftState(s,   8, d.Get(260));
    SetShiftState(s,   9, d.Get(261));
1007
    SetShiftState(s, 146, d.Get("Expr"));
hrchilds's avatar
hrchilds committed
1008 1009 1010 1011 1012
    SetShiftState(s,  11, d.Get("Constant"));
    SetShiftState(s,  12, d.Get("Vector"));
    SetShiftState(s,  13, d.Get("Function"));
    SetShiftState(s,  14, d.Get("Variable"));
    SetShiftState(s,  15, d.Get("Database"));
hrchilds's avatar
hrchilds committed
1013 1014
}

1015
static void InitState_62(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
1016 1017
{
    // shift transitions
1018
    SetShiftState(s, 147, d.Get(258));
hrchilds's avatar
hrchilds committed
1019 1020
}

1021
static void InitState_63(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
1022 1023
{
    // shift transitions
1024 1025 1026 1027 1028 1029 1030 1031 1032
    SetShiftState(s,   1, d.Get('-'));
    SetShiftState(s,   2, d.Get('('));
    SetShiftState(s,   3, d.Get('<'));
    SetShiftState(s,   4, d.Get('{'));
    SetShiftState(s,   5, d.Get(257));
    SetShiftState(s,   6, d.Get(258));
    SetShiftState(s,   7, d.Get(259));
    SetShiftState(s,   8, d.Get(260));
    SetShiftState(s,   9, d.Get(261));
1033
    SetShiftState(s, 148, d.Get("Expr"));
1034 1035 1036 1037 1038 1039
    SetShiftState(s,  11, d.Get("Constant"));
    SetShiftState(s,  12, d.Get("Vector"));
    SetShiftState(s,  13, d.Get("Function"));
    SetShiftState(s,  14, d.Get("Variable"));
    SetShiftState(s,  15, d.Get("Database"));
}
hrchilds's avatar
hrchilds committed
1040

1041
static void InitState_64(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
1042 1043
{
    // shift transitions
1044
    SetShiftState(s,  76, d.Get('['));
1045 1046 1047 1048 1049 1050 1051 1052 1053 1054

    // reduce rule 9: Expr ==> - Expr 
    SetReduceRule(s,   9, d.Get('+'));
    SetReduceRule(s,   9, d.Get('*'));
    SetReduceRule(s,   9, d.Get('-'));
    SetReduceRule(s,   9, d.Get('/'));
    SetReduceRule(s,   9, d.Get('^'));
    SetReduceRule(s,   9, d.Get('%'));
    SetReduceRule(s,   9, d.Get(')'));
    SetReduceRule(s,   9, d.Get('&'));
hrchilds's avatar
hrchilds committed
1055 1056
}

hrchilds's avatar
hrchilds committed
1057 1058 1059
static void InitState_65(Dictionary &d, State &s)
{
    // shift transitions
1060 1061 1062 1063 1064 1065 1066 1067 1068
    SetShiftState(s,  70, d.Get('+'));
    SetShiftState(s,  71, d.Get('*'));
    SetShiftState(s,  72, d.Get('-'));
    SetShiftState(s,  73, d.Get('/'));
    SetShiftState(s,  74, d.Get('^'));
    SetShiftState(s,  75, d.Get('%'));
    SetShiftState(s,  76, d.Get('['));
    SetShiftState(s, 149, d.Get(')'));
    SetShiftState(s,  78, d.Get('&'));
hrchilds's avatar
hrchilds committed
1069
}
hrchilds's avatar
hrchilds committed
1070

hrchilds's avatar
hrchilds committed
1071
static void InitState_66(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
1072 1073
{
    // shift transitions
1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084
    SetShiftState(s,  32, d.Get('/'));
    SetShiftState(s,  33, d.Get('\\'));
    SetShiftState(s,  34, d.Get('['));
    SetShiftState(s, 150, d.Get('>'));
    SetShiftState(s,  98, d.Get('@'));
    SetShiftState(s,  99, d.Get("MultiSlash"));
    SetShiftState(s, 100, d.Get("MachSpec"));
    SetShiftState(s, 101, d.Get("TimeSpec"));

    // reduce rule 46: DBSpec ==> PathSpec 
    SetReduceRule(s,  46, d.Get(':'));
hrchilds's avatar
hrchilds committed
1085 1086 1087 1088 1089
}

static void InitState_67(Dictionary &d, State &s)
{
    // shift transitions
1090
    SetShiftState(s, 151, d.Get(':'));
hrchilds's avatar
hrchilds committed
1091 1092 1093
}

static void InitState_68(Dictionary &d, State &s)
1094 1095
{
    // shift transitions
1096 1097 1098 1099 1100 1101 1102 1103 1104
    SetShiftState(s, 112, d.Get('+'));
    SetShiftState(s, 113, d.Get('*'));
    SetShiftState(s, 114, d.Get('-'));
    SetShiftState(s, 115, d.Get('/'));
    SetShiftState(s, 116, d.Get('^'));
    SetShiftState(s, 117, d.Get('%'));
    SetShiftState(s, 118, d.Get('['));
    SetShiftState(s, 152, d.Get(','));
    SetShiftState(s, 120, d.Get('&'));
1105 1106 1107
}

static void InitState_69(Dictionary &d, State &s)
1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132
{
    // shift transitions
    SetShiftState(s, 121, d.Get('-'));
    SetShiftState(s, 122, d.Get('['));
    SetShiftState(s, 123, d.Get('('));
    SetShiftState(s, 153, d.Get(')'));
    SetShiftState(s, 125, d.Get('<'));
    SetShiftState(s, 126, d.Get('{'));
    SetShiftState(s, 127, d.Get(257));
    SetShiftState(s, 128, d.Get(258));
    SetShiftState(s, 129, d.Get(259));
    SetShiftState(s, 130, d.Get(260));
    SetShiftState(s, 131, d.Get(261));
    SetShiftState(s, 132, d.Get("Expr"));
    SetShiftState(s, 133, d.Get("Constant"));
    SetShiftState(s, 134, d.Get("Vector"));
    SetShiftState(s, 135, d.Get("List"));
    SetShiftState(s, 136, d.Get("Function"));
    SetShiftState(s, 154, d.Get("Args"));
    SetShiftState(s, 138, d.Get("Arg"));
    SetShiftState(s, 139, d.Get("Variable"));
    SetShiftState(s, 140, d.Get("Database"));
}

static void InitState_70(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143
{
    // shift transitions
    SetShiftState(s,  17, d.Get('-'));
    SetShiftState(s,  18, d.Get('('));
    SetShiftState(s,  19, d.Get('<'));
    SetShiftState(s,  20, d.Get('{'));
    SetShiftState(s,  21, d.Get(257));
    SetShiftState(s,  22, d.Get(258));
    SetShiftState(s,  23, d.Get(259));
    SetShiftState(s,  24, d.Get(260));
    SetShiftState(s,  25, d.Get(261));
1144
    SetShiftState(s, 155, d.Get("Expr"));
hrchilds's avatar
hrchilds committed
1145 1146 1147 1148 1149 1150 1151
    SetShiftState(s,  27, d.Get("Constant"));
    SetShiftState(s,  28, d.Get("Vector"));
    SetShiftState(s,  29, d.Get("Function"));
    SetShiftState(s,  30, d.Get("Variable"));
    SetShiftState(s,  31, d.Get("Database"));
}

1152
static void InitState_71(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163
{
    // shift transitions
    SetShiftState(s,  17, d.Get('-'));
    SetShiftState(s,  18, d.Get('('));
    SetShiftState(s,  19, d.Get('<'));
    SetShiftState(s,  20, d.Get('{'));
    SetShiftState(s,  21, d.Get(257));
    SetShiftState(s,  22, d.Get(258));
    SetShiftState(s,  23, d.Get(259));
    SetShiftState(s,  24, d.Get(260));
    SetShiftState(s,  25, d.Get(261));
1164
    SetShiftState(s, 156, d.Get("Expr"));
hrchilds's avatar
hrchilds committed
1165 1166 1167 1168 1169
    SetShiftState(s,  27, d.Get("Constant"));
    SetShiftState(s,  28, d.Get("Vector"));
    SetShiftState(s,  29, d.Get("Function"));
    SetShiftState(s,  30, d.Get("Variable"));
    SetShiftState(s,  31, d.Get("Database"));
hrchilds's avatar
hrchilds committed
1170 1171
}

1172
static void InitState_72(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
1173 1174
{
    // shift transitions
hrchilds's avatar
hrchilds committed
1175 1176 1177 1178 1179 1180 1181 1182 1183
    SetShiftState(s,  17, d.Get('-'));
    SetShiftState(s,  18, d.Get('('));
    SetShiftState(s,  19, d.Get('<'));
    SetShiftState(s,  20, d.Get('{'));
    SetShiftState(s,  21, d.Get(257));
    SetShiftState(s,  22, d.Get(258));
    SetShiftState(s,  23, d.Get(259));
    SetShiftState(s,  24, d.Get(260));
    SetShiftState(s,  25, d.Get(261));
1184
    SetShiftState(s, 157, d.Get("Expr"));
hrchilds's avatar
hrchilds committed
1185 1186 1187 1188 1189 1190 1191
    SetShiftState(s,  27, d.Get("Constant"));
    SetShiftState(s,  28, d.Get("Vector"));
    SetShiftState(s,  29, d.Get("Function"));
    SetShiftState(s,  30, d.Get("Variable"));
    SetShiftState(s,  31, d.Get("Database"));
}

1192
static void InitState_73(Dictionary &d, State &s)
hrchilds's avatar
hrchilds committed
1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203
{
    // shift transitions
    SetShiftState(s,  17, d.Get('-'));
    SetShiftState(s,  18, d.Get('('));
    SetShiftState(s,  19, d.Get('<'));
    SetShiftState(s,  20, d.Get('{'));
    SetShiftState(s,  21, d.Get(257));
    SetShiftState(s,  22, d.Get(258));
    SetShiftState(s,  23, d.Get(259));
    SetShiftState(s,  24, d.Get(260));
    SetShiftState