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 sia { variable yylval {} variable table variable rules variable token {} variable yycnt 0 variable yyerr 0 variable save_state 0 namespace export yylex } proc sia::YYABORT {} { return -code return 1 } proc sia::YYACCEPT {} { return -code return 0 } proc sia::YYERROR {} { variable yyerr set yyerr 1 } proc sia::yyclearin {} { variable token variable yycnt set token {} incr yycnt -1 } proc sia::yyerror {s} { puts stderr $s } proc sia::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 sia::unsetupvalues {numsyms} { for {set i 1} {$i <= $numsyms} {incr i} { upvar 1 $i y unset y } } array set sia::table { 1:311,target 70 51:298 reduce 13:301,target 48 9:300 reduce 48:0 reduce 9:301 reduce 9:302 reduce 21:298 shift 29:268,target 72 9:303 reduce 55:298,target 33 9:304 reduce 95:0,target 39 9:305 reduce 91:0 reduce 9:306 reduce 9:307 reduce 9:298 reduce 9:308 reduce 64:0,target 4 9:299 reduce 9:309 reduce 9:310 reduce 37:295,target 34 9:311 reduce 9:312 reduce 7:312,target 76 9:313 reduce 9:314 reduce 33:0,target 44 35:286,target 41 5:303,target 74 32:304,target 20 2:311,target 71 0:302,target 45 11:298,target 43 86:298 reduce 63:0 reduce 56:298,target 34 97:333,target 100 56:298 reduce 26:295 shift 8:312,target 77 26:296 shift 92:0,target 55 6:303,target 75 61:0,target 1 3:311,target 72 30:0,target 65 0:318,target 4 35:0 reduce 1:302,target 70 12:308,target 24 57:298,target 62 77:0 reduce 29:259,target 63 29:260,target 64 9:0 reduce 9:312,target 78 26:334 goto 92:298 reduce 7:303,target 76 32:300 shift 32:301 shift 32:302 shift 62:298 reduce 32:303 shift 4:311,target 73 32:304 shift 32:305 shift 0:335,target 10 32:306 shift 32:307 shift 32:308 shift 32:299 shift 32:309 shift 32:310 shift 2:302,target 71 13:298,target 47 13:308,target 48 32:311 shift 88:0,target 64 58:298,target 35 32:312 shift 32:313 shift 90:287,target 53 29:276,target 80 32:314 shift 50:0 reduce 57:0,target 62 92:0 reduce 8:303,target 77 97:291 shift 97:292 shift 5:311,target 74 97:293 shift 32:312,target 28 3:302,target 72 14:298,target 33 60:298,target 63 59:298,target 36 22:0 reduce 32:340 goto 91:287,target 53 0:299,target 45 0:309,target 45 0:310,target 45 67:298 reduce 12:300,target 16 64:0 reduce 27:284,target 50 37:295 shift 37:296 shift 85:0,target 25 20:326,target 41 9:303,target 78 54:0,target 32 6:311,target 75 97:333 goto 34:285,target 40 90:331,target 98 4:302,target 73 15:298,target 50 61:298,target 1 1:310,target 70 1:309,target 70 1:299,target 70 13:300,target 48 37:334 goto 29:267,target 71 78:0 reduce 20:343,target 45 73:298 reduce 7:311,target 76 13:300 reduce 13:301 reduce 13:302 reduce 49:296,target 35 13:303 reduce 35:285,target 41 43:298 reduce 8:0,target 77 13:304 reduce 91:331,target 99 13:305 reduce 82:0,target 22 2:300 reduce 5:302,target 74 13:306 reduce 16:298,target 52 62:298,target 2 2:301 reduce 13:307 reduce 32:303,target 19 2:302 reduce 13:298 reduce 13:308 reduce 2:303 reduce 13:299 reduce 13:309 reduce 13:310 reduce 2:310,target 71 2:309,target 71 2:304 reduce 2:299,target 71 13:311 reduce 51:0,target 29 2:305 reduce 13:312 reduce 2:306 reduce 13:313 reduce 2:307 reduce 13:314 reduce 2:308 reduce 2:298 reduce 19:0,target 54 2:310 reduce 2:309 reduce 2:299 reduce 51:0 reduce 2:311 reduce 0:301,target 45 2:312 reduce 2:313 reduce 2:314 reduce 93:0 reduce 18:334,target 37 8:311,target 77 6:302,target 75 17:298,target 51 63:298,target 3 78:298 reduce 3:310,target 72 3:309,target 72 3:299,target 72 13:339 goto 0:317,target 3 48:298 reduce 1:301,target 70 5:0,target 74 12:307,target 23 18:295 shift 78:0,target 18 7:300 reduce 18:296 shift 65:0 reduce 7:301 reduce 18:297 shift 7:302 reduce 7:303 reduce 29:258,target 62 7:304 reduce 7:305 reduce 7:306 reduce 7:307 reduce 9:311,target 78 7:298 reduce 7:308 reduce 16:0,target 52 7:299 reduce 7:309 reduce 7:310 reduce 7:311 reduce 7:312 reduce 7:313 reduce 7:302,target 76 7:314 reduce 64:298,target 4 34:293,target 40 4:299,target 73 4:309,target 73 4:310,target 73 2:301,target 71 13:307,target 48 18:334 goto 90:286,target 52 29:275,target 79 84:298 reduce 80:0 reduce 79:0 reduce 18:341 goto 54:298 reduce 2:0,target 71 75:0,target 15 8:302,target 77 19:298,target 54 65:298,target 5 24:298 reduce 29:257 shift 35:293,target 41 29:258 shift 29:259 shift 29:260 shift 5:299,target 74 5:309,target 74 5:310,target 74 29:261 shift 29:262 shift 32:311,target 27 29:263 shift 13:0,target 47 29:264 shift 29:265 shift 10:0 accept 29:266 shift 3:301,target 72 29:267 shift 29:268 shift 29:269 shift 29:270 shift 91:286,target 52 29:271 shift 0:308,target 45 29:272 shift 90:284 shift 29:273 shift 52:0 reduce 90:285 shift 29:274 shift 90:286 shift 29:275 shift 90:287 shift 29:276 shift 90:288 shift 29:277 shift 90:290 shift 90:289 shift 29:278 shift 94:0 reduce 29:279 shift 29:280 shift 29:281 shift 20:325,target 40 29:282 shift 29:283 shift 9:302,target 78 21:298,target 46 66:298,target 6 90:298 reduce 89:298 reduce 6:299,target 75 6:309,target 75 6:310,target 75 34:284,target 40 60:298 reduce 59:298 reduce 4:301,target 73 72:0,target 12 24:0 reduce 30:298 reduce 1:308,target 70 1:298,target 70 23:334,target 47 66:0 reduce 10:0,target 0 29:266,target 70 90:331 goto 22:298,target 58 67:298,target 7 7:299,target 76 7:309,target 76 7:310,target 76 49:295,target 34 29:330 goto 35:284,target 41 0:342,target 13 5:301,target 74 32:302,target 18 35:284 reduce 35:285 reduce 2:308,target 71 2:298,target 71 35:286 reduce 95:298 reduce 35:287 reduce 35:288 reduce 29:283,target 87 35:289 reduce 35:290 reduce 38:0 reduce 35:291 reduce 99:0,target 67 35:292 reduce 65:298 reduce 0:300,target 45 35:293 reduce 35:295 reduce 81:0 reduce 68:0,target 8 35:296 reduce 35:298 reduce 68:298,target 8 8:299,target 77 8:309,target 77 8:310,target 77 6:301,target 75 3:308,target 72 3:298,target 72 11:0 reduce 0:316,target 2 1:300,target 70 12:306,target 22 53:0 reduce 24:298,target 59 29:257,target 61 70:298,target 10 69:298,target 9 95:0 reduce 9:299,target 78 9:309,target 78 9:310,target 78 96:0,target 60 71:298 reduce 65:0,target 5 7:301,target 76 18:297,target 36 34:292,target 40 41:298 reduce 4:308,target 73 4:298,target 73 34:0,target 40 0:300 reduce 0:301 reduce 0:302 reduce 11:298 reduce 26:334,target 49 0:303 reduce 0:304 reduce 2:300,target 71 0:305 reduce 13:306,target 48 0:306 reduce 28:291,target 58 0:307 reduce 90:285,target 51 0:308 reduce 29:274,target 78 0:299 reduce 0:309 reduce 0:310 reduce 67:0 reduce 0:311 reduce 25:298,target 48 71:298,target 11 0:312 reduce 0:313 reduce 0:314 reduce 0:315 shift 0:316 shift 0:317 shift 0:318 shift 0:320 shift 0:319 shift 0:321 shift 0:322 shift 8:301,target 77 0:323 shift 35:292,target 41 5:298,target 74 5:308,target 74 32:299,target 15 32:309,target 25 32:310,target 26 12:340,target 31 11:336 goto 93:0,target 37 76:298 reduce 3:300,target 72 62:0,target 2 0:335 goto 91:285,target 51 0:337 goto 0:307,target 45 46:298 reduce 0:338 goto 72:298,target 12 31:0,target 46 5:300 reduce 0:342 goto 5:301 reduce 82:0 reduce 5:302 reduce 16:298 reduce 5:303 reduce 5:304 reduce 18:341,target 38 5:305 reduce 5:306 reduce 20:324,target 39 5:307 reduce 5:298 reduce 5:308 reduce 9:301,target 78 5:299 reduce 5:309 reduce 5:310 reduce 5:311 reduce 5:312 reduce 5:313 reduce 6:298,target 75 6:308,target 75 5:314 reduce 13:339,target 32 4:300,target 73 1:307,target 70 12:314,target 30 73:298,target 13 54:0 reduce 29:265,target 69 90:0,target 68 89:0,target 49 82:298 reduce 96:0 reduce 58:0,target 35 52:298 reduce 7:298,target 76 7:308,target 76 22:298 reduce 5:300,target 74 32:301,target 17 2:307,target 71 13:314,target 48 74:298,target 14 29:282,target 86 68:0 reduce 1:0 reduce 8:298,target 77 8:308,target 77 27:284 shift 27:285 shift 86:0,target 26 27:286 shift 87:298 reduce 27:287 shift 27:288 shift 6:300,target 75 27:289 shift 27:290 shift 55:0,target 33 57:298 reduce 3:307,target 72 24:0,target 59 30:298,target 65 75:298,target 15 0:315,target 1 12:305,target 21 27:289,target 55 27:290,target 56 83:0 reduce 9:298,target 78 9:308,target 78 7:300,target 76 18:296,target 35 34:291,target 40 27:331 goto 4:307,target 73 31:298,target 46 76:298,target 16 9:0,target 78 13:0 reduce 83:0,target 23 93:298 reduce 13:305,target 48 100:0 reduce 90:284,target 50 55:0 reduce 29:273,target 77 52:0,target 30 63:298 reduce 8:300,target 77 35:291,target 41 5:307,target 74 32:308,target 24 77:298,target 17 47:293,target 95 91:284,target 50 0:306,target 45 70:0 reduce 69:0 reduce 6:0,target 75 2:0 reduce 80:0,target 20 79:0,target 19 98:298 reduce 9:300,target 78 48:0,target 56 68:298 reduce 6:307,target 75 17:0,target 51 78:298,target 18 38:298 reduce 0:323,target 9 1:306,target 70 12:313,target 29 29:264,target 68 84:0 reduce 7:307,target 76 34:298,target 40 80:298,target 20 79:298,target 19 3:0,target 72 76:0,target 16 32:300,target 16 100:298 reduce 74:298 reduce 2:306,target 71 13:313,target 48 29:281,target 85 56:0 reduce 44:298 reduce 3:300 reduce 3:301 reduce 3:302 reduce 14:298 shift 98:0 reduce 3:303 reduce 23:296,target 35 3:304 reduce 3:305 reduce 3:306 reduce 3:307 reduce 8:307,target 77 3:308 reduce 3:298 reduce 35:298,target 41 81:298,target 21 3:310 reduce 3:309 reduce 3:299 reduce 3:311 reduce 3:312 reduce 3:313 reduce 3:314 reduce 100:0,target 61 3:306,target 72 0:314,target 45 73:0,target 13 12:304,target 20 27:288,target 54 37:334,target 91 71:0 reduce 80:298 reduce 79:298 reduce 3:0 reduce 11:0,target 42 49:295 shift 9:307,target 78 49:296 shift 82:298,target 22 50:298 reduce 97:293,target 95 8:300 reduce 8:301 reduce 18:295,target 34 8:302 reduce 19:298 reduce 34:289,target 40 34:290,target 40 8:303 reduce 8:304 reduce 4:306,target 73 8:305 reduce 8:306 reduce 8:307 reduce 8:298 reduce 8:308 reduce 1:314,target 70 8:299 reduce 8:309 reduce 8:310 reduce 8:311 reduce 8:312 reduce 13:304,target 48 8:313 reduce 8:314 reduce 29:272,target 76 20:324 shift 20:325 shift 85:0 reduce 20:326 shift 20:327 shift 20:328 shift 49:334 goto 20:329 shift 83:298,target 23 70:0,target 10 69:0,target 9 35:289,target 41 35:290,target 41 38:0,target 53 85:298 reduce 5:306,target 74 32:307,target 23 47:292,target 94 20:343 goto 55:298 reduce 2:314,target 71 15:0 reduce 25:298 shift 0:305,target 45 57:0 reduce 26:296,target 35 38:298,target 53 99:0 reduce 84:298,target 24 91:284 shift 91:285 shift 91:286 shift 6:306,target 75 91:287 shift 91:288 shift 91:290 shift 91:289 shift 28:332,target 60 3:314,target 72 66:0,target 6 0:322,target 8 30:0 reduce 35:0,target 41 1:305,target 70 12:312,target 28 91:298 reduce 72:0 reduce 29:263,target 67 61:298 reduce 39:298,target 79 40:298,target 80 85:298,target 25 4:0 reduce 31:298 reduce 7:306,target 76 4:314,target 73 91:331 goto 0:338,target 12 2:305,target 71 13:312,target 48 100:298,target 61 94:0,target 38 29:279,target 83 29:280,target 84 41:298,target 81 86:298,target 26 63:0,target 3 86:0 reduce 23:295,target 34 96:298 reduce 8:306,target 77 66:298 reduce 5:314,target 74 36:297 shift 3:305,target 72 16:0 reduce 0:313,target 45 12:303,target 19 42:298,target 82 87:298,target 27 58:0 reduce 27:287,target 53 20:329,target 44 91:0,target 66 9:306,target 78 36:297,target 90 97:292,target 94 60:0,target 63 59:0,target 36 6:314,target 75 34:288,target 40 4:305,target 73 11:336,target 14 1:313,target 70 72:298 reduce 31:0 reduce 13:303,target 48 43:298,target 83 88:298,target 64 12:300 shift 12:301 shift 12:302 shift 29:271,target 75 12:303 shift 42:298 reduce 73:0 reduce 12:304 shift 12:305 shift 1:300 reduce 12:306 shift 1:301 reduce 5:0 reduce 12:307 shift 1:302 reduce 12:308 shift 1:303 reduce 12:299 shift 12:309 shift 12:310 shift 1:304 reduce 12:311 shift 1:305 reduce 12:312 shift 1:306 reduce 7:314,target 76 12:313 shift 1:307 reduce 12:314 shift 1:308 reduce 1:298 reduce 1:310 reduce 1:309 reduce 1:299 reduce 35:288,target 41 1:311 reduce 1:312 reduce 1:313 reduce 5:305,target 74 1:314 reduce 32:306,target 22 87:0,target 27 47:291,target 93 27:331,target 57 2:313,target 71 56:0,target 34 44:298,target 84 90:298,target 68 89:298,target 49 0:304,target 45 26:295,target 34 87:0 reduce 47:291 shift 47:292 shift 77:298 reduce 47:293 shift 12:340 goto 8:314,target 77 6:300 reduce 6:305,target 75 6:301 reduce 6:302 reduce 17:298 reduce 6:303 reduce 3:313,target 72 6:304 reduce 6:305 reduce 6:306 reduce 45:298,target 92 91:298,target 66 6:307 reduce 17:0 reduce 0:321,target 7 6:298 reduce 6:308 reduce 6:299 reduce 6:309 reduce 6:310 reduce 1:304,target 70 6:311 reduce 12:311,target 27 6:312 reduce 6:313 reduce 60:0 reduce 59:0 reduce 6:314 reduce 84:0,target 24 29:262,target 66 53:0,target 31 9:314,target 78 47:333 goto 22:0,target 58 32:340,target 89 7:305,target 76 34:296,target 40 83:298 reduce 4:313,target 73 0:337,target 11 46:298,target 57 92:298,target 55 53:298 reduce 2:304,target 71 13:311,target 48 23:295 shift 23:296 shift 90:290,target 56 90:289,target 55 29:278,target 82 74:0 reduce 6:0 reduce 7:0,target 76 8:305,target 77 81:0,target 21 35:296,target 41 5:313,target 74 32:314,target 30 50:0,target 28 93:298,target 37 3:304,target 72 23:334 goto 91:290,target 56 91:289,target 55 0:312,target 45 46:0 reduce 88:298 reduce 12:302,target 18 27:286,target 52 28:291 shift 88:0 reduce 58:298 reduce 28:294 shift 20:328,target 43 49:334,target 97 9:305,target 78 97:291,target 93 6:313,target 75 48:298,target 56 94:298,target 38 34:287,target 40 4:304,target 73 4:0,target 73 77:0,target 17 1:312,target 70 13:302,target 48 46:0,target 57 61:0 reduce 29:269,target 73 29:270,target 74 15:0,target 50 28:332 goto 34:284 reduce 34:285 reduce 37:296,target 35 34:286 reduce 94:298 reduce 34:287 reduce 7:313,target 76 34:288 reduce 34:289 reduce 34:290 reduce 34:291 reduce 50:298,target 28 95:298,target 39 34:292 reduce 35:287,target 41 64:298 reduce 34:293 reduce 5:304,target 74 34:295 reduce 32:305,target 21 34:296 reduce 34:298 reduce 2:312,target 71 33:0 reduce 0:303,target 45 75:0 reduce 1:0,target 70 74:0,target 14 7:0 reduce 8:313,target 77 51:298,target 29 96:298,target 60 6:304,target 75 3:312,target 72 99:298 reduce 0:320,target 6 0:319,target 5 70:298 reduce 69:298 reduce 1:303,target 70 12:299,target 15 12:309,target 25 12:310,target 26 29:261,target 65 39:298 reduce 40:298 reduce 90:0 reduce 89:0 reduce 9:313,target 78 52:298,target 30 47:333,target 96 7:304,target 76 34:295,target 40 71:0,target 11 29:330,target 88 4:312,target 73 19:0 reduce 2:303,target 71 13:299,target 48 13:309,target 48 13:310,target 48 28:294,target 59 90:288,target 54 29:277,target 81 62:0 reduce 53:298,target 31 98:298,target 69 75:298 reduce 8:304,target 77 35:295,target 41 45:298 shift 5:312,target 74 4:300 reduce 32:313,target 29 4:301 reduce 4:302 reduce 15:298 reduce 4:303 reduce 4:304 reduce 98:0,target 69 4:305 reduce 3:303,target 72 4:306 reduce 4:307 reduce 91:288,target 54 4:308 reduce 4:298 reduce 34:0 reduce 67:0,target 7 4:309 reduce 4:299 reduce 0:311,target 45 4:310 reduce 4:311 reduce 4:312 reduce 12:301,target 17 4:313 reduce 27:285,target 51 4:314 reduce 76:0 reduce 54:298,target 32 99:298,target 67 8:0 reduce 20:327,target 42 9:304,target 78 6:312,target 75 34:286,target 40 81:298 reduce 4:303,target 73 } array set sia::rules { 9,l 330 11,l 330 32,l 331 53,l 340 74,l 342 6,l 330 28,l 331 50,l 340 49,l 337 71,l 342 3,l 330 25,l 330 46,l 337 67,l 341 0,l 344 22,l 330 43,l 336 64,l 340 18,l 330 40,l 334 39,l 333 61,l 340 82,l 343 15,l 330 36,l 332 57,l 340 78,l 342 12,l 330 33,l 331 54,l 340 75,l 342 7,l 330 29,l 331 30,l 331 51,l 340 72,l 342 4,l 330 26,l 330 47,l 337 68,l 341 1,l 330 23,l 330 44,l 335 65,l 340 19,l 330 20,l 330 41,l 334 62,l 340 83,l 343 16,l 330 37,l 333 58,l 340 80,l 343 79,l 343 13,l 330 34,l 331 55,l 340 76,l 342 8,l 330 10,l 330 31,l 331 52,l 340 73,l 342 5,l 330 27,l 330 48,l 339 70,l 342 69,l 341 2,l 330 24,l 330 45,l 338 66,l 341 21,l 330 42,l 335 63,l 340 84,l 343 17,l 330 38,l 333 60,l 340 59,l 340 81,l 343 14,l 330 35,l 332 56,l 340 77,l 342 } array set sia::rules { 63,dc 2 12,dc 1 77,dc 1 26,dc 1 3,dc 1 41,dc 1 55,dc 3 70,dc 1 69,dc 3 18,dc 1 84,dc 1 33,dc 1 9,dc 1 47,dc 1 62,dc 2 11,dc 1 76,dc 1 25,dc 1 2,dc 1 40,dc 1 39,dc 1 54,dc 1 68,dc 2 17,dc 1 83,dc 1 32,dc 1 8,dc 1 46,dc 2 61,dc 4 10,dc 1 75,dc 1 24,dc 1 1,dc 1 38,dc 1 53,dc 2 67,dc 3 16,dc 1 82,dc 1 31,dc 1 7,dc 1 45,dc 0 60,dc 3 59,dc 1 74,dc 1 23,dc 1 0,dc 1 37,dc 1 52,dc 1 66,dc 2 15,dc 1 81,dc 1 29,dc 1 30,dc 1 6,dc 1 44,dc 3 58,dc 1 73,dc 1 22,dc 1 36,dc 1 51,dc 1 65,dc 1 14,dc 1 80,dc 1 79,dc 1 28,dc 1 5,dc 1 43,dc 0 57,dc 2 72,dc 1 21,dc 1 35,dc 1 50,dc 1 49,dc 3 64,dc 2 13,dc 1 78,dc 1 27,dc 1 4,dc 1 42,dc 1 56,dc 2 71,dc 1 19,dc 1 20,dc 1 34,dc 1 48,dc 0 } array set sia::rules { 41,line 187 7,line 148 37,line 182 4,line 145 34,line 176 1,line 142 31,line 173 27,line 168 83,line 239 24,line 165 80,line 236 79,line 235 21,line 162 76,line 230 17,line 158 73,line 227 43,e 1 14,line 155 70,line 224 69,line 221 11,line 152 66,line 218 63,line 213 60,line 210 59,line 208 56,line 205 53,line 202 50,line 199 49,line 196 46,line 194 43,line 190 9,line 150 40,line 186 39,line 184 6,line 147 36,line 179 3,line 144 33,line 175 29,line 171 30,line 172 26,line 167 82,line 238 23,line 164 78,line 232 19,line 160 20,line 161 75,line 229 16,line 157 72,line 226 13,line 154 68,line 220 10,line 151 65,line 215 62,line 212 58,line 207 55,line 204 52,line 201 48,line 195 45,line 193 42,line 190 8,line 149 38,line 183 5,line 146 35,line 178 2,line 143 32,line 174 48,e 1 28,line 170 84,line 240 25,line 166 81,line 237 22,line 163 77,line 231 45,e 0 18,line 159 74,line 228 15,line 156 71,line 225 12,line 153 67,line 219 64,line 214 61,line 211 57,line 206 54,line 203 51,line 200 47,line 195 44,line 191 } array set sia::lr1_table { 35 {{41 {295 296} 1}} 66,trans {} 36 {{68 {0 298} 1} {69 {0 298} 1}} 85,trans {} 37 {{66 {0 298} 1} {67 {0 298} 1} {40 {0 284 285 286 287 288 289 290 298} 0} {41 {0 284 285 286 287 288 289 290 298} 0}} 38 {{53 {0 298} 2}} 39 {{79 298 1}} 40 {{80 298 1}} 41 {{81 298 1}} 42 {{82 298 1}} 43 {{83 298 1}} 44 {{84 298 1}} 45 {{55 {0 298} 2}} 46 {{57 {0 298} 2}} 47 {{40 {291 292 293} 1}} 48 {{41 {291 292 293} 1}} 49 {{60 {0 298} 2} {37 {0 298} 0} {38 {0 298} 0} {39 {0 298} 0}} 50 {{56 {0 298} 2}} 27,trans {{284 52} {285 53} {286 54} {287 55} {288 56} {289 57} {290 58} {331 59}} 51 {{61 {0 298} 2} {40 {291 292 293} 0} {41 {291 292 293} 0}} 46,trans {} 52 {{28 {0 298} 1}} 65,trans {} 53 {{29 {0 298} 1}} 84,trans {} 54 {{30 {0 298} 1}} 55 {{31 {0 298} 1}} 56 {{32 {0 298} 1}} 57 {{33 {0 298} 1}} 58 {{34 {0 298} 1}} 59 {{62 {0 298} 2}} 60 {{35 {0 298} 1}} 61 {{36 {0 298} 1}} 62 {{63 {0 298} 2}} 63 {{1 {0 298} 1}} 64 {{2 {0 298} 1}} 65 {{3 {0 298} 1}} 26,trans {{295 34} {296 35} {334 51}} 66 {{4 {0 298} 1}} 67 {{5 {0 298} 1}} 45,trans {{298 96}} 68 {{6 {0 298} 1}} 64,trans {} 69 {{7 {0 298} 1}} 70 {{8 {0 298} 1}} 83,trans {} 71 {{9 {0 298} 1}} 72 {{10 {0 298} 1}} 73 {{11 {0 298} 1}} 74 {{12 {0 298} 1}} 75 {{13 {0 298} 1}} 76 {{14 {0 298} 1}} 77 {{15 {0 298} 1}} 78 {{16 {0 298} 1}} 79 {{17 {0 298} 1}} 80 {{18 {0 298} 1}} 81 {{19 {0 298} 1}} 82 {{20 {0 298} 1}} 25,trans {{298 50}} 83 {{21 {0 298} 1}} 84 {{22 {0 298} 1}} 44,trans {} 85 {{23 {0 298} 1}} 63,trans {} 86 {{24 {0 298} 1}} 82,trans {} 87 {{25 {0 298} 1}} 0 {{0 0 0} {42 0 0} {44 0 0} {46 {0 298} 0} {47 {0 298} 0} {49 {0 298} 0} {45 {299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314} 0} {70 {0 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314} 0} {71 {0 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314} 0} {72 {0 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314} 0} {73 {0 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314} 0} {74 {0 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314} 0} {75 {0 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314} 0} {76 {0 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314} 0} {77 {0 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314} 0} {78 {0 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314} 0}} 88 {{26 {0 298} 1}} 1 {{70 {0 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314} 1}} 89 {{27 {0 298} 1}} 90 {{64 {0 298} 2}} 2 {{71 {0 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314} 1}} 91 {{49 {0 298} 3}} 3 {{72 {0 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314} 1}} 92 {{68 {0 298} 2} {69 {0 298} 2} {28 {0 298} 0} {29 {0 298} 0} {30 {0 298} 0} {31 {0 298} 0} {32 {0 298} 0} {33 {0 298} 0} {34 {0 298} 0}} 4 {{73 {0 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314} 1}} 93 {{40 {0 284 285 286 287 288 289 290 298} 1}} 5 {{74 {0 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314} 1}} 94 {{41 {0 284 285 286 287 288 289 290 298} 1}} 6 {{75 {0 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314} 1}} 95 {{66 {0 298} 2} {67 {0 298} 2} {28 {0 298} 0} {29 {0 298} 0} {30 {0 298} 0} {31 {0 298} 0} {32 {0 298} 0} {33 {0 298} 0} {34 {0 298} 0}} 7 {{76 {0 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314} 1}} 96 {{55 {0 298} 3}} 8 {{77 {0 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314} 1}} 97 {{37 {0 298} 1}} 9 {{78 {0 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314} 1}} 98 {{38 {0 298} 1}} 24,trans {} 99 {{39 {0 298} 1}} 43,trans {} 62,trans {} 81,trans {} 99,trans {} 23,trans {{295 47} {296 48} {334 49}} 42,trans {} 61,trans {} 79,trans {} 80,trans {} 98,trans {} 9,trans {} 22,trans {} 41,trans {} 59,trans {} 60,trans {} 78,trans {} 97,trans {} 8,trans {} 100 {{60 {0 298} 3}} 101 {{61 {0 298} 3} {37 {0 298} 0} {38 {0 298} 0} {39 {0 298} 0}} 102 {{69 {0 298} 3}} 103 {{67 {0 298} 3}} 104 {{61 {0 298} 4}} 21,trans {{298 46}} 39,trans {} 40,trans {} 58,trans {} 77,trans {} 96,trans {} 7,trans {} 19,trans {} 20,trans {{324 39} {325 40} {326 41} {327 42} {328 43} {329 44} {343 45}} 38,trans {} 57,trans {} 76,trans {} 95,trans {{284 52} {285 53} {286 54} {287 55} {288 56} {289 57} {290 58} {331 103}} 6,trans {} 18,trans {{295 34} {296 35} {297 36} {334 37} {341 38}} 37,trans {{295 93} {296 94} {334 95}} 56,trans {} 75,trans {} 94,trans {} 5,trans {} 17,trans {} 36,trans {{297 92}} 55,trans {} 74,trans {} 93,trans {} 4,trans {} 16,trans {} 35,trans {} 54,trans {} 73,trans {} 92,trans {{284 52} {285 53} {286 54} {287 55} {288 56} {289 57} {290 58} {331 102}} 3,trans {} 15,trans {} 34,trans {} 53,trans {} 72,trans {} 91,trans {} 2,trans {} 104,trans {} 14,trans {{298 33}} 33,trans {} 52,trans {} 71,trans {} 90,trans {} 1,trans {} 89,trans {} 103,trans {} 13,trans {{339 32}} 32,trans {{299 15} {300 16} {301 17} {302 18} {303 19} {304 20} {305 21} {306 22} {307 23} {308 24} {309 25} {310 26} {311 27} {312 28} {313 29} {314 30} {340 91}} 51,trans {{295 47} {296 48} {334 101}} 69,trans {} 70,trans {} 0,trans {{315 1} {316 2} {317 3} {318 4} {319 5} {320 6} {321 7} {322 8} {323 9} {335 10} {337 11} {338 12} {342 13}} 88,trans {} 102,trans {} 12,trans {{299 15} {300 16} {301 17} {302 18} {303 19} {304 20} {305 21} {306 22} {307 23} {308 24} {309 25} {310 26} {311 27} {312 28} {313 29} {314 30} {340 31}} 31,trans {} 49,trans {{291 97} {292 98} {293 99} {333 100}} 50,trans {} 68,trans {} 87,trans {} 101,trans {{291 97} {292 98} {293 99} {333 104}} 10 {{0 0 1}} 11 {{42 0 1} {44 0 1} {43 298 0}} 12 {{46 {0 298} 1} {50 {0 298} 0} {51 {0 298} 0} {52 {0 298} 0} {53 {0 298} 0} {54 {0 298} 0} {55 {0 298} 0} {56 {0 298} 0} {57 {0 298} 0} {58 {0 298} 0} {59 {0 298} 0} {60 {0 298} 0} {61 {0 298} 0} {62 {0 298} 0} {63 {0 298} 0} {64 {0 298} 0} {65 {0 298} 0}} 13 {{47 {0 298} 1} {49 {0 298} 1} {48 {299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314} 0}} 14 {{44 0 2}} 15 {{50 {0 298} 1}} 11,trans {{336 14}} 16 {{52 {0 298} 1}} 29,trans {{257 63} {258 64} {259 65} {260 66} {261 67} {262 68} {263 69} {264 70} {265 71} {266 72} {267 73} {268 74} {269 75} {270 76} {271 77} {272 78} {273 79} {274 80} {275 81} {276 82} {277 83} {278 84} {279 85} {280 86} {281 87} {282 88} {283 89} {330 90}} 30,trans {} 17 {{51 {0 298} 1}} 48,trans {} 18 {{53 {0 298} 1} {66 {0 298} 0} {67 {0 298} 0} {68 {0 298} 0} {69 {0 298} 0} {40 {295 296} 0} {41 {295 296} 0}} 67,trans {} 20 {{55 {0 298} 1} {79 298 0} {80 298 0} {81 298 0} {82 298 0} {83 298 0} {84 298 0}} 19 {{54 {0 298} 1}} 86,trans {} 21 {{57 {0 298} 1}} 22 {{58 {0 298} 1}} 100,trans {} 23 {{60 {0 298} 1} {40 {291 292 293} 0} {41 {291 292 293} 0}} 24 {{59 {0 298} 1}} 25 {{56 {0 298} 1}} 26 {{61 {0 298} 1} {40 {295 296} 0} {41 {295 296} 0}} 27 {{62 {0 298} 1} {28 {0 298} 0} {29 {0 298} 0} {30 {0 298} 0} {31 {0 298} 0} {32 {0 298} 0} {33 {0 298} 0} {34 {0 298} 0}} 28 {{63 {0 298} 1} {35 {0 298} 0} {36 {0 298} 0}} 30 {{65 {0 298} 1}} 29 {{64 {0 298} 1} {1 {0 298} 0} {2 {0 298} 0} {3 {0 298} 0} {4 {0 298} 0} {5 {0 298} 0} {6 {0 298} 0} {7 {0 298} 0} {8 {0 298} 0} {9 {0 298} 0} {10 {0 298} 0} {11 {0 298} 0} {12 {0 298} 0} {13 {0 298} 0} {14 {0 298} 0} {15 {0 298} 0} {16 {0 298} 0} {17 {0 298} 0} {18 {0 298} 0} {19 {0 298} 0} {20 {0 298} 0} {21 {0 298} 0} {22 {0 298} 0} {23 {0 298} 0} {24 {0 298} 0} {25 {0 298} 0} {26 {0 298} 0} {27 {0 298} 0}} 31 {{46 {0 298} 2}} 32 {{49 {0 298} 2} {50 {0 298} 0} {51 {0 298} 0} {52 {0 298} 0} {53 {0 298} 0} {54 {0 298} 0} {55 {0 298} 0} {56 {0 298} 0} {57 {0 298} 0} {58 {0 298} 0} {59 {0 298} 0} {60 {0 298} 0} {61 {0 298} 0} {62 {0 298} 0} {63 {0 298} 0} {64 {0 298} 0} {65 {0 298} 0}} 10,trans {} 33 {{44 0 3}} 28,trans {{291 60} {294 61} {332 62}} 34 {{40 {295 296} 1}} 47,trans {} } array set sia::token_id_table { 286 FK5_ 286,t 0 287 J2000_ 292,line 44 302,line 61 288 ICRS_ 317,t 0 265,title WCSH 289 GALACTIC_ 290 ECLIPTIC_ 300 CLEAR_ 284,title FK4 291 DEGREES_ 301 CLOSE_ 313,title SYSTEM 292 ARCMIN_ 302 COORDINATE_ 338,t 1 332,title {} 288,line 39 293 ARCSEC_ 303 CROSSHAIR_ 294 SEXAGESIMAL_ 304 EXPORT_ 305 NAME_ 295 INT_ 306 PRINT_ 296 REAL_ 307 RADIUS_ 262,t 0 297 SEXSTR_ 308 RETRIEVE_ 285,line 36 298 STRING_ 310 SIZE_ 309 SAVE_ 299 CANCEL_ 311 SKY_ 283,t 0 312 SKYFORMAT_ 313 SYSTEM_ 314,t 0 314 UPDATE_ 282,line 32 315 2MASS_ 316 AKARI_ 264,title WCSG 335,t 1 317 ASTROWISE_ 283,title WCSZ 318 CADC_ 312,title SKYFORMAT 331,title {} 320 MAST_ 319 CXC_ 278,line 28 error,line 140 321 SDSS_ 344,line 241 322 SKYVIEW_ 258,t 0 323 TGSSADR_ 324 XML_ 325 VOT_ 275,line 25 279,t 0 280,t 0 326 SB_ 341,line 217 327 STARBASE_ 328 CSV_ 311,t 0 330 wcssys 329 TSV_ 331 skyframe 272,line 22 332,t 1 332 skyformat 337,line 193 333 rformat 263,title WCSF 334 numeric 282,title WCSY 335 command 311,title SKY 336 @PSEUDO1 330,title {} 329,title TSV 268,line 18 337 sia 338 @PSEUDO2 334,line 185 340 siaCmd 339 @PSEUDO3 276,t 0 341 coordinate 342 site 265,line 15 343 writer 307,t 0 297,t 0 344 start' 331,line 169 328,t 0 262,line 12 0,t 0 0 {$} 327,line 88 262,title WCSE 281,title WCSX error,t 0 310,title SIZE 309,title SAVE 299,title CANCEL 328,title CSV 258,line 8 273,t 0 324,line 85 294,t 0 304,t 0 325,t 0 321,line 81 317,line 77 261,title WCSD 279,title WCSV 280,title WCSW 308,title RETRIEVE 269,t 0 270,t 0 298,title string 327,title STARBASE 314,line 73 291,t 0 301,t 0 322,t 0 311,line 70 343,t 1 307,line 66 266,t 0 260,title WCSC 259,title WCSB 297,line 52 278,title WCSU 307,title RADIUS 297,title sexagesimal 326,title SB 287,t 0 294,line 47 304,line 63 318,t 0 340,t 1 339,t 1 error,title {} 291,line 43 301,line 60 263,t 0 258,title WCSA 287,line 38 277,title WCST 284,t 0 306,title PRINT 296,title float 325,title VOT 344,title {} 315,t 0 284,line 35 336,t 1 281,line 31 260,t 0 259,t 0 281,t 0 257,title WCS 277,line 27 276,title WCSS 343,line 234 312,t 0 305,title NAME 295,title integer 324,title XML 343,title {} 333,t 1 274,line 24 340,line 198 339,line 195 271,line 21 336,line 190 277,t 0 308,t 0 267,line 17 298,t 0 275,title WCSR 333,line 181 294,title SEXAGESIMAL 304,title EXPORT 330,t 1 329,t 0 323,title TGSSADR 342,title {} 264,line 14 330,line 141 329,line 90 261,line 11 274,t 0 326,line 87 305,t 0 295,t 0 257,line 7 326,t 0 274,title WCSQ 323,line 83 293,title ARCSEC 303,title CROSSHAIR 322,title SKYVIEW 341,title {} 320,line 80 319,line 79 error error 271,t 0 292,t 0 302,t 0 316,line 76 323,t 0 273,title WCSP 344,t 1 313,line 72 292,title ARCMIN 302,title COORDINATE 321,title SDSS 340,title {} 339,title {} 267,t 0 310,line 69 309,line 68 299,line 58 288,t 0 320,t 0 319,t 0 306,line 65 296,line 50 341,t 1 272,title WCSO 291,title DEGREES 293,line 45 301,title CLOSE 303,line 62 320,title MAST 319,title CXC 338,title {} 264,t 0 285,t 0 289,line 40 290,line 41 300,line 59 316,t 0 286,line 37 337,t 1 271,title WCSN 261,t 0 283,line 33 289,title GALACTIC 290,title ECLIPTIC 300,title CLEAR 318,title CADC 337,title {} 282,t 0 279,line 29 280,line 30 313,t 0 334,t 1 276,line 26 342,line 223 257,t 0 269,title WCSL 270,title WCSM 273,line 23 288,title ICRS 317,title ASTROWISE 278,t 0 338,line 193 336,title {} 310,t 0 309,t 0 299,t 0 269,line 19 270,line 20 335,line 189 331,t 1 266,line 16 332,line 177 268,title WCSK 275,t 0 263,line 13 287,title J2000 316,title AKARI 335,title {} 328,line 89 306,t 0 296,t 0 327,t 0 260,line 10 259,line 9 325,line 86 322,line 82 272,t 0 267,title WCSJ 257 WCS_ 286,title FK5 293,t 0 303,t 0 315,title 2MASS 258 WCSA_ 334,title {} 318,line 78 260 WCSC_ 259 WCSB_ 324,t 0 261 WCSD_ 262 WCSE_ 263 WCSF_ 264 WCSG_ 315,line 75 265 WCSH_ 266 WCSI_ 267 WCSJ_ 268,t 0 268 WCSK_ 269 WCSL_ 270 WCSM_ 312,line 71 271 WCSN_ 272 WCSO_ 289,t 0 290,t 0 300,t 0 266,title WCSI 273 WCSP_ 274 WCSQ_ 285,title B1950 321,t 0 314,title UPDATE 275 WCSR_ 333,title {} 308,line 67 276 WCSS_ 298,line 54 277 WCST_ 342,t 1 278 WCSU_ 279 WCSV_ 280 WCSW_ 281 WCSX_ 305,line 64 282 WCSY_ 295,line 49 265,t 0 283 WCSZ_ 284 FK4_ 285 B1950_ } proc sia::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 _ wcs } 2 { set _ wcsa } 3 { set _ wcsb } 4 { set _ wcsc } 5 { set _ wcsd } 6 { set _ wcse } 7 { set _ wcsf } 8 { set _ wcsg } 9 { set _ wcsh } 10 { set _ wcsi } 11 { set _ wcsj } 12 { set _ wcsk } 13 { set _ wcsl } 14 { set _ wcsm } 15 { set _ wcsn } 16 { set _ wcso } 17 { set _ wcsp } 18 { set _ wcsq } 19 { set _ wcsr } 20 { set _ wcss } 21 { set _ wcst } 22 { set _ wcsu } 23 { set _ wcsv } 24 { set _ wcsw } 25 { set _ wcsx } 26 { set _ wcsy } 27 { set _ wcsz } 28 { set _ fk4 } 29 { set _ fk4 } 30 { set _ fk5 } 31 { set _ fk5 } 32 { set _ icrs } 33 { set _ galactic } 34 { set _ ecliptic } 35 { set _ degrees } 36 { set _ sexagesimal } 37 { set _ degrees } 38 { set _ arcmin } 39 { set _ arcsec } 40 { set _ $1 } 41 { set _ $1 } 43 { global ds9; if {!$ds9(init)} {YYERROR} else {yyclearin; YYACCEPT} } 45 { if {![SIACmdCheck]} {sia::YYABORT} } 47 { SIACmdRef $1 } 48 { SIACmdRef $1 } 50 { ProcessCmdCVAR0 ARCancel } 51 { ProcessCmdCVAR0 SIADestroy } 52 { ProcessCmdCVAR0 SIAOff } 54 { ProcessCmdCVAR0 IMGSVRCrosshair } 55 { SIACmdSave $3 $2 } 56 { SIACmdSave $2 VOTWrite } 57 { ProcessCmdCVAR name $2 } 58 { ProcessCmdCVAR0 CATPrint } 59 { global cvarname; SIAApply $cvarname 1 } 60 { SIACmdSize $2 $3 } 61 { SIACmdSize [expr ($2+$3)/2.] $4 } 62 { SIACmdSkyframe $2 } 63 { ProcessCmdCVAR skyformat $2 } 64 { SIACmdSystem $2 } 65 { ProcessCVAR0 IMGSVRUpdate } 66 { SIACmdCoord $1 $2 fk5 } 67 { SIACmdCoord $1 $2 $3 } 68 { SIACmdCoord $1 $2 fk5 } 69 { SIACmdCoord $1 $2 $3 } 70 { set _ 2mass } 71 { set _ akari } 72 { set _ astrowise } 73 { set _ cadc } 74 { set _ cxc } 75 { set _ mast } 76 { set _ sdss } 77 { set _ skyview } 78 { set _ tgssadr } 79 { set _ VOTWrite } 80 { set _ VOTWrite } 81 { set _ starbase_write } 82 { set _ starbase_write } 83 { set _ TSVWrite } 84 { set _ TSVWrite } } 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 sia::yyerror {msg} { variable yycnt variable yy_current_buffer variable index_ ParserError $msg $yycnt $yy_current_buffer $index_ }