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 cropsend { variable yylval {} variable table variable rules variable token {} variable yycnt 0 variable yyerr 0 variable save_state 0 namespace export yylex } proc cropsend::YYABORT {} { return -code return 1 } proc cropsend::YYACCEPT {} { return -code return 0 } proc cropsend::YYERROR {} { variable yyerr set yyerr 1 } proc cropsend::yyclearin {} { variable token variable yycnt set token {} incr yycnt -1 } proc cropsend::yyerror {s} { puts stderr $s } proc cropsend::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 cropsend::unsetupvalues {numsyms} { for {set i 1} {$i <= $numsyms} {incr i} { upvar 1 $i y unset y } } array set cropsend::table { 51:295 shift 51:305 goto 21:289 reduce 21:290 reduce 31:294,target 31 51:296 shift 21:291 reduce 51:297 shift 21:292 reduce 21:293 reduce 21:294 reduce 9:288 reduce 13:291,target 13 21:295 reduce 48:0 reduce 9:290 reduce 9:289 reduce 9:291 reduce 9:292 reduce 21:298 reduce 9:293 reduce 10:298,target 10 9:294 reduce 25:293,target 25 0:275,target 19 9:295 reduce 9:298 reduce 37:295,target 37 33:0,target 33 39:262,target 6 49:297,target 40 19:292,target 19 20:292,target 20 5:293,target 5 21:0 reduce 14:291,target 14 0:292,target 36 0:302,target 42 11:298,target 11 26:293,target 26 26:288 reduce 26:289 reduce 26:290 reduce 26:291 reduce 26:292 reduce 26:293 reduce 38:295,target 38 26:294 reduce 26:295 reduce 39:278,target 22 51:297,target 56 21:292,target 21 26:298 reduce 6:293,target 6 15:291,target 15 29:0,target 29 30:0,target 30 35:0 reduce 12:298,target 12 27:293,target 27 10:289,target 10 10:290,target 10 9:0 reduce 0:266,target 10 52:297,target 56 22:292,target 22 7:293,target 7 32:295 reduce 16:291,target 16 32:298 reduce 13:298,target 13 28:293,target 28 49:0 reduce 57:0,target 50 0:283,target 27 11:289,target 11 11:290,target 11 26:0,target 26 53:297,target 56 23:292,target 23 39:269,target 13 39:270,target 14 8:293,target 8 17:291,target 17 14:298,target 14 22:0 reduce 29:293,target 29 30:293,target 30 0:299,target 39 12:289,target 12 12:290,target 12 42:295,target 48 37:295 reduce 37:298 reduce 24:292,target 24 39:286,target 30 0:257,target 1 9:293,target 9 54:0,target 41 48:296,target 39 18:291,target 18 23:0,target 23 15:298,target 15 31:293,target 31 36:0 reduce 43:295,target 48 13:289,target 13 13:290,target 13 25:292,target 25 0:274,target 18 43:304 goto 13:288 reduce 43:295 shift 13:289 reduce 13:290 reduce 13:291 reduce 39:261,target 5 49:296,target 40 13:292 reduce 19:291,target 19 20:291,target 20 43:298 shift 13:293 reduce 8:0,target 8 13:294 reduce 13:295 reduce 5:292,target 5 16:298,target 16 13:298 reduce 51:0,target 48 14:289,target 14 14:290,target 14 19:0,target 19 20:0,target 20 51:0 reduce 0:291,target 35 0:301,target 41 26:292,target 26 39:277,target 21 51:296,target 55 21:291,target 21 6:292,target 6 17:298,target 17 18:288 reduce 48:295 reduce 15:289,target 15 15:290,target 15 18:289 reduce 18:290 reduce 48:296 reduce 18:291 reduce 23:0 reduce 48:297 reduce 18:292 reduce 18:293 reduce 5:0,target 5 18:294 reduce 7:288 reduce 18:295 reduce 27:292,target 27 7:290 reduce 7:289 reduce 7:291 reduce 7:292 reduce 18:298 reduce 7:293 reduce 47:0,target 53 7:294 reduce 10:288,target 10 7:295 reduce 0:265,target 9 7:298 reduce 16:0,target 16 52:296,target 55 22:291,target 22 7:292,target 7 18:298,target 18 16:289,target 16 16:290,target 16 28:292,target 28 37:0 reduce 0:282,target 26 11:288,target 11 24:288 reduce 24:289 reduce 24:290 reduce 24:291 reduce 24:292 reduce 53:296,target 55 23:291,target 23 24:293 reduce 2:0,target 2 24:294 reduce 24:295 reduce 39:268,target 12 8:292,target 8 19:298,target 19 20:298,target 20 24:298 reduce 44:0,target 0 17:289,target 17 17:290,target 17 13:0,target 13 10:0 reduce 29:292,target 29 30:292,target 30 52:0 reduce 42:294,target 38 12:288,target 12 42:304,target 51 24:291,target 24 39:285,target 29 9:292,target 9 21:298,target 21 29:288 reduce 30:288 reduce 29:289 reduce 29:290 reduce 30:289 reduce 30:290 reduce 48:295,target 39 18:289,target 18 18:290,target 18 29:291 reduce 30:291 reduce 29:292 reduce 30:292 reduce 29:293 reduce 30:293 reduce 29:294 reduce 30:294 reduce 29:295 reduce 30:295 reduce 31:292,target 31 24:0 reduce 29:298 reduce 30:298 reduce 41:0,target 45 43:304,target 52 13:288,target 13 10:0,target 10 25:291,target 25 0:273,target 17 22:298,target 22 39:259,target 3 39:260,target 4 50:295,target 48 49:295,target 40 19:289,target 19 19:290,target 19 20:289,target 20 20:290,target 20 5:291,target 5 14:288,target 14 38:0 reduce 0:290,target 34 0:289,target 33 0:300,target 40 26:291,target 26 35:295 reduce 23:298,target 23 35:298 reduce 37:0,target 37 39:276,target 20 51:295,target 54 51:305,target 57 21:289,target 21 21:290,target 21 6:291,target 6 0:257 shift 0:258 shift 0:259 shift 0:260 shift 0:261 shift 0:262 shift 11:0 reduce 0:263 shift 15:288,target 15 0:264 shift 0:265 shift 0:266 shift 0:267 shift 0:268 shift 27:291,target 27 0:269 shift 0:270 shift 0:271 shift 0:272 shift 0:273 shift 24:298,target 24 0:274 shift 0:275 shift 0:276 shift 0:264,target 8 0:277 shift 0:278 shift 52:295,target 54 52:305,target 58 0:280 shift 0:279 shift 22:289,target 22 22:290,target 22 0:281 shift 0:282 shift 11:288 reduce 0:283 shift 11:289 reduce 11:290 reduce 7:291,target 7 0:284 shift 11:291 reduce 0:285 shift 11:292 reduce 0:286 shift 11:293 reduce 0:287 shift 11:294 reduce 0:288 shift 11:295 reduce 34:0,target 34 0:290 shift 0:289 shift 0:300 shift 0:291 shift 0:301 goto 16:288,target 16 0:292 shift 0:302 goto 11:298 reduce 0:293 shift 0:303 goto 0:294 shift 25:0 reduce 0:306 goto 28:291,target 28 0:299 shift 25:298,target 25 0:281,target 25 0:0 reduce 53:295,target 54 53:305,target 59 23:289,target 23 23:290,target 23 39:267,target 11 8:291,target 8 5:298,target 5 17:288,target 17 16:288 reduce 16:289 reduce 16:290 reduce 29:291,target 29 30:291,target 30 16:291 reduce 16:292 reduce 39:0 reduce 40:0 reduce 16:293 reduce 16:294 reduce 26:298,target 26 42:293,target 37 5:288 reduce 16:295 reduce 31:0,target 31 42:303,target 50 5:290 reduce 5:289 reduce 5:291 reduce 5:292 reduce 16:298 reduce 5:293 reduce 5:294 reduce 24:289,target 24 24:290,target 24 5:295 reduce 39:284,target 28 9:291,target 9 5:298 reduce 6:298,target 6 18:288,target 18 12:0 reduce 31:291,target 31 27:298,target 27 54:0 reduce 10:295,target 10 25:289,target 25 25:290,target 25 0:272,target 16 22:288 reduce 52:295 shift 52:305 goto 22:289 reduce 22:290 reduce 58:0,target 51 52:296 shift 22:291 reduce 52:297 shift 22:292 reduce 22:293 reduce 22:294 reduce 22:295 reduce 27:0,target 27 7:298,target 7 39:258,target 2 50:304,target 53 19:288,target 19 20:288,target 20 22:298 reduce 5:290,target 5 5:289,target 5 26:0 reduce 28:298,target 28 0:288,target 32 11:295,target 11 26:289,target 26 26:290,target 26 1:0 reduce 39:275,target 19 8:298,target 8 21:288,target 21 27:288 reduce 6:290,target 6 6:289,target 6 27:289 reduce 27:290 reduce 55:0,target 42 27:291 reduce 27:292 reduce 27:293 reduce 27:294 reduce 24:0,target 24 27:295 reduce 29:298,target 29 30:298,target 30 27:298 reduce 41:0 reduce 12:295,target 12 27:289,target 27 27:290,target 27 39:302,target 46 0:263,target 7 9:298,target 9 22:288,target 22 7:290,target 7 7:289,target 7 31:298,target 31 9:0,target 9 13:0 reduce 13:295,target 13 28:289,target 28 28:290,target 28 55:0 reduce 52:0,target 49 0:280,target 24 0:279,target 23 21:0,target 21 33:295 reduce 33:298 reduce 23:288,target 23 39:266,target 10 8:290,target 8 8:289,target 8 32:298,target 32 14:295,target 14 27:0 reduce 29:289,target 29 29:290,target 29 30:289,target 30 30:290,target 30 0:306,target 44 42:292,target 36 6:0,target 6 2:0 reduce 24:288,target 24 39:283,target 27 48:0,target 39 9:290,target 9 9:289,target 9 17:0,target 17 38:295 reduce 33:298,target 33 38:298 reduce 15:295,target 15 31:289,target 31 31:290,target 31 42:0 reduce 10:294,target 10 25:288,target 25 0:271,target 15 34:298,target 34 39:257,target 1 3:0,target 3 5:288,target 5 16:295,target 16 45:0,target 56 14:0 reduce 14:288 reduce 14:0,target 14 14:289 reduce 14:290 reduce 14:291 reduce 14:292 reduce 56:0 reduce 14:293 reduce 0:287,target 31 11:294,target 11 14:294 reduce 14:295 reduce 26:288,target 26 14:298 reduce 39:274,target 18 35:298,target 35 6:288,target 6 17:295,target 17 28:0 reduce 0:0,target 44 12:294,target 12 27:288,target 27 42:0,target 46 3:0 reduce 39:301,target 45 50:304 goto 19:288 reduce 20:288 reduce 50:295 shift 49:295 reduce 0:262,target 6 11:0,target 11 19:289 reduce 19:290 reduce 20:289 reduce 20:290 reduce 49:296 reduce 19:291 reduce 20:291 reduce 49:297 reduce 19:292 reduce 20:292 reduce 36:298,target 36 50:298 shift 19:293 reduce 20:293 reduce 19:294 reduce 20:294 reduce 8:288 reduce 19:295 reduce 20:295 reduce 8:290 reduce 8:289 reduce 8:291 reduce 7:288,target 7 18:295,target 18 8:292 reduce 19:298 reduce 20:298 reduce 8:293 reduce 8:294 reduce 8:295 reduce 8:298 reduce 13:294,target 13 43:0 reduce 28:288,target 28 0:278,target 22 37:298,target 37 39:265,target 9 8:288,target 8 19:295,target 19 20:295,target 20 38:0,target 38 25:288 reduce 25:289 reduce 25:290 reduce 25:291 reduce 25:292 reduce 25:293 reduce 15:0 reduce 25:294 reduce 14:294,target 14 25:295 reduce 29:288,target 29 30:288,target 30 25:298 reduce 57:0 reduce 42:291,target 35 38:298,target 38 39:282,target 26 9:288,target 9 21:295,target 21 15:294,target 15 31:288,target 31 29:0 reduce 30:0 reduce 35:0,target 35 31:288 reduce 31:289 reduce 31:290 reduce 31:291 reduce 31:292 reduce 10:293,target 10 31:293 reduce 31:294 reduce 4:0 reduce 0:269,target 13 0:270,target 14 31:295 reduce 22:295,target 22 31:298 reduce 16:294,target 16 44:0 accept 0:286,target 30 11:293,target 11 23:295,target 23 32:0,target 32 39:273,target 17 36:295 reduce 17:294,target 17 36:298 reduce 16:0 reduce 12:293,target 12 42:298,target 49 58:0 reduce 24:295,target 24 0:261,target 5 59:0,target 52 18:294,target 18 28:0,target 28 42:288 shift 42:290 shift 42:289 shift 42:291 shift 42:292 shift 42:293 shift 31:0 reduce 42:303 goto 43:298,target 49 42:294 shift 12:288 reduce 13:293,target 13 42:304 goto 12:289 reduce 12:290 reduce 42:295 shift 12:291 reduce 12:292 reduce 12:293 reduce 42:298 shift 12:294 reduce 25:295,target 25 0:277,target 21 12:295 reduce 5:0 reduce 12:298 reduce 39:264,target 8 19:294,target 19 20:294,target 20 5:295,target 5 56:0,target 43 14:293,target 14 45:0 reduce 0:294,target 38 25:0,target 25 26:295,target 26 42:290,target 34 42:289,target 33 17:288 reduce 39:281,target 25 17:289 reduce 17:290 reduce 17:291 reduce 17:292 reduce 21:294,target 21 17:293 reduce 17:294 reduce 6:288 reduce 17:295 reduce 6:295,target 6 6:290 reduce 6:289 reduce 6:291 reduce 6:292 reduce 17:298 reduce 6:293 reduce 6:294 reduce 6:295 reduce 15:293,target 15 17:0 reduce 6:298 reduce 27:295,target 27 59:0 reduce 10:292,target 10 39:307,target 47 0:268,target 12 22:294,target 22 22:0,target 22 7:295,target 7 23:288 reduce 53:295 shift 53:305 goto 16:293,target 16 23:289 reduce 23:290 reduce 53:296 shift 23:291 reduce 53:297 shift 23:292 reduce 23:293 reduce 23:294 reduce 23:295 reduce 28:295,target 28 32:0 reduce 23:298 reduce 0:285,target 29 11:292,target 11 6:0 reduce 23:294,target 23 7:0,target 7 39:272,target 16 8:295,target 8 49:0,target 40 17:293,target 17 18:0,target 18 29:295,target 29 30:295,target 30 46:0 reduce 12:292,target 12 28:288 reduce 28:289 reduce 28:290 reduce 28:291 reduce 28:292 reduce 24:294,target 24 28:293 reduce 28:294 reduce 28:295 reduce 0:259,target 3 0:260,target 4 9:295,target 9 28:298 reduce 18:293,target 18 4:0,target 4 31:295,target 31 18:0 reduce 13:292,target 13 46:0,target 57 15:0,target 15 25:294,target 25 0:276,target 20 39:263,target 7 50:298,target 49 19:293,target 19 20:293,target 20 5:294,target 5 34:295 reduce 32:295,target 32 34:298 reduce 39:257 shift 39:258 shift 39:259 shift 39:260 shift 14:292,target 14 39:261 shift 33:0 reduce 39:262 shift 39:263 shift 39:264 shift 0:293,target 37 0:303,target 43 39:265 shift 26:294,target 26 39:266 shift 39:267 shift 42:288,target 32 1:0,target 1 39:268 shift 39:269 shift 39:270 shift 39:271 shift 7:0 reduce 39:272 shift 39:273 shift 39:274 shift 39:279,target 23 39:280,target 24 43:0,target 47 39:275 shift 39:276 shift 21:293,target 21 39:277 shift 39:278 shift 12:0,target 12 39:279 shift 39:280 shift 39:281 shift 6:294,target 6 39:282 shift 33:295,target 33 39:283 shift 39:284 shift 39:285 shift 39:286 shift 39:287 shift 15:292,target 15 39:301 goto 39:302 goto 47:0 reduce 10:288 reduce 27:294,target 27 10:289 reduce 10:290 reduce 10:291 reduce 10:292 reduce 39:307 goto 10:293 reduce 10:291,target 10 10:294 reduce 10:295 reduce 0:267,target 11 10:298 reduce 22:293,target 22 7:294,target 7 34:295,target 34 16:292,target 16 39:0,target 55 40:0,target 54 19:0 reduce 20:0 reduce 28:294,target 28 0:284,target 28 11:291,target 11 23:293,target 23 15:288 reduce 15:289 reduce 15:290 reduce 39:271,target 15 8:294,target 8 15:291 reduce 15:292 reduce 35:295,target 35 15:293 reduce 15:294 reduce 15:295 reduce 17:292,target 17 15:298 reduce 29:294,target 29 30:294,target 30 34:0 reduce 12:291,target 12 36:0,target 36 24:293,target 24 8:0 reduce 39:287,target 31 0:258,target 2 9:294,target 9 36:295,target 36 48:297,target 39 18:292,target 18 21:288 reduce } array set cropsend::rules { 9,l 302 11,l 302 32,l 303 53,l 306 6,l 302 28,l 302 50,l 306 49,l 306 3,l 301 25,l 302 46,l 306 0,l 308 22,l 302 43,l 305 18,l 302 40,l 304 39,l 304 15,l 302 36,l 303 57,l 307 12,l 302 33,l 303 54,l 306 7,l 302 29,l 302 30,l 302 51,l 306 4,l 301 26,l 302 47,l 306 1,l 301 23,l 302 44,l 306 19,l 302 20,l 302 41,l 305 16,l 302 37,l 303 13,l 302 34,l 303 55,l 307 8,l 302 10,l 302 31,l 302 52,l 306 5,l 302 27,l 302 48,l 306 2,l 301 24,l 302 45,l 306 21,l 302 42,l 305 17,l 302 38,l 303 14,l 302 35,l 303 56,l 307 } array set cropsend::rules { 12,dc 1 26,dc 1 3,dc 1 41,dc 1 55,dc 0 18,dc 1 33,dc 1 9,dc 1 47,dc 1 11,dc 1 25,dc 1 2,dc 1 40,dc 1 39,dc 1 54,dc 1 17,dc 1 32,dc 1 8,dc 1 46,dc 1 10,dc 1 24,dc 1 1,dc 1 38,dc 1 53,dc 2 16,dc 1 31,dc 1 7,dc 1 45,dc 1 23,dc 1 0,dc 1 37,dc 1 52,dc 4 15,dc 1 29,dc 1 30,dc 1 6,dc 1 44,dc 0 22,dc 1 36,dc 1 51,dc 3 14,dc 1 28,dc 1 5,dc 1 43,dc 1 57,dc 1 21,dc 1 35,dc 1 50,dc 3 49,dc 2 13,dc 1 27,dc 1 4,dc 1 42,dc 1 56,dc 1 19,dc 1 20,dc 1 34,dc 1 48,dc 2 } array set cropsend::rules { 41,line 156 7,line 118 37,line 149 4,line 114 34,line 146 1,line 111 31,line 142 27,line 138 24,line 135 21,line 132 17,line 128 14,line 125 11,line 122 56,line 185 53,line 180 50,line 173 49,line 171 46,line 164 43,line 158 9,line 120 40,line 153 39,line 152 6,line 117 36,line 148 3,line 113 33,line 145 29,line 140 30,line 141 26,line 137 23,line 134 19,line 130 20,line 131 16,line 127 13,line 124 10,line 121 55,line 184 52,line 179 48,line 168 45,line 163 42,line 157 8,line 119 38,line 150 5,line 116 35,line 147 2,line 112 32,line 144 28,line 139 25,line 136 22,line 133 18,line 129 15,line 126 12,line 123 57,line 186 54,line 181 51,line 176 47,line 166 44,line 161 } array set cropsend::lr1_table { 35 {{35 {0 295 298} 1}} 66,trans {} 36 {{36 {0 295 298} 1}} 85,trans {{295 90} {296 91} {297 92} {305 93}} 37 {{37 {0 295 298} 1}} 38 {{38 {0 295 298} 1}} 40 {{54 0 1}} 39 {{53 0 1} {55 0 0} {56 0 0} {57 0 0} {1 0 0} {2 0 0} {3 0 0} {4 0 0} {5 0 0} {6 0 0} {7 0 0} {8 0 0} {9 0 0} {10 0 0} {11 0 0} {12 0 0} {13 0 0} {14 0 0} {15 0 0} {16 0 0} {17 0 0} {18 0 0} {19 0 0} {20 0 0} {21 0 0} {22 0 0} {23 0 0} {24 0 0} {25 0 0} {26 0 0} {27 0 0} {28 0 0} {29 0 0} {30 0 0} {31 0 0}} 41 {{45 0 1}} 42 {{46 0 1} {48 0 1} {50 0 1} {52 0 1} {39 {0 295 296 297} 0} {40 {0 295 296 297} 0} {32 {295 298} 0} {33 {295 298} 0} {34 {295 298} 0} {35 {295 298} 0} {36 {295 298} 0} {37 {295 298} 0} {38 {295 298} 0}} 43 {{47 0 1} {49 0 1} {51 0 1} {39 {0 295 296 297} 0} {40 {0 295 296 297} 0}} 44 {{0 0 1}} 45 {{5 0 1}} 46 {{6 0 1}} 47 {{7 0 1}} 48 {{8 0 1}} 27,trans {} 49 {{9 0 1}} 50 {{10 0 1}} 51 {{11 0 1}} 46,trans {} 52 {{12 0 1}} 65,trans {} 53 {{13 0 1}} 84,trans {{295 87} {298 88} {304 89}} 54 {{14 0 1}} 55 {{15 0 1}} 56 {{16 0 1}} 57 {{17 0 1}} 58 {{18 0 1}} 59 {{19 0 1}} 60 {{20 0 1}} 61 {{21 0 1}} 62 {{22 0 1}} 63 {{23 0 1}} 64 {{24 0 1}} 65 {{25 0 1}} 26,trans {} 66 {{26 0 1}} 67 {{27 0 1}} 45,trans {} 68 {{28 0 1}} 64,trans {} 69 {{29 0 1}} 70 {{30 0 1}} 83,trans {} 71 {{31 0 1}} 72 {{56 0 1}} 73 {{57 0 1}} 74 {{53 0 2}} 75 {{32 {295 298} 1}} 76 {{33 {295 298} 1}} 77 {{34 {295 298} 1}} 78 {{35 {295 298} 1}} 79 {{36 {295 298} 1}} 80 {{37 {295 298} 1}} 81 {{38 {295 298} 1}} 82 {{39 {0 295 296 297} 1}} 25,trans {} 83 {{40 {0 295 296 297} 1}} 84 {{52 0 2} {39 {295 296 297} 0} {40 {295 296 297} 0}} 44,trans {} 85 {{48 0 2} {50 0 2} {41 0 0} {42 0 0} {43 0 0}} 63,trans {} 86 {{49 0 2} {51 0 2} {41 0 0} {42 0 0} {43 0 0}} 82,trans {} 87 {{39 {295 296 297} 1}} 0 {{0 0 0} {44 0 0} {45 0 0} {46 0 0} {47 0 0} {48 0 0} {49 0 0} {50 0 0} {51 0 0} {52 0 0} {53 0 0} {54 0 0} {1 0 0} {2 0 0} {3 0 0} {4 0 0} {5 {0 288 289 290 291 292 293 294 295 298} 0} {6 {0 288 289 290 291 292 293 294 295 298} 0} {7 {0 288 289 290 291 292 293 294 295 298} 0} {8 {0 288 289 290 291 292 293 294 295 298} 0} {9 {0 288 289 290 291 292 293 294 295 298} 0} {10 {0 288 289 290 291 292 293 294 295 298} 0} {11 {0 288 289 290 291 292 293 294 295 298} 0} {12 {0 288 289 290 291 292 293 294 295 298} 0} {13 {0 288 289 290 291 292 293 294 295 298} 0} {14 {0 288 289 290 291 292 293 294 295 298} 0} {15 {0 288 289 290 291 292 293 294 295 298} 0} {16 {0 288 289 290 291 292 293 294 295 298} 0} {17 {0 288 289 290 291 292 293 294 295 298} 0} {18 {0 288 289 290 291 292 293 294 295 298} 0} {19 {0 288 289 290 291 292 293 294 295 298} 0} {20 {0 288 289 290 291 292 293 294 295 298} 0} {21 {0 288 289 290 291 292 293 294 295 298} 0} {22 {0 288 289 290 291 292 293 294 295 298} 0} {23 {0 288 289 290 291 292 293 294 295 298} 0} {24 {0 288 289 290 291 292 293 294 295 298} 0} {25 {0 288 289 290 291 292 293 294 295 298} 0} {26 {0 288 289 290 291 292 293 294 295 298} 0} {27 {0 288 289 290 291 292 293 294 295 298} 0} {28 {0 288 289 290 291 292 293 294 295 298} 0} {29 {0 288 289 290 291 292 293 294 295 298} 0} {30 {0 288 289 290 291 292 293 294 295 298} 0} {31 {0 288 289 290 291 292 293 294 295 298} 0} {32 {0 295 298} 0} {33 {0 295 298} 0} {34 {0 295 298} 0} {35 {0 295 298} 0} {36 {0 295 298} 0} {37 {0 295 298} 0} {38 {0 295 298} 0}} 88 {{40 {295 296 297} 1}} 1 {{1 0 1}} 89 {{52 0 3} {41 0 0} {42 0 0} {43 0 0}} 90 {{41 0 1}} 2 {{2 0 1}} 91 {{42 0 1}} 3 {{3 0 1}} 92 {{43 0 1}} 4 {{4 0 1}} 93 {{50 0 3}} 5 {{5 {0 288 289 290 291 292 293 294 295 298} 1}} 94 {{51 0 3}} 6 {{6 {0 288 289 290 291 292 293 294 295 298} 1}} 95 {{52 0 4}} 7 {{7 {0 288 289 290 291 292 293 294 295 298} 1}} 8 {{8 {0 288 289 290 291 292 293 294 295 298} 1}} 9 {{9 {0 288 289 290 291 292 293 294 295 298} 1}} 24,trans {} 43,trans {{295 82} {298 83} {304 86}} 62,trans {} 81,trans {} 23,trans {} 42,trans {{288 75} {289 76} {290 77} {291 78} {292 79} {293 80} {294 81} {295 82} {298 83} {303 84} {304 85}} 61,trans {} 79,trans {} 80,trans {} 9,trans {} 22,trans {} 41,trans {} 59,trans {} 60,trans {} 78,trans {} 8,trans {} 21,trans {} 39,trans {{257 1} {258 2} {259 3} {260 4} {261 45} {262 46} {263 47} {264 48} {265 49} {266 50} {267 51} {268 52} {269 53} {270 54} {271 55} {272 56} {273 57} {274 58} {275 59} {276 60} {277 61} {278 62} {279 63} {280 64} {281 65} {282 66} {283 67} {284 68} {285 69} {286 70} {287 71} {301 72} {302 73} {307 74}} 40,trans {} 58,trans {} 77,trans {} 7,trans {} 19,trans {} 20,trans {} 38,trans {} 57,trans {} 76,trans {} 6,trans {} 95,trans {} 18,trans {} 37,trans {} 56,trans {} 75,trans {} 5,trans {} 94,trans {} 17,trans {} 36,trans {} 55,trans {} 74,trans {} 4,trans {} 93,trans {} 16,trans {} 35,trans {} 54,trans {} 73,trans {} 3,trans {} 92,trans {} 15,trans {} 34,trans {} 53,trans {} 72,trans {} 2,trans {} 91,trans {} 14,trans {} 33,trans {} 52,trans {} 71,trans {} 1,trans {} 89,trans {{295 90} {296 91} {297 92} {305 95}} 90,trans {} 13,trans {} 32,trans {} 51,trans {} 69,trans {} 70,trans {} 0,trans {{257 1} {258 2} {259 3} {260 4} {261 5} {262 6} {263 7} {264 8} {265 9} {266 10} {267 11} {268 12} {269 13} {270 14} {271 15} {272 16} {273 17} {274 18} {275 19} {276 20} {277 21} {278 22} {279 23} {280 24} {281 25} {282 26} {283 27} {284 28} {285 29} {286 30} {287 31} {288 32} {289 33} {290 34} {291 35} {292 36} {293 37} {294 38} {299 39} {300 40} {301 41} {302 42} {303 43} {306 44}} 88,trans {} 12,trans {} 31,trans {} 49,trans {} 50,trans {} 68,trans {} 87,trans {} 10 {{10 {0 288 289 290 291 292 293 294 295 298} 1}} 11 {{11 {0 288 289 290 291 292 293 294 295 298} 1}} 12 {{12 {0 288 289 290 291 292 293 294 295 298} 1}} 13 {{13 {0 288 289 290 291 292 293 294 295 298} 1}} 14 {{14 {0 288 289 290 291 292 293 294 295 298} 1}} 15 {{15 {0 288 289 290 291 292 293 294 295 298} 1}} 11,trans {} 16 {{16 {0 288 289 290 291 292 293 294 295 298} 1}} 29,trans {} 30,trans {} 17 {{17 {0 288 289 290 291 292 293 294 295 298} 1}} 48,trans {} 18 {{18 {0 288 289 290 291 292 293 294 295 298} 1}} 67,trans {} 20 {{20 {0 288 289 290 291 292 293 294 295 298} 1}} 19 {{19 {0 288 289 290 291 292 293 294 295 298} 1}} 86,trans {{295 90} {296 91} {297 92} {305 94}} 21 {{21 {0 288 289 290 291 292 293 294 295 298} 1}} 22 {{22 {0 288 289 290 291 292 293 294 295 298} 1}} 23 {{23 {0 288 289 290 291 292 293 294 295 298} 1}} 24 {{24 {0 288 289 290 291 292 293 294 295 298} 1}} 25 {{25 {0 288 289 290 291 292 293 294 295 298} 1}} 26 {{26 {0 288 289 290 291 292 293 294 295 298} 1}} 27 {{27 {0 288 289 290 291 292 293 294 295 298} 1}} 28 {{28 {0 288 289 290 291 292 293 294 295 298} 1}} 30 {{30 {0 288 289 290 291 292 293 294 295 298} 1}} 29 {{29 {0 288 289 290 291 292 293 294 295 298} 1}} 31 {{31 {0 288 289 290 291 292 293 294 295 298} 1}} 32 {{32 {0 295 298} 1}} 10,trans {} 33 {{33 {0 295 298} 1}} 28,trans {} 34 {{34 {0 295 298} 1}} 47,trans {} } array set cropsend::token_id_table { 286 WCSY_ 286,t 0 287 WCSZ_ 292,line 44 302,line 115 288 FK4_ 265,title WCSD 289 B1950_ 290 FK5_ 300 LOCK_ 284,title WCSW 291 J2000_ 301 coordsys 292 ICRS_ 302 wcssys 288,line 40 293 GALACTIC_ 303 skyframe 304 skyformat 294 ECLIPTIC_ 305 rformat 295 DEGREES_ 306 cropsend 296 ARCMIN_ 307 3d 262,t 0 297 ARCSEC_ 308 start' 285,line 36 298 SEXAGESIMAL_ 299 3D_ 283,t 0 282,line 33 264,title WCSC 283,title WCSV 278,line 29 error,line 109 258,t 0 275,line 26 279,t 0 280,t 0 272,line 23 263,title WCSB 282,title WCSU 268,line 19 276,t 0 265,line 16 307,t 1 297,t 0 262,line 13 262,title WCSA 0 {$} 0,t 0 281,title WCST 299,title 3D error,t 0 258,line 8 273,t 0 304,t 1 294,t 0 261,title WCS 279,title WCSR 280,title WCSS 308,title {} 269,t 0 270,t 0 298,title SEXAGESIMAL 291,t 0 301,t 1 307,line 183 266,t 0 260,title DETECTOR 259,title AMPLIFIER 297,line 50 278,title WCSQ 307,title {} 297,title ARCSEC 287,t 0 304,line 151 294,line 46 291,line 43 error,title {} 301,line 110 263,t 0 258,title PHYSICAL 287,line 38 277,title WCSP 284,t 0 306,title {} 296,title ARCMIN 284,line 35 281,line 32 260,t 0 259,t 0 281,t 0 257,title IMAGE 277,line 28 276,title WCSO 305,title {} 295,title DEGREES 274,line 25 271,line 22 277,t 0 308,t 1 267,line 18 298,t 0 275,title WCSN 304,title {} 294,title ECLIPTIC 264,line 15 261,line 12 274,t 0 305,t 1 295,t 0 257,line 7 274,title WCSM 293,title GALACTIC 303,title {} 271,t 0 error error 292,t 0 302,t 1 273,title WCSL 292,title ICRS 302,title {} 267,t 0 299,line 56 288,t 0 306,line 160 296,line 49 272,title WCSK 303,line 143 291,title J2000 293,line 45 301,title {} 264,t 0 285,t 0 289,line 41 290,line 42 300,line 57 286,line 37 271,title WCSJ 261,t 0 283,line 34 289,title B1950 290,title FK5 300,title LOCK 282,t 0 279,line 30 280,line 31 276,line 27 257,t 0 269,title WCSH 270,title WCSI 273,line 24 288,title FK4 278,t 0 299,t 0 269,line 20 270,line 21 266,line 17 268,title WCSG 275,t 0 263,line 14 287,title WCSZ 306,t 1 296,t 0 260,line 10 259,line 9 272,t 0 267,title WCSF 303,t 1 257 IMAGE_ 286,title WCSY 293,t 0 258 PHYSICAL_ 260 DETECTOR_ 259 AMPLIFIER_ 261 WCS_ 262 WCSA_ 263 WCSB_ 264 WCSC_ 265 WCSD_ 266 WCSE_ 267 WCSF_ 268,t 0 268 WCSG_ 269 WCSH_ 270 WCSI_ 271 WCSJ_ 272 WCSK_ 289,t 0 290,t 0 300,t 0 266,title WCSE 273 WCSL_ 274 WCSM_ 285,title WCSX 275 WCSN_ 308,line 187 276 WCSO_ 298,line 52 277 WCSP_ 278 WCSQ_ 279 WCSR_ 280 WCSS_ 281 WCST_ 305,line 155 282 WCSU_ 295,line 48 265,t 0 283 WCSV_ 284 WCSW_ 285 WCSX_ } proc cropsend::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 _ image } 2 { set _ physical } 3 { set _ amplifier } 4 { set _ detector } 5 { set _ wcs } 6 { set _ wcsa } 7 { set _ wcsb } 8 { set _ wcsc } 9 { set _ wcsd } 10 { set _ wcse } 11 { set _ wcsf } 12 { set _ wcsg } 13 { set _ wcsh } 14 { set _ wcsi } 15 { set _ wcsj } 16 { set _ wcsk } 17 { set _ wcsl } 18 { set _ wcsm } 19 { set _ wcsn } 20 { set _ wcso } 21 { set _ wcsp } 22 { set _ wcsq } 23 { set _ wcsr } 24 { set _ wcss } 25 { set _ wcst } 26 { set _ wcsu } 27 { set _ wcsv } 28 { set _ wcsw } 29 { set _ wcsx } 30 { set _ wcsy } 31 { set _ wcsz } 32 { set _ fk4 } 33 { set _ fk4 } 34 { set _ fk5 } 35 { set _ fk5 } 36 { set _ icrs } 37 { set _ galactic } 38 { set _ ecliptic } 39 { set _ degrees } 40 { set _ sexagesimal } 41 { set _ degrees } 42 { set _ arcmin } 43 { set _ arcsec } 44 { ProcessSendCmdCurrent "get crop center physical fk5 degrees physical degrees" } 45 { ProcessSendCmdCurrent "get crop center $1 fk5 degrees $1 degrees" } 46 { ProcessSendCmdCurrent "get crop center $1 fk5 degrees $1 degrees" } 47 { ProcessSendCmdCurrent "get crop center wcs $1 degrees wcs degrees" } 48 { ProcessSendCmdCurrent "get crop center $1 fk5 $2 $1 degrees" } 49 { ProcessSendCmdCurrent "get crop center wcs $1 $2 wcs degrees" } 50 { ProcessSendCmdCurrent "get crop center $1 fk5 $2 $1 $3" } 51 { ProcessSendCmdCurrent "get crop center wcs $1 $2 wcs $3" } 52 { ProcessSendCmdCurrent "get crop center $1 $2 $3 $1 $4" } 54 { ProcessSendCmdGet crop lock } 55 { ProcessSendCmdCurrent "get crop 3d image" } 56 { ProcessSendCmdCurrent "get crop 3d $1" } 57 { ProcessSendCmdCurrent "get crop 3d $1" } } 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 cropsend::yyerror {msg} { variable yycnt variable yy_current_buffer variable index_ ParserError $msg $yycnt $yy_current_buffer $index_ }