summaryrefslogtreecommitdiff
path: root/java/src/parser.java
blob: 214b2abef6bafb6d04c0e7b75c582a5deeb95656 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
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
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623

//----------------------------------------------------
// The following code was generated by CUP v0.9e
// Sun Nov 09 13:56:12 CST 1997
//----------------------------------------------------

package JACE.ServiceConfigurator;

import java.io.*;
import java.lang.*;
import java_cup.runtime.*;
import JACE.ServiceConfigurator.*;
import JACE.OS.*;

public class parser extends java_cup.runtime.lr_parser {

  /** constructor */
  public parser() {super();}

  /** production table */
  protected static final short _production_table[][] = {
        {0, 2},     {9, 2},     {9, 1},     {8, 1},     {8, 1}, 
        {8, 1},     {8, 1},     {8, 1},     {8, 1},     {1, 3}, 
        {10, 3},     {3, 2},     {4, 2},     {5, 2},     {7, 3}, 
        {7, 3},     {17, 1},     {17, 1},     {11, 1},     {11, 2}, 
        {6, 2},     {6, 0},     {12, 1},     {12, 1},     {12, 1}, 
        {12, 1},     {12, 1},     {2, 4},     {13, 1},     {13, 1}, 
        {13, 0},     {14, 3},     {14, 5},     {18, 2},     {18, 2}, 
        {18, 2},     {16, 1},     {16, 0},     {15, 1},     {15, 1}
      };

  /** access to production table */
  public short[][] production_table() {return _production_table;}

  /** parse action table */
  protected static final short[][] _action_table = {
    /*0*/{2,6,3,10,4,15,5,11,6,3,22,2,-1,0},
    /*1*/{2,6,3,10,14,47,-1,0},
    /*2*/{14,44,-1,0},
    /*3*/{0,-5,2,-5,3,-5,4,-5,5,-5,6,-5,22,-5,-1,0},
    /*4*/{0,-7,2,-7,3,-7,4,-7,5,-7,6,-7,22,-7,-1,0},
    /*5*/{14,24,-1,0},
    /*6*/{0,-3,2,6,3,10,4,15,5,11,6,3,22,2,-1,0},
    /*7*/{0,-9,2,-9,3,-9,4,-9,5,-9,6,-9,22,-9,-1,0},
    /*8*/{0,-6,2,-6,3,-6,4,-6,5,-6,6,-6,22,-6,-1,0},
    /*9*/{14,19,-1,0},
    /*10*/{14,18,-1,0},
    /*11*/{0,-8,2,-8,3,-8,4,-8,5,-8,6,-8,22,-8,-1,0},
    /*12*/{0,17,-1,0},
    /*13*/{0,-4,2,-4,3,-4,4,-4,5,-4,6,-4,22,-4,-1,0},
    /*14*/{14,16,-1,0},
    /*15*/{0,-12,2,-12,3,-12,4,-12,5,-12,6,-12,19,-12,22,-12,-1,0},
    /*16*/{0,-1,-1,0},
    /*17*/{0,-13,2,-13,3,-13,4,-13,5,-13,6,-13,19,-13,22,-13,-1,0},
    /*18*/{0,-38,2,-38,3,-38,4,-38,5,-38,6,-38,15,20,18,-38,19,-38,22,-38,-1,0},
    /*19*/{0,-37,2,-37,3,-37,4,-37,5,-37,6,-37,18,-37,19,-37,22,-37,-1,0},
    /*20*/{0,-11,2,-11,3,-11,4,-11,5,-11,6,-11,18,-11,19,-11,22,-11,-1,0},
    /*21*/{0,-2,-1,0},
    /*22*/{0,-38,2,-38,3,-38,4,-38,5,-38,6,-38,15,20,18,-38,19,-38,22,-38,-1,0},
    /*23*/{8,26,9,28,10,27,-1,0},
    /*24*/{13,32,14,35,-1,0},
    /*25*/{20,31,-1,0},
    /*26*/{20,30,-1,0},
    /*27*/{20,29,-1,0},
    /*28*/{13,-36,14,-36,-1,0},
    /*29*/{13,-35,14,-35,-1,0},
    /*30*/{13,-34,14,-34,-1,0},
    /*31*/{21,-39,-1,0},
    /*32*/{0,-31,2,-31,3,-31,4,-31,5,-31,6,-31,11,42,12,41,15,-31,18,-31,19,-31,22,-31,-1,0},
    /*33*/{21,36,-1,0},
    /*34*/{21,-40,-1,0},
    /*35*/{14,37,-1,0},
    /*36*/{0,-32,2,-32,3,-32,4,-32,5,-32,6,-32,11,-32,12,-32,15,-32,16,38,18,-32,19,-32,22,-32,-1,0},
    /*37*/{17,39,-1,0},
    /*38*/{0,-33,2,-33,3,-33,4,-33,5,-33,6,-33,11,-33,12,-33,15,-33,18,-33,19,-33,22,-33,-1,0},
    /*39*/{0,-28,2,-28,3,-28,4,-28,5,-28,6,-28,15,-28,18,-28,19,-28,22,-28,-1,0},
    /*40*/{0,-30,2,-30,3,-30,4,-30,5,-30,6,-30,15,-30,18,-30,19,-30,22,-30,-1,0},
    /*41*/{0,-29,2,-29,3,-29,4,-29,5,-29,6,-29,15,-29,18,-29,19,-29,22,-29,-1,0},
    /*42*/{0,-10,2,-10,3,-10,4,-10,5,-10,6,-10,18,-10,19,-10,22,-10,-1,0},
    /*43*/{0,-14,2,-14,3,-14,4,-14,5,-14,6,-14,19,-14,22,-14,-1,0},
    /*44*/{2,-18,3,-18,4,-18,5,-18,6,-18,18,-18,19,-18,-1,0},
    /*45*/{2,-22,3,-22,4,-22,5,-22,6,-22,18,50,19,-22,-1,0},
    /*46*/{2,-22,3,-22,4,-22,5,-22,6,-22,18,50,19,-22,-1,0},
    /*47*/{2,-17,3,-17,4,-17,5,-17,6,-17,18,-17,19,-17,-1,0},
    /*48*/{2,6,3,10,4,15,5,11,6,3,19,54,-1,0},
    /*49*/{0,-19,2,-19,3,-19,4,-19,5,-19,6,-19,22,-19,-1,0},
    /*50*/{0,-16,2,-16,3,-16,4,-16,5,-16,6,-16,22,-16,-1,0},
    /*51*/{2,-21,3,-21,4,-21,5,-21,6,-21,19,-21,-1,0},
    /*52*/{2,-24,3,-24,4,-24,5,-24,6,-24,19,-24,-1,0},
    /*53*/{0,-20,2,-20,3,-20,4,-20,5,-20,6,-20,22,-20,-1,0},
    /*54*/{2,-26,3,-26,4,-26,5,-26,6,-26,19,-26,-1,0},
    /*55*/{2,-25,3,-25,4,-25,5,-25,6,-25,19,-25,-1,0},
    /*56*/{2,-27,3,-27,4,-27,5,-27,6,-27,19,-27,-1,0},
    /*57*/{2,-23,3,-23,4,-23,5,-23,6,-23,19,-23,-1,0},
    /*58*/{0,-15,2,-15,3,-15,4,-15,5,-15,6,-15,22,-15,-1,0},
  };

  /** access to parse action table */
  public short[][] action_table() {return _action_table;}

  /** reduce_goto table */
  protected static final short[][] _reduce_table = {
    /*0*/{1,13,3,8,4,4,5,11,7,7,8,6,9,12,10,3,-1,-1},
    /*1*/{1,47,10,44,17,45,-1,-1},
    /*2*/{-1,-1},
    /*3*/{-1,-1},
    /*4*/{-1,-1},
    /*5*/{2,22,-1,-1},
    /*6*/{1,13,3,8,4,4,5,11,7,7,8,6,9,21,10,3,-1,-1},
    /*7*/{-1,-1},
    /*8*/{-1,-1},
    /*9*/{-1,-1},
    /*10*/{-1,-1},
    /*11*/{-1,-1},
    /*12*/{-1,-1},
    /*13*/{-1,-1},
    /*14*/{-1,-1},
    /*15*/{-1,-1},
    /*16*/{-1,-1},
    /*17*/{-1,-1},
    /*18*/{16,20,-1,-1},
    /*19*/{-1,-1},
    /*20*/{-1,-1},
    /*21*/{-1,-1},
    /*22*/{16,42,-1,-1},
    /*23*/{18,24,-1,-1},
    /*24*/{14,32,15,33,-1,-1},
    /*25*/{-1,-1},
    /*26*/{-1,-1},
    /*27*/{-1,-1},
    /*28*/{-1,-1},
    /*29*/{-1,-1},
    /*30*/{-1,-1},
    /*31*/{-1,-1},
    /*32*/{13,39,-1,-1},
    /*33*/{-1,-1},
    /*34*/{-1,-1},
    /*35*/{-1,-1},
    /*36*/{-1,-1},
    /*37*/{-1,-1},
    /*38*/{-1,-1},
    /*39*/{-1,-1},
    /*40*/{-1,-1},
    /*41*/{-1,-1},
    /*42*/{-1,-1},
    /*43*/{-1,-1},
    /*44*/{-1,-1},
    /*45*/{6,48,11,58,-1,-1},
    /*46*/{6,48,11,50,-1,-1},
    /*47*/{-1,-1},
    /*48*/{1,57,3,55,4,54,5,56,10,52,12,51,-1,-1},
    /*49*/{-1,-1},
    /*50*/{-1,-1},
    /*51*/{-1,-1},
    /*52*/{-1,-1},
    /*53*/{-1,-1},
    /*54*/{-1,-1},
    /*55*/{-1,-1},
    /*56*/{-1,-1},
    /*57*/{-1,-1},
    /*58*/{-1,-1},
  };

  /** access to reduce_goto table */
  public short[][] reduce_table() {return _reduce_table;}

  /** instance of action encapsulation class */
  protected CUP$actions action_obj;

  /** action encapsulation object initializer */
  protected void init_actions()
    {
      action_obj = new CUP$actions();
    }

  /** invoke a user supplied parse action */
  public java_cup.runtime.symbol do_action(
    int                        act_num,
    java_cup.runtime.lr_parser parser,
    java.util.Stack            stack,
    int                        top)
    throws java.lang.Exception
  {
    /* call code in generated class */
    return action_obj.CUP$do_action(act_num, parser, stack, top);
  }

  /** start state */
  public int start_state() {return 0;}
  /** start production */
  public int start_production() {return 0;}

  /** EOF symbol index */
  public int EOF_sym() {return 0;}

  /** error symbol index */
  public int error_sym() {return 1;}


  /** user initialization */
  public void user_init() throws java.lang.Exception
    {
 
      try {

	FileInputStream fs = new FileInputStream(new String(ServiceConfig.serviceConfigFile_));

        this.setLexer(new Yylex(fs));

      } catch (FileNotFoundException fnf) {

	ACE.ERROR("File not found: " + fnf);

      } catch (SecurityException se) {

	ACE.ERROR("Security: " + se);
      }

    }

  /** scan to get the next token */
  public java_cup.runtime.token scan()
    throws java.lang.Exception
    {
 return this.lexer_.yylex(); 
    }

 
  // Lexical Analyzer
  private Yylex lexer_;

  public void setLexer(Yylex lexer)
    {
      this.lexer_ = lexer;
    }

};

/** Cup generated class to encapsulate user supplied action code.*/
class CUP$actions {

  /** Constructor */
  CUP$actions() { }

  /** Method with the actual generated action code. */
  public final java_cup.runtime.symbol CUP$do_action(
    int                        CUP$act_num,
    java_cup.runtime.lr_parser CUP$parser,
    java.util.Stack            CUP$stack,
    int                        CUP$top)
    throws java.lang.Exception
    {
      /* object for return from actions */
      java_cup.runtime.symbol CUP$result;

      /* select the action based on the action number */
      switch (CUP$act_num)
        {
          /*. . . . . . . . . . . . . . . . . . . .*/
          case 39: // pathname ::= ACE_IDENT 
            {
              CUP$result = new java_cup.runtime.str_token(/*pathname*/15);
               ((java_cup.runtime.str_token)CUP$result).str_val = new String((/*e*/(str_token)CUP$stack.elementAt(CUP$top-0)).str_val); 
            }
          return CUP$result;

          /*. . . . . . . . . . . . . . . . . . . .*/
          case 38: // pathname ::= ACE_PATHNAME 
            {
              CUP$result = new java_cup.runtime.str_token(/*pathname*/15);
               ((java_cup.runtime.str_token)CUP$result).str_val = new String((/*e*/(str_token)CUP$stack.elementAt(CUP$top-0)).str_val); 
            }
          return CUP$result;

          /*. . . . . . . . . . . . . . . . . . . .*/
          case 37: // parameters_opt ::= 
            {
              CUP$result = new java_cup.runtime.str_token(/*parameters_opt*/16);
              
            }
          return CUP$result;

          /*. . . . . . . . . . . . . . . . . . . .*/
          case 36: // parameters_opt ::= ACE_STRING 
            {
              CUP$result = new java_cup.runtime.str_token(/*parameters_opt*/16);
               ((java_cup.runtime.str_token)CUP$result).str_val = new String((/*e*/(str_token)CUP$stack.elementAt(CUP$top-0)).str_val); 
            }
          return CUP$result;

          /*. . . . . . . . . . . . . . . . . . . .*/
          case 35: // type ::= ACE_STREAM_T ACE_STAR 
            {
              CUP$result = new java_cup.runtime.str_token(/*type*/18);
              
            }
          return CUP$result;

          /*. . . . . . . . . . . . . . . . . . . .*/
          case 34: // type ::= ACE_SVC_OBJ_T ACE_STAR 
            {
              CUP$result = new java_cup.runtime.str_token(/*type*/18);
               ((java_cup.runtime.str_token)CUP$result).str_val = new String("Service Object"); 
            }
          return CUP$result;

          /*. . . . . . . . . . . . . . . . . . . .*/
          case 33: // type ::= ACE_MODULE_T ACE_STAR 
            {
              CUP$result = new java_cup.runtime.str_token(/*type*/18);
              
            }
          return CUP$result;

          /*. . . . . . . . . . . . . . . . . . . .*/
          case 32: // svc_initializer ::= pathname ACE_COLON ACE_IDENT ACE_LPAREN ACE_RPAREN 
            {
              CUP$result = new java_cup.runtime.str_token(/*svc_initializer*/14);
               ((java_cup.runtime.str_token)CUP$result).str_val = new String((/*e1*/(java_cup.runtime.str_token)CUP$stack.elementAt(CUP$top-4)).str_val + ":" + (/*e2*/(str_token)CUP$stack.elementAt(CUP$top-2)).str_val); 
            }
          return CUP$result;

          /*. . . . . . . . . . . . . . . . . . . .*/
          case 31: // svc_initializer ::= pathname ACE_COLON ACE_IDENT 
            {
              CUP$result = new java_cup.runtime.str_token(/*svc_initializer*/14);
               ((java_cup.runtime.str_token)CUP$result).str_val = new String((/*e1*/(java_cup.runtime.str_token)CUP$stack.elementAt(CUP$top-2)).str_val + ":" + (/*e2*/(str_token)CUP$stack.elementAt(CUP$top-0)).str_val); 
            }
          return CUP$result;

          /*. . . . . . . . . . . . . . . . . . . .*/
          case 30: // status ::= 
            {
              CUP$result = new java_cup.runtime.int_token(/*status*/13);
               // Default case
              ((java_cup.runtime.int_token)CUP$result).int_val = 0; 
            }
          return CUP$result;

          /*. . . . . . . . . . . . . . . . . . . .*/
          case 29: // status ::= ACE_INACTIVE 
            {
              CUP$result = new java_cup.runtime.int_token(/*status*/13);
               ((java_cup.runtime.int_token)CUP$result).int_val = 1; 
            }
          return CUP$result;

          /*. . . . . . . . . . . . . . . . . . . .*/
          case 28: // status ::= ACE_ACTIVE 
            {
              CUP$result = new java_cup.runtime.int_token(/*status*/13);
               ((java_cup.runtime.int_token)CUP$result).int_val = 0; 
            }
          return CUP$result;

          /*. . . . . . . . . . . . . . . . . . . .*/
          case 27: // svc_location ::= ACE_IDENT type svc_initializer status 
            {
              CUP$result = new AddServiceObjectNode(/*svc_location*/2);
              
  boolean suspended = false;
  if ((/*e4*/(java_cup.runtime.int_token)CUP$stack.elementAt(CUP$top-0)).int_val == 1)
    suspended = true;

  ((AddServiceObjectNode)CUP$result).init((/*e1*/(str_token)CUP$stack.elementAt(CUP$top-3)).str_val, (/*e3*/(java_cup.runtime.str_token)CUP$stack.elementAt(CUP$top-1)).str_val, suspended);

            }
          return CUP$result;

          /*. . . . . . . . . . . . . . . . . . . .*/
          case 26: // module ::= remove 
            {
              CUP$result = new java_cup.runtime.str_token(/*module*/12);
              
            }
          return CUP$result;

          /*. . . . . . . . . . . . . . . . . . . .*/
          case 25: // module ::= resume 
            {
              CUP$result = new java_cup.runtime.str_token(/*module*/12);
              
            }
          return CUP$result;

          /*. . . . . . . . . . . . . . . . . . . .*/
          case 24: // module ::= suspend 
            {
              CUP$result = new java_cup.runtime.str_token(/*module*/12);
              
            }
          return CUP$result;

          /*. . . . . . . . . . . . . . . . . . . .*/
          case 23: // module ::= static 
            {
              CUP$result = new java_cup.runtime.str_token(/*module*/12);
              
            }
          return CUP$result;

          /*. . . . . . . . . . . . . . . . . . . .*/
          case 22: // module ::= dynamic 
            {
              CUP$result = new java_cup.runtime.str_token(/*module*/12);
              
            }
          return CUP$result;

          /*. . . . . . . . . . . . . . . . . . . .*/
          case 21: // module_list ::= 
            {
              CUP$result = new ParseNode(/*module_list*/6);
               ACE.ERROR("Not implemented: module manipulation"); 
            }
          return CUP$result;

          /*. . . . . . . . . . . . . . . . . . . .*/
          case 20: // module_list ::= module_list module 
            {
              CUP$result = new ParseNode(/*module_list*/6);
               ACE.ERROR("Not implemented: module manipulation"); 
            }
          return CUP$result;

          /*. . . . . . . . . . . . . . . . . . . .*/
          case 19: // stream_modules ::= module_list ACE_RBRACE 
            {
              CUP$result = new java_cup.runtime.str_token(/*stream_modules*/11);
              
            }
          return CUP$result;

          /*. . . . . . . . . . . . . . . . . . . .*/
          case 18: // stream_modules ::= ACE_LBRACE 
            {
              CUP$result = new java_cup.runtime.str_token(/*stream_modules*/11);
              
            }
          return CUP$result;

          /*. . . . . . . . . . . . . . . . . . . .*/
          case 17: // stream_ops ::= static 
            {
              CUP$result = new java_cup.runtime.str_token(/*stream_ops*/17);
              
            }
          return CUP$result;

          /*. . . . . . . . . . . . . . . . . . . .*/
          case 16: // stream_ops ::= dynamic 
            {
              CUP$result = new java_cup.runtime.str_token(/*stream_ops*/17);
              
            }
          return CUP$result;

          /*. . . . . . . . . . . . . . . . . . . .*/
          case 15: // stream ::= ACE_USTREAM ACE_IDENT stream_modules 
            {
              CUP$result = new ParseNode(/*stream*/7);
              
            }
          return CUP$result;

          /*. . . . . . . . . . . . . . . . . . . .*/
          case 14: // stream ::= ACE_USTREAM stream_ops stream_modules 
            {
              CUP$result = new ParseNode(/*stream*/7);
              
            }
          return CUP$result;

          /*. . . . . . . . . . . . . . . . . . . .*/
          case 13: // remove ::= ACE_REMOVE ACE_IDENT 
            {
              CUP$result = new RemoveNode(/*remove*/5);
              
  ((RemoveNode)CUP$result).init((/*e1*/(str_token)CUP$stack.elementAt(CUP$top-0)).str_val);

            }
          return CUP$result;

          /*. . . . . . . . . . . . . . . . . . . .*/
          case 12: // resume ::= ACE_RESUME ACE_IDENT 
            {
              CUP$result = new ResumeNode(/*resume*/4);
              
  ((ResumeNode)CUP$result).init((/*e1*/(str_token)CUP$stack.elementAt(CUP$top-0)).str_val);

            }
          return CUP$result;

          /*. . . . . . . . . . . . . . . . . . . .*/
          case 11: // suspend ::= ACE_SUSPEND ACE_IDENT 
            {
              CUP$result = new SuspendNode(/*suspend*/3);
              
  ((SuspendNode)CUP$result).init((/*e1*/(str_token)CUP$stack.elementAt(CUP$top-0)).str_val);

            }
          return CUP$result;

          /*. . . . . . . . . . . . . . . . . . . .*/
          case 10: // static ::= ACE_STATIC ACE_IDENT parameters_opt 
            {
              CUP$result = new ParseNode(/*static*/10);
              
            }
          return CUP$result;

          /*. . . . . . . . . . . . . . . . . . . .*/
          case 9: // dynamic ::= ACE_DYNAMIC svc_location parameters_opt 
            {
              CUP$result = new AddServiceObjectNode(/*dynamic*/1);
              
  ((AddServiceObjectNode)CUP$result).init((/*e1*/(AddServiceObjectNode)CUP$stack.elementAt(CUP$top-1)).name(), (/*e1*/(AddServiceObjectNode)CUP$stack.elementAt(CUP$top-1)).locator(), (/*e1*/(AddServiceObjectNode)CUP$stack.elementAt(CUP$top-1)).suspended());

  ((AddServiceObjectNode)CUP$result).params((/*e2*/(java_cup.runtime.str_token)CUP$stack.elementAt(CUP$top-0)).str_val);

            }
          return CUP$result;

          /*. . . . . . . . . . . . . . . . . . . .*/
          case 8: // svc_config_entry ::= stream 
            {
              CUP$result = new ParseNode(/*svc_config_entry*/8);
               ACE.ERROR("Not implemented: stream loading"); 
            }
          return CUP$result;

          /*. . . . . . . . . . . . . . . . . . . .*/
          case 7: // svc_config_entry ::= remove 
            {
              CUP$result = new ParseNode(/*svc_config_entry*/8);
               

		     
            }
          return CUP$result;

          /*. . . . . . . . . . . . . . . . . . . .*/
          case 6: // svc_config_entry ::= resume 
            {
              CUP$result = new ParseNode(/*svc_config_entry*/8);
                /* Empty -- result auto set to resume */ 
		     
            }
          return CUP$result;

          /*. . . . . . . . . . . . . . . . . . . .*/
          case 5: // svc_config_entry ::= suspend 
            {
              CUP$result = new ParseNode(/*svc_config_entry*/8);
               
		       /* Empty -- result auto set to suspend */
		       /* CUP$result = (ParseNode)CUP$stack.elementAt(CUP$top-0); */
		     
            }
          return CUP$result;

          /*. . . . . . . . . . . . . . . . . . . .*/
          case 4: // svc_config_entry ::= static 
            {
              CUP$result = new ParseNode(/*svc_config_entry*/8);
               
		       /* More graceful error system needed here */
		       ACE.ERROR("Not implemented: static service loading"); 
            }
          return CUP$result;

          /*. . . . . . . . . . . . . . . . . . . .*/
          case 3: // svc_config_entry ::= dynamic 
            {
              CUP$result = new ParseNode(/*svc_config_entry*/8);
               
		       /* Empty -- result auto set to dynamic */
		       /* CUP$result = (ParseNode)CUP$stack.elementAt(CUP$top-0); */
		     
            }
          return CUP$result;

          /*. . . . . . . . . . . . . . . . . . . .*/
          case 2: // svc_config_entries ::= svc_config_entry 
            {
              CUP$result = new ParseNode(/*svc_config_entries*/9);
                
			 if ((/*e1*/(ParseNode)CUP$stack.elementAt(CUP$top-0)) != null)
			   (/*e1*/(ParseNode)CUP$stack.elementAt(CUP$top-0)).apply();
		       
            }
          return CUP$result;

          /*. . . . . . . . . . . . . . . . . . . .*/
          case 1: // svc_config_entries ::= svc_config_entry svc_config_entries 
            {
              CUP$result = new ParseNode(/*svc_config_entries*/9);
               
			 if ((/*e1*/(ParseNode)CUP$stack.elementAt(CUP$top-1)) != null)
			   (/*e1*/(ParseNode)CUP$stack.elementAt(CUP$top-1)).apply();
                       
            }
          return CUP$result;

          /*. . . . . . . . . . . . . . . . . . . .*/
          case 0: // $START ::= svc_config_entries EOF 
            {
              CUP$result = new java_cup.runtime.token(/*$START*/0);
              
            }
          /* ACCEPT */
          CUP$parser.done_parsing();
          return CUP$result;

          /* . . . . . .*/
          default:
            throw new Exception(
               "Invalid action number found in internal parse table");

        }
    }
};