summaryrefslogtreecommitdiffstats
path: root/ds9/parsers/movieparser.tcl
blob: 6b615fc833be2a18be89746e052a5b1895850473 (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
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
package provide DS9 1.0

######
# Begin autogenerated taccle (version 1.3) routines.
# Although taccle itself is protected by the GNU Public License (GPL)
# all user-supplied functions are protected by their respective
# author's license.  See http://mini.net/tcl/taccle for other details.
######

namespace eval movie {
    variable yylval {}
    variable table
    variable rules
    variable token {}
    variable yycnt 0
    variable yyerr 0
    variable save_state 0

    namespace export yylex
}

proc movie::YYABORT {} {
    return -code return 1
}

proc movie::YYACCEPT {} {
    return -code return 0
}

proc movie::YYERROR {} {
    variable yyerr
    set yyerr 1
}

proc movie::yyclearin {} {
    variable token
    variable yycnt
    set token {}
    incr yycnt -1
}

proc movie::yyerror {s} {
    puts stderr $s
}

proc movie::setupvalues {stack pointer numsyms} {
    upvar 1 1 y
    set y {}
    for {set i 1} {$i <= $numsyms} {incr i} {
        upvar 1 $i y
        set y [lindex $stack $pointer]
        incr pointer
    }
}

proc movie::unsetupvalues {numsyms} {
    for {set i 1} {$i <= $numsyms} {incr i} {
        upvar 1 $i y
        unset y
    }
}

array set movie::table {
  38:272 reduce
  17:257 shift
  27:262,target 19
  38:273 reduce
  17:258 shift
  41:268,target 26
  11:263,target 19
  6:259,target 15
  27:0 reduce
  33:261,target 21
  40:264,target 25
  39:264,target 28
  31:273,target 1
  3:267,target 14
  38:259,target 27
  6:259 reduce
  36:272,target 24
  26:259 reduce
  28:264,target 20
  0:275,target 7
  26:261 shift
  26:262 shift
  26:263 shift
  6:266 reduce
  26:264 shift
  27:259,target 19
  34:263,target 22
  6:267 reduce
  17:274 goto
  11:261,target 17
  41:0,target 26
  35:259 reduce
  26:268 shift
  40:262,target 25
  39:262,target 28
  35:261 reduce
  33:0,target 21
  26:269 shift
  26:270 shift
  35:262 reduce
  16:259,target 8
  35:263 reduce
  26:272 shift
  35:264 reduce
  26:273 shift
  36:270,target 24
  36:269,target 24
  43:273,target 25
  28:262,target 18
  11:280,target 26
  35:268 reduce
  42:268,target 18
  35:270 reduce
  35:269 reduce
  35:272 reduce
  34:261,target 22
  26:281 goto
  41:264,target 26
  35:273 reduce
  32:273,target 2
  14:259 reduce
  42:0 reduce
  40:259,target 25
  39:259,target 28
  31:268,target 1
  2:279,target 12
  37:272,target 20
  28:281,target 27
  9:266,target 4
  3:259 reduce
  23:257 shift
  0:271,target 6
  28:259,target 11
  35:263,target 23
  26:272,target 24
  3:266 reduce
  41:262,target 26
  3:267 reduce
  38:0 reduce
  32:259 reduce
  37:270,target 20
  37:269,target 20
  32:261 reduce
  32:262 reduce
  32:263 reduce
  32:264 reduce
  43:268,target 21
  8:259,target 4
  35:261,target 23
  26:269,target 22
  26:270,target 23
  42:264,target 18
  41:259 reduce
  37:0,target 20
  33:273,target 21
  32:268 reduce
  14:0 reduce
  41:261 reduce
  32:270 reduce
  32:269 reduce
  30:0,target 9
  29:0,target 5
  41:262 reduce
  41:263 reduce
  41:259,target 26
  35:0 reduce
  32:272 reduce
  32:268,target 2
  14:0,target 7
  41:264 reduce
  38:272,target 27
  32:273 reduce
  17:257,target 31
  11:259 reduce
  31:264,target 1
  11:261 shift
  11:262 shift
  41:268 reduce
  11:263 shift
  41:270 reduce
  41:269 reduce
  30:259,target 9
  11:264 shift
  36:263,target 24
  27:272,target 19
  41:272 reduce
  0:259 shift
  0:260 shift
  19:257 shift
  20:257 shift
  41:273 reduce
  0:266,target 4
  11:273,target 25
  19:258 shift
  20:258 shift
  11:0 reduce
  11:268 shift
  42:262,target 18
  11:269 shift
  11:270 shift
  32:0 reduce
  0:265 shift
  11:272 shift
  0:266 shift
  11:273 shift
  38:270,target 27
  38:269,target 27
  0:267 shift
  8:259 reduce
  31:262,target 1
  0:271 shift
  8:276,target 13
  28:259 reduce
  28:261 shift
  28:262 shift
  9:259,target 14
  11:280 goto
  36:261,target 24
  28:263 shift
  11:281 goto
  27:269,target 19
  27:270,target 19
  43:264,target 20
  34:273,target 22
  28:264 shift
  0:275 goto
  19:274 goto
  20:274 goto
  0:277 goto
  6:267,target 15
  17:274,target 33
  42:259,target 18
  33:268,target 21
  0:278 goto
  40:272,target 25
  39:272,target 28
  37:259 reduce
  28:268 shift
  0:279 goto
  7:0,target 0
  18:257,target 31
  28:0 reduce
  37:261 reduce
  28:270 shift
  28:269 shift
  37:262 reduce
  32:264,target 2
  37:263 reduce
  28:272 shift
  37:264 reduce
  28:273 shift
  31:259,target 1
  8:276 goto
  37:263,target 20
  28:272,target 24
  42:0,target 18
  37:268 reduce
  34:0,target 22
  37:270 reduce
  37:269 reduce
  26:0,target 12
  43:262,target 18
  28:280 goto
  37:272 reduce
  28:281 goto
  11:0,target 10
  11:268,target 21
  37:273 reduce
  26:263,target 19
  16:259 reduce
  40:270,target 25
  40:269,target 25
  39:270,target 28
  39:269,target 28
  32:262,target 2
  43:281,target 42
  5:259 reduce
  25:257 shift
  37:261,target 20
  28:270,target 23
  28:269,target 22
  35:273,target 23
  18:274,target 34
  43:259,target 13
  34:268,target 22
  41:272,target 26
  0:260,target 2
  0:259,target 1
  19:257,target 31
  20:257,target 31
  26:261,target 17
  33:264,target 21
  43:0 reduce
  34:259 reduce
  34:261 reduce
  32:259,target 2
  38:263,target 27
  34:262 reduce
  34:263 reduce
  34:264 reduce
  2:266,target 4
  0:278,target 9
  43:259 reduce
  34:268 reduce
  27:263,target 19
  43:261 shift
  34:270 reduce
  34:269 reduce
  43:262 shift
  41:270,target 26
  41:269,target 26
  11:264,target 20
  43:263 shift
  34:272 reduce
  43:264 shift
  34:273 reduce
  33:262,target 21
  40:0 reduce
  39:0 reduce
  10:259,target 16
  13:259 shift
  38:0,target 27
  43:268 shift
  38:261,target 27
  31:0,target 1
  43:270 shift
  43:269 shift
  36:273,target 24
  43:272 shift
  2:259 shift
  19:274,target 35
  20:274,target 36
  22:257 shift
  43:273 shift
  35:268,target 23
  42:272,target 18
  1:259,target 6
  21:257,target 37
  27:261,target 19
  34:264,target 22
  11:262,target 18
  2:266 shift
  36:0 reduce
  33:259,target 21
  2:267 shift
  43:281 goto
  40:263,target 25
  39:263,target 28
  31:272,target 1
  31:259 reduce
  3:266,target 14
  31:261 reduce
  31:262 reduce
  31:263 reduce
  31:264 reduce
  28:263,target 19
  11:281,target 27
  42:270,target 18
  42:269,target 18
  40:259 reduce
  39:259 reduce
  34:262,target 22
  31:268 reduce
  2:279 goto
  40:261 reduce
  39:261 reduce
  31:270 reduce
  31:269 reduce
  11:259,target 10
  40:262 reduce
  39:262 reduce
  33:0 reduce
  40:263 reduce
  39:263 reduce
  31:272 reduce
  40:264 reduce
  40:261,target 25
  39:264 reduce
  39:261,target 28
  31:273 reduce
  31:270,target 1
  31:269,target 1
  37:273,target 20
  10:259 shift
  8:0,target 3
  9:267,target 5
  40:268 reduce
  39:268 reduce
  36:268,target 24
  1:0,target 6
  43:272,target 24
  40:270 reduce
  40:269 reduce
  39:270 reduce
  39:269 reduce
  2:259,target 11
  22:257,target 38
  28:261,target 17
  40:272 reduce
  39:272 reduce
  35:264,target 23
  7:0 accept
  18:257 shift
  26:273,target 25
  40:273 reduce
  39:273 reduce
  18:258 shift
  43:0,target 13
  34:259,target 22
  41:263,target 26
  35:0,target 23
  32:272,target 2
  30:0 reduce
  29:0 reduce
  27:0,target 19
  28:280,target 43
  27:259 reduce
  27:261 reduce
  43:270,target 23
  43:269,target 22
  27:262 reduce
  27:263 reduce
  35:262,target 23
  27:264 reduce
  12:259,target 28
  18:274 goto
  26:0 reduce
  41:261,target 26
  36:259 reduce
  32:270,target 2
  32:269,target 2
  27:268 reduce
  38:273,target 27
  36:261 reduce
  17:258,target 32
  27:269 reduce
  27:270 reduce
  36:262 reduce
  36:263 reduce
  27:272 reduce
  37:268,target 20
  36:264 reduce
  27:273 reduce
  3:259,target 14
  23:257,target 39
  36:264,target 24
  27:273,target 19
  36:268 reduce
  1:0 reduce
  36:270 reduce
  36:269 reduce
  0:267,target 5
  35:259,target 23
  26:268,target 21
  42:263,target 18
  36:272 reduce
  33:272,target 21
  36:273 reduce
  15:259 shift
  31:263,target 1
  4:259 reduce
  24:257 shift
  36:262,target 24
  40:0,target 25
  39:0,target 28
  13:259,target 29
  32:0,target 2
  0:265,target 3
  11:272,target 24
  42:261,target 18
  33:270,target 21
  33:269,target 21
  16:0,target 8
  40:273,target 25
  39:273,target 28
  18:258,target 32
  41:0 reduce
  38:268,target 27
  33:259 reduce
  9:279,target 15
  33:261 reduce
  4:259,target 17
  24:257,target 40
  33:262 reduce
  31:261,target 1
  37:264,target 20
  33:263 reduce
  28:273,target 25
  33:264 reduce
  36:259,target 24
  27:268,target 19
  43:263,target 19
  34:272,target 22
  42:259 reduce
  33:268 reduce
  11:269,target 22
  11:270,target 23
  42:261 reduce
  33:270 reduce
  33:269 reduce
  6:266,target 15
  16:0 reduce
  26:264,target 20
  42:262 reduce
  42:263 reduce
  33:272 reduce
  42:264 reduce
  37:0 reduce
  33:273 reduce
  32:263,target 2
  12:259 shift
  42:268 reduce
  42:270 reduce
  42:269 reduce
  37:262,target 20
  14:259,target 7
  42:272 reduce
  1:259 reduce
  21:257 shift
  42:273 reduce
  43:261,target 17
  34:270,target 22
  34:269,target 22
  41:273,target 26
  19:258,target 32
  20:258,target 32
  26:262,target 18
  40:268,target 25
  39:268,target 28
  34:0 reduce
  5:259,target 16
  25:257,target 41
  32:261,target 2
  9:259 shift
  38:264,target 27
  30:259 reduce
  36:0,target 24
  2:267,target 5
  37:259,target 20
  28:268,target 21
  0:279,target 10
  28:0,target 11
  35:272,target 23
  26:281,target 42
  9:266 shift
  8:0 reduce
  9:267 shift
  27:264,target 19
  38:259 reduce
  26:259,target 12
  38:261 reduce
  33:263,target 21
  31:0 reduce
  38:262 reduce
  38:263 reduce
  38:264 reduce
  38:262,target 27
  15:259,target 30
  38:268 reduce
  0:277,target 8
  9:279 goto
  38:270 reduce
  38:269 reduce
  35:270,target 23
  35:269,target 23
  42:273,target 18
}

array set movie::rules {
  27,l 281
  9,l 277
  11,l 277
  15,l 278
  20,l 281
  19,l 280
  2,l 274
  24,l 281
  6,l 277
  28,l 281
  12,l 277
  16,l 279
  21,l 281
  3,l 275
  25,l 281
  7,l 277
  13,l 277
  0,l 282
  17,l 279
  22,l 281
  4,l 276
  26,l 281
  8,l 277
  10,l 277
  14,l 278
  18,l 280
  1,l 274
  23,l 281
  5,l 275
}

array set movie::rules {
  23,dc 2
  5,dc 3
  0,dc 1
  17,dc 1
  12,dc 3
  26,dc 2
  8,dc 2
  21,dc 2
  3,dc 1
  15,dc 1
  10,dc 2
  24,dc 2
  6,dc 1
  18,dc 2
  1,dc 1
  13,dc 4
  27,dc 2
  9,dc 3
  22,dc 2
  4,dc 0
  16,dc 1
  11,dc 3
  25,dc 2
  7,dc 2
  20,dc 2
  19,dc 1
  2,dc 1
  14,dc 1
  28,dc 2
}

array set movie::rules {
  13,line 56
  25,line 76
  7,line 46
  10,line 51
  22,line 73
  4,line 39
  18,line 67
  1,line 35
  15,line 60
  27,line 79
  9,line 49
  12,line 54
  24,line 75
  6,line 44
  21,line 72
  3,line 39
  17,line 64
  4,e 1
  14,line 59
  26,line 77
  8,line 47
  11,line 52
  23,line 74
  5,line 40
  20,line 71
  19,line 68
  2,line 36
  16,line 63
  28,line 81
}

array set movie::lr1_table {
  35 {{23 {0 259 261 262 263 264 268 269 270 272 273} 2}}
  36 {{24 {0 259 261 262 263 264 268 269 270 272 273} 2}}
  14,trans {}
  33,trans {}
  37 {{20 {0 259 261 262 263 264 268 269 270 272 273} 2}}
  38 {{27 {0 259 261 262 263 264 268 269 270 272 273} 2}}
  40 {{25 {0 259 261 262 263 264 268 269 270 272 273} 2}}
  39 {{28 {0 259 261 262 263 264 268 269 270 272 273} 2}}
  41 {{26 {0 259 261 262 263 264 268 269 270 272 273} 2}}
  18,trans {{257 31} {258 32} {274 34}}
  1,trans {}
  37,trans {}
  42 {{18 {0 259 261 262 263 264 268 269 270 272 273} 2}}
  43 {{13 {0 259} 4} {18 {0 259 261 262 263 264 268 269 270 272 273} 1} {20 {0 259 261 262 263 264 268 269 270 272 273} 0} {21 {0 259 261 262 263 264 268 269 270 272 273} 0} {22 {0 259 261 262 263 264 268 269 270 272 273} 0} {23 {0 259 261 262 263 264 268 269 270 272 273} 0} {24 {0 259 261 262 263 264 268 269 270 272 273} 0} {25 {0 259 261 262 263 264 268 269 270 272 273} 0} {26 {0 259 261 262 263 264 268 269 270 272 273} 0} {27 {0 259 261 262 263 264 268 269 270 272 273} 0} {28 {0 259 261 262 263 264 268 269 270 272 273} 0}}
  23,trans {{257 39}}
  5,trans {}
  42,trans {}
  27,trans {}
  9,trans {{259 14} {266 4} {267 5} {279 15}}
  13,trans {{259 29}}
  32,trans {}
  17,trans {{257 31} {258 32} {274 33}}
  0,trans {{259 1} {260 2} {265 3} {266 4} {267 5} {271 6} {275 7} {277 8} {278 9} {279 10}}
  36,trans {}
  22,trans {{257 38}}
  4,trans {}
  41,trans {}
  26,trans {{261 17} {262 18} {263 19} {264 20} {268 21} {269 22} {270 23} {272 24} {273 25} {281 42}}
  8,trans {{276 13}}
  12,trans {{259 28}}
  31,trans {}
  16,trans {}
  35,trans {}
  21,trans {{257 37}}
  3,trans {}
  40,trans {}
  39,trans {}
  10 {{8 {0 259} 1}}
  11 {{10 {0 259} 2} {12 {0 259} 2} {18 {0 259 261 262 263 264 268 269 270 272 273} 0} {19 {0 259 261 262 263 264 268 269 270 272 273} 0} {20 {0 259 261 262 263 264 268 269 270 272 273} 0} {21 {0 259 261 262 263 264 268 269 270 272 273} 0} {22 {0 259 261 262 263 264 268 269 270 272 273} 0} {23 {0 259 261 262 263 264 268 269 270 272 273} 0} {24 {0 259 261 262 263 264 268 269 270 272 273} 0} {25 {0 259 261 262 263 264 268 269 270 272 273} 0} {26 {0 259 261 262 263 264 268 269 270 272 273} 0} {27 {0 259 261 262 263 264 268 269 270 272 273} 0} {28 {0 259 261 262 263 264 268 269 270 272 273} 0}}
  25,trans {{257 41}}
  12 {{11 {0 259} 2} {13 {0 259} 2}}
  7,trans {}
  13 {{5 0 2}}
  14 {{7 {0 259} 2}}
  15 {{9 {0 259} 2}}
  11,trans {{261 17} {262 18} {263 19} {264 20} {268 21} {269 22} {270 23} {272 24} {273 25} {280 26} {281 27}}
  30,trans {}
  29,trans {}
  16 {{8 {0 259} 2}}
  0 {{0 0 0} {3 0 0} {5 0 0} {6 {0 259} 0} {7 {0 259} 0} {8 {0 259} 0} {9 {0 259} 0} {10 {0 259} 0} {11 {0 259} 0} {12 {0 259} 0} {13 {0 259} 0} {14 {259 266 267} 0} {15 {259 266 267} 0} {16 259 0} {17 259 0}}
  17 {{21 {0 259 261 262 263 264 268 269 270 272 273} 1} {1 {0 259 261 262 263 264 268 269 270 272 273} 0} {2 {0 259 261 262 263 264 268 269 270 272 273} 0}}
  1 {{6 {0 259} 1}}
  18 {{22 {0 259 261 262 263 264 268 269 270 272 273} 1} {1 {0 259 261 262 263 264 268 269 270 272 273} 0} {2 {0 259 261 262 263 264 268 269 270 272 273} 0}}
  2 {{10 {0 259} 1} {11 {0 259} 1} {12 {0 259} 1} {13 {0 259} 1} {16 259 0} {17 259 0}}
  19 {{23 {0 259 261 262 263 264 268 269 270 272 273} 1} {1 {0 259 261 262 263 264 268 269 270 272 273} 0} {2 {0 259 261 262 263 264 268 269 270 272 273} 0}}
  20 {{24 {0 259 261 262 263 264 268 269 270 272 273} 1} {1 {0 259 261 262 263 264 268 269 270 272 273} 0} {2 {0 259 261 262 263 264 268 269 270 272 273} 0}}
  15,trans {{259 30}}
  34,trans {}
  3 {{14 {259 266 267} 1}}
  21 {{20 {0 259 261 262 263 264 268 269 270 272 273} 1}}
  4 {{17 259 1}}
  22 {{27 {0 259 261 262 263 264 268 269 270 272 273} 1}}
  5 {{16 259 1}}
  23 {{28 {0 259 261 262 263 264 268 269 270 272 273} 1}}
  20,trans {{257 31} {258 32} {274 36}}
  19,trans {{257 31} {258 32} {274 35}}
  6 {{15 {259 266 267} 1}}
  2,trans {{259 11} {266 4} {267 5} {279 12}}
  24 {{25 {0 259 261 262 263 264 268 269 270 272 273} 1}}
  38,trans {}
  7 {{0 0 1}}
  25 {{26 {0 259 261 262 263 264 268 269 270 272 273} 1}}
  8 {{3 0 1} {5 0 1} {4 259 0}}
  26 {{12 {0 259} 3} {18 {0 259 261 262 263 264 268 269 270 272 273} 1} {20 {0 259 261 262 263 264 268 269 270 272 273} 0} {21 {0 259 261 262 263 264 268 269 270 272 273} 0} {22 {0 259 261 262 263 264 268 269 270 272 273} 0} {23 {0 259 261 262 263 264 268 269 270 272 273} 0} {24 {0 259 261 262 263 264 268 269 270 272 273} 0} {25 {0 259 261 262 263 264 268 269 270 272 273} 0} {26 {0 259 261 262 263 264 268 269 270 272 273} 0} {27 {0 259 261 262 263 264 268 269 270 272 273} 0} {28 {0 259 261 262 263 264 268 269 270 272 273} 0}}
  9 {{7 {0 259} 1} {9 {0 259} 1} {16 259 0} {17 259 0}}
  27 {{19 {0 259 261 262 263 264 268 269 270 272 273} 1}}
  24,trans {{257 40}}
  6,trans {}
  28 {{11 {0 259} 3} {13 {0 259} 3} {18 {0 259 261 262 263 264 268 269 270 272 273} 0} {19 {0 259 261 262 263 264 268 269 270 272 273} 0} {20 {0 259 261 262 263 264 268 269 270 272 273} 0} {21 {0 259 261 262 263 264 268 269 270 272 273} 0} {22 {0 259 261 262 263 264 268 269 270 272 273} 0} {23 {0 259 261 262 263 264 268 269 270 272 273} 0} {24 {0 259 261 262 263 264 268 269 270 272 273} 0} {25 {0 259 261 262 263 264 268 269 270 272 273} 0} {26 {0 259 261 262 263 264 268 269 270 272 273} 0} {27 {0 259 261 262 263 264 268 269 270 272 273} 0} {28 {0 259 261 262 263 264 268 269 270 272 273} 0}}
  43,trans {{261 17} {262 18} {263 19} {264 20} {268 21} {269 22} {270 23} {272 24} {273 25} {281 42}}
  29 {{5 0 3}}
  30 {{9 {0 259} 3}}
  31 {{1 {0 259 261 262 263 264 268 269 270 272 273} 1}}
  32 {{2 {0 259 261 262 263 264 268 269 270 272 273} 1}}
  10,trans {{259 16}}
  28,trans {{261 17} {262 18} {263 19} {264 20} {268 21} {269 22} {270 23} {272 24} {273 25} {280 43} {281 27}}
  33 {{21 {0 259 261 262 263 264 268 269 270 272 273} 2}}
  34 {{22 {0 259 261 262 263 264 268 269 270 272 273} 2}}
}

array set movie::token_id_table {
  280,title {}
  279,title {}
  264,line 18
  270,t 0
  269,t 0
  276,line 39
  265,title FRAME
  274,t 1
  261,line 15
  257,t 0
  270,title REPEAT
  269,title OSCILLATE
  273,line 27
  278,t 1
  257,line 7
  262,t 0
  274,title {}
  270,line 24
  269,line 23
  259,title string
  260,title 3D
  266,t 0
  278,title {}
  282,line 82
  error error
  271,t 0
  264,title ELTO
  266,line 20
  278,line 58
  275,t 1
  error,line 33
  268,title NUMBER
  258,t 0
  263,line 17
  error,title {}
  280,t 1
  279,t 1
  275,line 38
  273,title SLTO
  263,t 0
  259,line 10
  260,line 14
  258,title float
  277,title {}
  272,line 26
  267,t 0
  263,title ELFROM
  282,title {}
  272,t 0
  268,line 22
  267,title MPEG
  257 INT_
  281,line 70
  276,t 1
  258 REAL_
  259,t 0
  259 STRING_
  260 3D_
  260,t 0
  272,title SLFROM
  261 AZFROM_
  265,line 19
  262 AZTO_
  281,t 1
  263 ELFROM_
  277,line 42
  257,title integer
  264 ELTO_
  264,t 0
  276,title {}
  265 FRAME_
  262,line 16
  266 GIF_
  267 MPEG_
  0,t 0
  0 {$}
  262,title AZTO
  268 NUMBER_
  268,t 0
  281,title {}
  274,line 34
  270 REPEAT_
  269 OSCILLATE_
  error,t 0
  271 SLICE_
  272 SLFROM_
  258,line 8
  273,t 0
  273 SLTO_
  266,title GIF
  274 numeric
  275 command
  271,line 25
  276 @PSEUDO1
  277,t 1
  277 movie
  271,title SLICE
  278 action
  261,t 0
  280 opts
  279 type
  281 opt
  267,line 21
  282,t 1
  282 start'
  275,title {}
  265,t 0
  280,line 66
  279,line 62
  261,title AZFROM
}

proc movie::yyparse {} {
    variable yylval
    variable table
    variable rules
    variable token
    variable yycnt
    variable lr1_table
    variable token_id_table
    variable yyerr
    variable save_state

    set yycnt 0
    set state_stack {0}
    set value_stack {{}}
    set token ""
    set accepted 0
    set yyerr 0
    set save_state 0

    while {$accepted == 0} {
        set state [lindex $state_stack end]
        if {$token == ""} {
            set yylval ""
            set token [yylex]
            set buflval $yylval
	    if {$token>0} {
	        incr yycnt
            }
        }
        if {![info exists table($state:$token)] || $yyerr} {
	    if {!$yyerr} {
	        set save_state $state
	    }
            # pop off states until error token accepted
            while {[llength $state_stack] > 0 && \
                       ![info exists table($state:error)]} {
                set state_stack [lrange $state_stack 0 end-1]
                set value_stack [lrange $value_stack 0 \
                                       [expr {[llength $state_stack] - 1}]]
                set state [lindex $state_stack end]
            }
            if {[llength $state_stack] == 0} {
 
	        set rr { }
                if {[info exists lr1_table($save_state,trans)] && [llength $lr1_table($save_state,trans)] >= 1} {
                    foreach trans $lr1_table($save_state,trans) {
                        foreach {tok_id nextstate} $trans {
			    set ss $token_id_table($tok_id,title)
			    if {$ss != {}} {
			        append rr "$ss, "
                            }
                        }
                    }
                }
		set rr [string trimleft $rr { }]
		set rr [string trimright $rr {, }]
                yyerror "parse error, expecting: $rr"


                return 1
            }
            lappend state_stack [set state $table($state:error,target)]
            lappend value_stack {}
            # consume tokens until it finds an acceptable one
            while {![info exists table($state:$token)]} {
                if {$token == 0} {
                    yyerror "end of file while recovering from error"
                    return 1
                }
                set yylval {}
                set token [yylex]
                set buflval $yylval
            }
            continue
        }
        switch -- $table($state:$token) {
            shift {
                lappend state_stack $table($state:$token,target)
                lappend value_stack $buflval
                set token ""
            }
            reduce {
                set rule $table($state:$token,target)
                set ll $rules($rule,l)
                if {[info exists rules($rule,e)]} {
                    set dc $rules($rule,e)
                } else {
                    set dc $rules($rule,dc)
                }
                set stackpointer [expr {[llength $state_stack]-$dc}]
                setupvalues $value_stack $stackpointer $dc
                set _ $1
                set yylval [lindex $value_stack end]
                switch -- $rule {
                    1 { set _ $1 }
                    2 { set _ $1 }
                    4 { global ds9; if {!$ds9(init)} {YYERROR} else {yyclearin; YYACCEPT} }
                    6 { ProcessCmdSet2 movie action slice type [ExtToFormat $1]; MovieCreate $1 }
                    7 { ProcessCmdSet2 movie action $1 type [ExtToFormat $2]; MovieCreate $2 }
                    8 { ProcessCmdSet2 movie action slice type $1; MovieCreate $2 }
                    9 { ProcessCmdSet2 movie action $1 type $2; MovieCreate $3 }
                    10 { ProcessCmdSet2 movie action 3d type [ExtToFormat $2]; MovieCreate $2 }
                    11 { ProcessCmdSet2 movie action 3d type $2; MovieCreate $3 }
                    12 { ProcessCmdSet2 movie action 3d type [ExtToFormat $2]; MovieCreate $2 }
                    13 { ProcessCmdSet2 movie action 3d type $1; MovieCreate $2 }
                    14 { set _ frame }
                    15 { set _ slice }
                    16 { set _ mpeg }
                    17 { set _ gif }
                    20 { ProcessCmdSet movie num $2 }
                    21 { ProcessCmdSet movie az,from $2 }
                    22 { ProcessCmdSet movie az,to $2 }
                    23 { ProcessCmdSet movie el,from $2 }
                    24 { ProcessCmdSet movie el,to $2 }
                    25 { ProcessCmdSet movie sl,from $2 }
                    26 { ProcessCmdSet movie sl,to $2 }
                    27 { ProcessCmdSet movie repeat oscillate; ProcessCmdSet movie repeat,num $2 }
                    28 { ProcessCmdSet movie repeat repeat; ProcessCmdSet movie repeat,num $2 }
                }
                unsetupvalues $dc
                # pop off tokens from the stack if normal rule
                if {![info exists rules($rule,e)]} {
                    incr stackpointer -1
                    set state_stack [lrange $state_stack 0 $stackpointer]
                    set value_stack [lrange $value_stack 0 $stackpointer]
                }
                # now do the goto transition
                lappend state_stack $table([lindex $state_stack end]:$ll,target)
                lappend value_stack $_
            }
            accept {
                set accepted 1
            }
            goto -
            default {
                puts stderr "Internal parser error: illegal command $table($state:$token)"
                return 2
            }
        }
    }
    return 0
}

######
# end autogenerated taccle functions
######

proc movie::yyerror {msg} {
     variable yycnt
     variable yy_current_buffer
     variable index_

     ParserError $msg $yycnt $yy_current_buffer $index_
}