quote_calc2-s.output revision 303975
18870Srgrimes 0 $accept : list $end 233662Sjb 38870Srgrimes 1 list : 42116Sjkh 2 | list stat '\n' 52116Sjkh 3 | list error '\n' 68870Srgrimes 72116Sjkh 4 stat : expr 82116Sjkh 5 | LETTER '=' expr 98870Srgrimes 102116Sjkh 6 expr : '(' expr ')' 112116Sjkh 7 | expr "ADD" expr 128870Srgrimes 8 | expr "SUB" expr 138870Srgrimes 9 | expr "MUL" expr 142116Sjkh 10 | expr "DIV" expr 152116Sjkh 11 | expr "MOD" expr 162116Sjkh 12 | expr "AND" expr 172116Sjkh 13 | expr '|' expr 188870Srgrimes 14 | "SUB" expr 198870Srgrimes 15 | LETTER 202116Sjkh 16 | number 212116Sjkh 222116Sjkh 17 number : DIGIT 232116Sjkh 18 | number DIGIT 242116Sjkh 252116Sjkhstate 0 268870Srgrimes $accept : . list $end (0) 272116Sjkh list : . (1) 282116Sjkh 292116Sjkh . reduce 1 302116Sjkh 318870Srgrimes list goto 1 322116Sjkh 332116Sjkh 348870Srgrimesstate 1 352116Sjkh $accept : list . $end (0) 362116Sjkh list : list . stat '\n' (2) 378870Srgrimes list : list . error '\n' (3) 382116Sjkh 392116Sjkh $end accept 408870Srgrimes error shift 2 412116Sjkh "SUB" shift 3 428870Srgrimes DIGIT shift 4 432116Sjkh LETTER shift 5 4433662Sjb '(' shift 6 4533662Sjb . error 4633662Sjb 4733662Sjb stat goto 7 4833662Sjb expr goto 8 4933662Sjb number goto 9 5033662Sjb 5133662Sjb 5222808Sbdestate 2 5324964Sbde list : list error . '\n' (3) 542116Sjkh 552116Sjkh '\n' shift 10 5622731Sbde . error 572116Sjkh 5833662Sjb 5933662Sjbstate 3 6033662Sjb expr : "SUB" . expr (14) 6133662Sjb 6233662Sjb "SUB" shift 3 6333662Sjb DIGIT shift 4 6433662Sjb LETTER shift 11 652116Sjkh '(' shift 6 6622731Sbde . error 6722731Sbde 6822731Sbde expr goto 12 692116Sjkh number goto 9 702116Sjkh 712116Sjkh 7224964Sbdestate 4 732116Sjkh number : DIGIT . (17) 742116Sjkh 752116Sjkh . reduce 17 762116Sjkh 772116Sjkh 782116Sjkhstate 5 792116Sjkh stat : LETTER . '=' expr (5) 802116Sjkh expr : LETTER . (15) 812116Sjkh 822116Sjkh '=' shift 13 8322808Sbde "ADD" reduce 15 842116Sjkh "SUB" reduce 15 852116Sjkh "MUL" reduce 15 862116Sjkh "DIV" reduce 15 872116Sjkh "MOD" reduce 15 882116Sjkh "AND" reduce 15 892116Sjkh '|' reduce 15 902116Sjkh '\n' reduce 15 912116Sjkh 922116Sjkh 932116Sjkhstate 6 942116Sjkh expr : '(' . expr ')' (6) 952116Sjkh 962116Sjkh "SUB" shift 3 972116Sjkh DIGIT shift 4 982116Sjkh LETTER shift 11 992116Sjkh '(' shift 6 1002116Sjkh . error 1012116Sjkh 10222948Sbde expr goto 14 10322948Sbde number goto 9 1042116Sjkh 1052116Sjkh 1062116Sjkhstate 7 1072116Sjkh list : list stat . '\n' (2) 10822808Sbde 10924964Sbde '\n' shift 15 11022808Sbde . error 1112116Sjkh 11222808Sbde 11322808Sbdestate 8 11422808Sbde stat : expr . (4) 11522808Sbde expr : expr . "ADD" expr (7) 11622808Sbde expr : expr . "SUB" expr (8) 1176953Sbde expr : expr . "MUL" expr (9) 11824964Sbde expr : expr . "DIV" expr (10) 11922808Sbde expr : expr . "MOD" expr (11) 1206953Sbde expr : expr . "AND" expr (12) 1216953Sbde expr : expr . '|' expr (13) 12211682Sbde 1232116Sjkh "ADD" shift 16 12411682Sbde "SUB" shift 17 12511682Sbde "MUL" shift 18 12611682Sbde "DIV" shift 19 12711682Sbde "MOD" shift 20 12811682Sbde "AND" shift 21 12913987Smpp '|' shift 22 13013987Smpp '\n' reduce 4 13113987Smpp 13213987Smpp 13313987Smppstate 9 13413987Smpp expr : number . (16) 13513987Smpp number : number . DIGIT (18) 13613987Smpp 13713987Smpp DIGIT shift 23 13813987Smpp "ADD" reduce 16 13913987Smpp "SUB" reduce 16 14013987Smpp "MUL" reduce 16 14113987Smpp "DIV" reduce 16 14213987Smpp "MOD" reduce 16 14313987Smpp "AND" reduce 16 14413987Smpp '|' reduce 16 14513987Smpp '\n' reduce 16 14613987Smpp ')' reduce 16 14713987Smpp 14813987Smpp 14913987Smppstate 10 15013987Smpp list : list error '\n' . (3) 15113987Smpp 15213987Smpp . reduce 3 15313987Smpp 15413987Smpp 15513987Smppstate 11 15613987Smpp expr : LETTER . (15) 15713987Smpp 15813987Smpp . reduce 15 15913988Smpp 16013987Smpp 16113987Smpp12: shift/reduce conflict (shift 16, reduce 14) on "ADD" 16213987Smpp12: shift/reduce conflict (shift 17, reduce 14) on "SUB" 1632116Sjkh12: shift/reduce conflict (shift 18, reduce 14) on "MUL" 1642574Sbde12: shift/reduce conflict (shift 19, reduce 14) on "DIV" 1652574Sbde12: shift/reduce conflict (shift 20, reduce 14) on "MOD" 16617935Speter12: shift/reduce conflict (shift 21, reduce 14) on "AND" 16717958Speterstate 12 1682574Sbde expr : expr . "ADD" expr (7) 1692116Sjkh expr : expr . "SUB" expr (8) 170 expr : expr . "MUL" expr (9) 171 expr : expr . "DIV" expr (10) 172 expr : expr . "MOD" expr (11) 173 expr : expr . "AND" expr (12) 174 expr : expr . '|' expr (13) 175 expr : "SUB" expr . (14) 176 177 "ADD" shift 16 178 "SUB" shift 17 179 "MUL" shift 18 180 "DIV" shift 19 181 "MOD" shift 20 182 "AND" shift 21 183 '|' reduce 14 184 '\n' reduce 14 185 ')' reduce 14 186 187 188state 13 189 stat : LETTER '=' . expr (5) 190 191 "SUB" shift 3 192 DIGIT shift 4 193 LETTER shift 11 194 '(' shift 6 195 . error 196 197 expr goto 24 198 number goto 9 199 200 201state 14 202 expr : '(' expr . ')' (6) 203 expr : expr . "ADD" expr (7) 204 expr : expr . "SUB" expr (8) 205 expr : expr . "MUL" expr (9) 206 expr : expr . "DIV" expr (10) 207 expr : expr . "MOD" expr (11) 208 expr : expr . "AND" expr (12) 209 expr : expr . '|' expr (13) 210 211 "ADD" shift 16 212 "SUB" shift 17 213 "MUL" shift 18 214 "DIV" shift 19 215 "MOD" shift 20 216 "AND" shift 21 217 '|' shift 22 218 ')' shift 25 219 . error 220 221 222state 15 223 list : list stat '\n' . (2) 224 225 . reduce 2 226 227 228state 16 229 expr : expr "ADD" . expr (7) 230 231 "SUB" shift 3 232 DIGIT shift 4 233 LETTER shift 11 234 '(' shift 6 235 . error 236 237 expr goto 26 238 number goto 9 239 240 241state 17 242 expr : expr "SUB" . expr (8) 243 244 "SUB" shift 3 245 DIGIT shift 4 246 LETTER shift 11 247 '(' shift 6 248 . error 249 250 expr goto 27 251 number goto 9 252 253 254state 18 255 expr : expr "MUL" . expr (9) 256 257 "SUB" shift 3 258 DIGIT shift 4 259 LETTER shift 11 260 '(' shift 6 261 . error 262 263 expr goto 28 264 number goto 9 265 266 267state 19 268 expr : expr "DIV" . expr (10) 269 270 "SUB" shift 3 271 DIGIT shift 4 272 LETTER shift 11 273 '(' shift 6 274 . error 275 276 expr goto 29 277 number goto 9 278 279 280state 20 281 expr : expr "MOD" . expr (11) 282 283 "SUB" shift 3 284 DIGIT shift 4 285 LETTER shift 11 286 '(' shift 6 287 . error 288 289 expr goto 30 290 number goto 9 291 292 293state 21 294 expr : expr "AND" . expr (12) 295 296 "SUB" shift 3 297 DIGIT shift 4 298 LETTER shift 11 299 '(' shift 6 300 . error 301 302 expr goto 31 303 number goto 9 304 305 306state 22 307 expr : expr '|' . expr (13) 308 309 "SUB" shift 3 310 DIGIT shift 4 311 LETTER shift 11 312 '(' shift 6 313 . error 314 315 expr goto 32 316 number goto 9 317 318 319state 23 320 number : number DIGIT . (18) 321 322 . reduce 18 323 324 325state 24 326 stat : LETTER '=' expr . (5) 327 expr : expr . "ADD" expr (7) 328 expr : expr . "SUB" expr (8) 329 expr : expr . "MUL" expr (9) 330 expr : expr . "DIV" expr (10) 331 expr : expr . "MOD" expr (11) 332 expr : expr . "AND" expr (12) 333 expr : expr . '|' expr (13) 334 335 "ADD" shift 16 336 "SUB" shift 17 337 "MUL" shift 18 338 "DIV" shift 19 339 "MOD" shift 20 340 "AND" shift 21 341 '|' shift 22 342 '\n' reduce 5 343 344 345state 25 346 expr : '(' expr ')' . (6) 347 348 . reduce 6 349 350 35126: shift/reduce conflict (shift 16, reduce 7) on "ADD" 35226: shift/reduce conflict (shift 17, reduce 7) on "SUB" 35326: shift/reduce conflict (shift 18, reduce 7) on "MUL" 35426: shift/reduce conflict (shift 19, reduce 7) on "DIV" 35526: shift/reduce conflict (shift 20, reduce 7) on "MOD" 35626: shift/reduce conflict (shift 21, reduce 7) on "AND" 35726: shift/reduce conflict (shift 22, reduce 7) on '|' 358state 26 359 expr : expr . "ADD" expr (7) 360 expr : expr "ADD" expr . (7) 361 expr : expr . "SUB" expr (8) 362 expr : expr . "MUL" expr (9) 363 expr : expr . "DIV" expr (10) 364 expr : expr . "MOD" expr (11) 365 expr : expr . "AND" expr (12) 366 expr : expr . '|' expr (13) 367 368 "ADD" shift 16 369 "SUB" shift 17 370 "MUL" shift 18 371 "DIV" shift 19 372 "MOD" shift 20 373 "AND" shift 21 374 '|' shift 22 375 '\n' reduce 7 376 ')' reduce 7 377 378 37927: shift/reduce conflict (shift 16, reduce 8) on "ADD" 38027: shift/reduce conflict (shift 17, reduce 8) on "SUB" 38127: shift/reduce conflict (shift 18, reduce 8) on "MUL" 38227: shift/reduce conflict (shift 19, reduce 8) on "DIV" 38327: shift/reduce conflict (shift 20, reduce 8) on "MOD" 38427: shift/reduce conflict (shift 21, reduce 8) on "AND" 38527: shift/reduce conflict (shift 22, reduce 8) on '|' 386state 27 387 expr : expr . "ADD" expr (7) 388 expr : expr . "SUB" expr (8) 389 expr : expr "SUB" expr . (8) 390 expr : expr . "MUL" expr (9) 391 expr : expr . "DIV" expr (10) 392 expr : expr . "MOD" expr (11) 393 expr : expr . "AND" expr (12) 394 expr : expr . '|' expr (13) 395 396 "ADD" shift 16 397 "SUB" shift 17 398 "MUL" shift 18 399 "DIV" shift 19 400 "MOD" shift 20 401 "AND" shift 21 402 '|' shift 22 403 '\n' reduce 8 404 ')' reduce 8 405 406 40728: shift/reduce conflict (shift 16, reduce 9) on "ADD" 40828: shift/reduce conflict (shift 17, reduce 9) on "SUB" 40928: shift/reduce conflict (shift 18, reduce 9) on "MUL" 41028: shift/reduce conflict (shift 19, reduce 9) on "DIV" 41128: shift/reduce conflict (shift 20, reduce 9) on "MOD" 41228: shift/reduce conflict (shift 21, reduce 9) on "AND" 41328: shift/reduce conflict (shift 22, reduce 9) on '|' 414state 28 415 expr : expr . "ADD" expr (7) 416 expr : expr . "SUB" expr (8) 417 expr : expr . "MUL" expr (9) 418 expr : expr "MUL" expr . (9) 419 expr : expr . "DIV" expr (10) 420 expr : expr . "MOD" expr (11) 421 expr : expr . "AND" expr (12) 422 expr : expr . '|' expr (13) 423 424 "ADD" shift 16 425 "SUB" shift 17 426 "MUL" shift 18 427 "DIV" shift 19 428 "MOD" shift 20 429 "AND" shift 21 430 '|' shift 22 431 '\n' reduce 9 432 ')' reduce 9 433 434 43529: shift/reduce conflict (shift 16, reduce 10) on "ADD" 43629: shift/reduce conflict (shift 17, reduce 10) on "SUB" 43729: shift/reduce conflict (shift 18, reduce 10) on "MUL" 43829: shift/reduce conflict (shift 19, reduce 10) on "DIV" 43929: shift/reduce conflict (shift 20, reduce 10) on "MOD" 44029: shift/reduce conflict (shift 21, reduce 10) on "AND" 44129: shift/reduce conflict (shift 22, reduce 10) on '|' 442state 29 443 expr : expr . "ADD" expr (7) 444 expr : expr . "SUB" expr (8) 445 expr : expr . "MUL" expr (9) 446 expr : expr . "DIV" expr (10) 447 expr : expr "DIV" expr . (10) 448 expr : expr . "MOD" expr (11) 449 expr : expr . "AND" expr (12) 450 expr : expr . '|' expr (13) 451 452 "ADD" shift 16 453 "SUB" shift 17 454 "MUL" shift 18 455 "DIV" shift 19 456 "MOD" shift 20 457 "AND" shift 21 458 '|' shift 22 459 '\n' reduce 10 460 ')' reduce 10 461 462 46330: shift/reduce conflict (shift 16, reduce 11) on "ADD" 46430: shift/reduce conflict (shift 17, reduce 11) on "SUB" 46530: shift/reduce conflict (shift 18, reduce 11) on "MUL" 46630: shift/reduce conflict (shift 19, reduce 11) on "DIV" 46730: shift/reduce conflict (shift 20, reduce 11) on "MOD" 46830: shift/reduce conflict (shift 21, reduce 11) on "AND" 46930: shift/reduce conflict (shift 22, reduce 11) on '|' 470state 30 471 expr : expr . "ADD" expr (7) 472 expr : expr . "SUB" expr (8) 473 expr : expr . "MUL" expr (9) 474 expr : expr . "DIV" expr (10) 475 expr : expr . "MOD" expr (11) 476 expr : expr "MOD" expr . (11) 477 expr : expr . "AND" expr (12) 478 expr : expr . '|' expr (13) 479 480 "ADD" shift 16 481 "SUB" shift 17 482 "MUL" shift 18 483 "DIV" shift 19 484 "MOD" shift 20 485 "AND" shift 21 486 '|' shift 22 487 '\n' reduce 11 488 ')' reduce 11 489 490 49131: shift/reduce conflict (shift 16, reduce 12) on "ADD" 49231: shift/reduce conflict (shift 17, reduce 12) on "SUB" 49331: shift/reduce conflict (shift 18, reduce 12) on "MUL" 49431: shift/reduce conflict (shift 19, reduce 12) on "DIV" 49531: shift/reduce conflict (shift 20, reduce 12) on "MOD" 49631: shift/reduce conflict (shift 21, reduce 12) on "AND" 49731: shift/reduce conflict (shift 22, reduce 12) on '|' 498state 31 499 expr : expr . "ADD" expr (7) 500 expr : expr . "SUB" expr (8) 501 expr : expr . "MUL" expr (9) 502 expr : expr . "DIV" expr (10) 503 expr : expr . "MOD" expr (11) 504 expr : expr . "AND" expr (12) 505 expr : expr "AND" expr . (12) 506 expr : expr . '|' expr (13) 507 508 "ADD" shift 16 509 "SUB" shift 17 510 "MUL" shift 18 511 "DIV" shift 19 512 "MOD" shift 20 513 "AND" shift 21 514 '|' shift 22 515 '\n' reduce 12 516 ')' reduce 12 517 518 51932: shift/reduce conflict (shift 16, reduce 13) on "ADD" 52032: shift/reduce conflict (shift 17, reduce 13) on "SUB" 52132: shift/reduce conflict (shift 18, reduce 13) on "MUL" 52232: shift/reduce conflict (shift 19, reduce 13) on "DIV" 52332: shift/reduce conflict (shift 20, reduce 13) on "MOD" 52432: shift/reduce conflict (shift 21, reduce 13) on "AND" 525state 32 526 expr : expr . "ADD" expr (7) 527 expr : expr . "SUB" expr (8) 528 expr : expr . "MUL" expr (9) 529 expr : expr . "DIV" expr (10) 530 expr : expr . "MOD" expr (11) 531 expr : expr . "AND" expr (12) 532 expr : expr . '|' expr (13) 533 expr : expr '|' expr . (13) 534 535 "ADD" shift 16 536 "SUB" shift 17 537 "MUL" shift 18 538 "DIV" shift 19 539 "MOD" shift 20 540 "AND" shift 21 541 '|' reduce 13 542 '\n' reduce 13 543 ')' reduce 13 544 545 546State 12 contains 6 shift/reduce conflicts. 547State 26 contains 7 shift/reduce conflicts. 548State 27 contains 7 shift/reduce conflicts. 549State 28 contains 7 shift/reduce conflicts. 550State 29 contains 7 shift/reduce conflicts. 551State 30 contains 7 shift/reduce conflicts. 552State 31 contains 7 shift/reduce conflicts. 553State 32 contains 6 shift/reduce conflicts. 554 555 55628 terminals, 5 nonterminals 55719 grammar rules, 33 states 558 559grammar parser grammar 560symbol# value# symbol 561 0 0 $end 562 1 256 error 563 2 257 OP_ADD 564 3 258 "ADD" 565 4 259 OP_SUB 566 5 260 "SUB" 567 6 261 OP_MUL 568 7 262 "MUL" 569 8 263 OP_DIV 570 9 264 "DIV" 571 10 265 OP_MOD 572 11 266 "MOD" 573 12 267 OP_AND 574 13 268 "AND" 575 14 269 DIGIT 576 15 270 LETTER 577 16 124 '|' 578 17 38 '&' 579 18 43 '+' 580 19 45 '-' 581 20 42 '*' 582 21 47 '/' 583 22 37 '%' 584 23 271 UMINUS 585 24 10 '\n' 586 25 61 '=' 587 26 40 '(' 588 27 41 ')' 589 28 272 $accept 590 29 273 list 591 30 274 stat 592 31 275 expr 593 32 276 number 594