Terminals which are not used: TOK_INVALID Grammar Number, Line, Rule 1 132 main -> TOK_GENERAL compdefs instrument 2 133 main -> TOK_RESTRICTED compdef 3 136 compdefs -> /* empty */ 4 137 compdefs -> compdefs compdef 5 140 compdef -> "DEFINE" "COMPONENT" TOK_ID parameters share declare initialize trace save finally mcdisplay "END" 6 169 parameters -> def_par set_par out_par state_par polarisation_par 7 180 def_par -> /* empty */ 8 184 def_par -> "DEFINITION" "PARAMETERS" comp_iformallist 9 190 set_par -> /* empty */ 10 194 set_par -> "SETTING" "PARAMETERS" comp_iformallist 11 200 out_par -> /* empty */ 12 204 out_par -> "OUTPUT" "PARAMETERS" formallist 13 210 state_par -> "STATE" "PARAMETERS" formallist 14 216 polarisation_par -> /* empty */ 15 220 polarisation_par -> "POLARISATION" "PARAMETERS" '(' TOK_ID ',' TOK_ID ',' TOK_ID ')' 16 231 comp_iformallist -> '(' comp_iformals ')' 17 237 comp_iformals -> /* empty */ 18 241 comp_iformals -> comp_iformals1 19 247 comp_iformals1 -> comp_iformal 20 252 comp_iformals1 -> comp_iformals1 ',' comp_iformal 21 259 comp_iformal -> TOK_ID TOK_ID 22 277 comp_iformal -> TOK_ID '*' TOK_ID 23 291 comp_iformal -> TOK_ID 24 300 comp_iformal -> TOK_ID '=' exp 25 310 comp_iformal -> TOK_ID TOK_ID '=' exp 26 330 comp_iformal -> TOK_ID '*' TOK_ID '=' exp 27 348 @1 -> /* empty */ 28 348 instrument -> "DEFINE" "INSTRUMENT" TOK_ID instrpar_list @1 declare initialize nexus instr_trace save finally "END" 29 371 instrpar_list -> '(' instr_formals ')' 30 377 instr_formals -> /* empty */ 31 381 instr_formals -> instr_formals1 32 387 instr_formals1 -> instr_formal 33 392 instr_formals1 -> instr_formals1 ',' instr_formal 34 399 instr_formal -> TOK_ID TOK_ID 35 417 instr_formal -> TOK_ID '*' TOK_ID 36 431 instr_formal -> TOK_ID 37 440 instr_formal -> TOK_ID '=' exp 38 450 instr_formal -> TOK_ID TOK_ID '=' exp 39 470 instr_formal -> TOK_ID '*' TOK_ID '=' exp 40 487 declare -> /* empty */ 41 491 declare -> "DECLARE" codeblock 42 497 initialize -> /* empty */ 43 501 initialize -> "INITIALIZE" codeblock 44 508 share -> /* empty */ 45 512 share -> "SHARE" codeblock 46 519 nexus -> /* empty */ 47 527 nexus -> nexus "NEXUS" dictfile hdfversion 48 545 dictfile -> /* empty */ 49 549 dictfile -> dictfile "DICTFILE" TOK_STRING 50 554 hdfversion -> /* empty */ 51 558 hdfversion -> hdfversion "HDF" TOK_NUMBER 52 564 trace -> "TRACE" codeblock 53 570 save -> /* empty */ 54 574 save -> "SAVE" codeblock 55 580 finally -> /* empty */ 56 584 finally -> "FINALLY" codeblock 57 590 mcdisplay -> /* empty */ 58 594 mcdisplay -> "MCDISPLAY" codeblock 59 600 instr_trace -> "TRACE" complist 60 602 complist -> /* empty */ 61 609 complist -> complist component 62 637 component -> "COMPONENT" TOK_ID '=' TOK_ID actuallist place orientation groupref extend 63 670 formallist -> '(' formals ')' 64 677 formals -> /* empty */ 65 681 formals -> formals1 66 687 formals1 -> TOK_ID 67 692 formals1 -> formals1 ',' TOK_ID 68 699 actuallist -> '(' actuals ')' 69 705 actuals -> /* empty */ 70 709 actuals -> actuals1 71 715 actuals1 -> TOK_ID '=' exp 72 721 actuals1 -> actuals1 ',' TOK_ID '=' exp 73 729 place -> "AT" coords reference 74 736 orientation -> /* empty */ 75 741 orientation -> "ROTATED" coords reference 76 750 reference -> "ABSOLUTE" 77 754 reference -> "RELATIVE" "PREVIOUS" 78 763 reference -> "RELATIVE" "PREVIOUS" '(' TOK_NUMBER ')' 79 777 reference -> "RELATIVE" compref 80 784 groupref -> /* empty */ 81 788 groupref -> "GROUP" groupdef 82 794 groupdef -> TOK_ID 83 814 compref -> TOK_ID 84 831 coords -> '(' exp ',' exp ',' exp ')' 85 840 extend -> /* empty */ 86 844 extend -> "EXTEND" codeblock 87 852 @2 -> /* empty */ 88 852 exp -> @2 topexp 89 858 @3 -> /* empty */ 90 858 exp -> "EXTERN" @3 TOK_ID 91 869 topexp -> topatexp 92 873 topexp -> topexp topatexp 93 883 topatexp -> TOK_ID 94 905 topatexp -> TOK_NUMBER 95 910 topatexp -> TOK_STRING 96 915 topatexp -> TOK_CTOK 97 920 topatexp -> '=' 98 924 topatexp -> '*' 99 928 topatexp -> '(' genexp ')' 100 937 topatexp -> '(' ')' 101 945 topatexp -> '[' genexp ']' 102 954 topatexp -> '[' ']' 103 962 topatexp -> '{' genexp '}' 104 971 topatexp -> '{' '}' 105 982 genexp -> genatexp 106 986 genexp -> genexp genatexp 107 994 genatexp -> topatexp 108 998 genatexp -> ',' 109 1004 codeblock -> TOK_CODE_START code TOK_CODE_END 110 1013 code -> /* empty */ 111 1018 code -> code TOK_CODE_LINE Terminals, with rules where they appear $ (-1) '(' (40) 15 16 29 63 68 78 84 99 100 ')' (41) 15 16 29 63 68 78 84 99 100 '*' (42) 22 26 35 39 98 ',' (44) 15 20 33 67 72 84 108 '=' (61) 24 25 26 37 38 39 62 71 72 97 '[' (91) 101 102 ']' (93) 101 102 '{' (123) 103 104 '}' (125) 103 104 error (256) TOK_RESTRICTED (257) 2 TOK_GENERAL (258) 1 "ABSOLUTE" (259) 76 "AT" (260) 73 "COMPONENT" (261) 5 62 "DECLARE" (262) 41 "DEFINE" (263) 5 28 "DEFINITION" (264) 8 "END" (265) 5 28 "FINALLY" (266) 56 "EXTERN" (267) 90 "INITIALIZE" (268) 43 "INSTRUMENT" (269) 28 "MCDISPLAY" (270) 58 "OUTPUT" (271) 12 "PARAMETERS" (272) 8 10 12 13 15 "POLARISATION" (273) 15 "RELATIVE" (274) 77 78 79 "ROTATED" (275) 75 "PREVIOUS" (276) 77 78 "SETTING" (277) 10 "STATE" (278) 13 "TRACE" (279) 52 59 "SHARE" (280) 45 "EXTEND" (281) 86 "GROUP" (282) 81 "SAVE" (283) 54 "NEXUS" (284) 47 "DICTFILE" (285) 49 "HDF" (286) 51 TOK_ID (287) 5 15 21 22 23 24 25 26 28 34 35 36 37 38 39 62 66 67 71 72 82 83 90 93 TOK_STRING (288) 49 95 TOK_NUMBER (289) 51 78 94 TOK_CTOK (290) 96 TOK_CODE_START (291) 109 TOK_CODE_END (292) 109 TOK_CODE_LINE (293) 111 TOK_INVALID (294) Nonterminals, with rules where they appear main (50) on left: 1 2 compdefs (51) on left: 3 4, on right: 1 4 compdef (52) on left: 5, on right: 2 4 parameters (53) on left: 6, on right: 5 def_par (54) on left: 7 8, on right: 6 set_par (55) on left: 9 10, on right: 6 out_par (56) on left: 11 12, on right: 6 state_par (57) on left: 13, on right: 6 polarisation_par (58) on left: 14 15, on right: 6 comp_iformallist (59) on left: 16, on right: 8 10 comp_iformals (60) on left: 17 18, on right: 16 comp_iformals1 (61) on left: 19 20, on right: 18 20 comp_iformal (62) on left: 21 22 23 24 25 26, on right: 19 20 instrument (63) on left: 28, on right: 1 @1 (64) on left: 27, on right: 28 instrpar_list (65) on left: 29, on right: 28 instr_formals (66) on left: 30 31, on right: 29 instr_formals1 (67) on left: 32 33, on right: 31 33 instr_formal (68) on left: 34 35 36 37 38 39, on right: 32 33 declare (69) on left: 40 41, on right: 5 28 initialize (70) on left: 42 43, on right: 5 28 share (71) on left: 44 45, on right: 5 nexus (72) on left: 46 47, on right: 28 47 dictfile (73) on left: 48 49, on right: 47 49 hdfversion (74) on left: 50 51, on right: 47 51 trace (75) on left: 52, on right: 5 save (76) on left: 53 54, on right: 5 28 finally (77) on left: 55 56, on right: 5 28 mcdisplay (78) on left: 57 58, on right: 5 instr_trace (79) on left: 59, on right: 28 complist (80) on left: 60 61, on right: 59 61 component (81) on left: 62, on right: 61 formallist (82) on left: 63, on right: 12 13 formals (83) on left: 64 65, on right: 63 formals1 (84) on left: 66 67, on right: 65 67 actuallist (85) on left: 68, on right: 62 actuals (86) on left: 69 70, on right: 68 actuals1 (87) on left: 71 72, on right: 70 72 place (88) on left: 73, on right: 62 orientation (89) on left: 74 75, on right: 62 reference (90) on left: 76 77 78 79, on right: 73 75 groupref (91) on left: 80 81, on right: 62 groupdef (92) on left: 82, on right: 81 compref (93) on left: 83, on right: 79 coords (94) on left: 84, on right: 73 75 extend (95) on left: 85 86, on right: 62 exp (96) on left: 88 90, on right: 24 25 26 37 38 39 71 72 84 @2 (97) on left: 87, on right: 88 @3 (98) on left: 89, on right: 90 topexp (99) on left: 91 92, on right: 88 92 topatexp (100) on left: 93 94 95 96 97 98 99 100 101 102 103 104, on right: 91 92 107 genexp (101) on left: 105 106, on right: 99 101 103 106 genatexp (102) on left: 107 108, on right: 105 106 codeblock (103) on left: 109, on right: 41 43 45 52 54 56 58 86 code (104) on left: 110 111, on right: 109 111 state 0 TOK_RESTRICTED shift, and go to state 1 TOK_GENERAL shift, and go to state 2 main go to state 201 state 1 main -> TOK_RESTRICTED . compdef (rule 2) "DEFINE" shift, and go to state 3 compdef go to state 4 state 2 main -> TOK_GENERAL . compdefs instrument (rule 1) $default reduce using rule 3 (compdefs) compdefs go to state 5 state 3 compdef -> "DEFINE" . "COMPONENT" TOK_ID parameters share declare initialize trace save finally mcdisplay "END" (rule 5) "COMPONENT" shift, and go to state 6 state 4 main -> TOK_RESTRICTED compdef . (rule 2) $default reduce using rule 2 (main) state 5 main -> TOK_GENERAL compdefs . instrument (rule 1) compdefs -> compdefs . compdef (rule 4) "DEFINE" shift, and go to state 7 compdef go to state 8 instrument go to state 9 state 6 compdef -> "DEFINE" "COMPONENT" . TOK_ID parameters share declare initialize trace save finally mcdisplay "END" (rule 5) TOK_ID shift, and go to state 10 state 7 compdef -> "DEFINE" . "COMPONENT" TOK_ID parameters share declare initialize trace save finally mcdisplay "END" (rule 5) instrument -> "DEFINE" . "INSTRUMENT" TOK_ID instrpar_list @1 declare initialize nexus instr_trace save finally "END" (rule 28) "COMPONENT" shift, and go to state 6 "INSTRUMENT" shift, and go to state 11 state 8 compdefs -> compdefs compdef . (rule 4) $default reduce using rule 4 (compdefs) state 9 main -> TOK_GENERAL compdefs instrument . (rule 1) $default reduce using rule 1 (main) state 10 compdef -> "DEFINE" "COMPONENT" TOK_ID . parameters share declare initialize trace save finally mcdisplay "END" (rule 5) "DEFINITION" shift, and go to state 12 $default reduce using rule 7 (def_par) parameters go to state 13 def_par go to state 14 state 11 instrument -> "DEFINE" "INSTRUMENT" . TOK_ID instrpar_list @1 declare initialize nexus instr_trace save finally "END" (rule 28) TOK_ID shift, and go to state 15 state 12 def_par -> "DEFINITION" . "PARAMETERS" comp_iformallist (rule 8) "PARAMETERS" shift, and go to state 16 state 13 compdef -> "DEFINE" "COMPONENT" TOK_ID parameters . share declare initialize trace save finally mcdisplay "END" (rule 5) "SHARE" shift, and go to state 17 $default reduce using rule 44 (share) share go to state 18 state 14 parameters -> def_par . set_par out_par state_par polarisation_par (rule 6) "SETTING" shift, and go to state 19 $default reduce using rule 9 (set_par) set_par go to state 20 state 15 instrument -> "DEFINE" "INSTRUMENT" TOK_ID . instrpar_list @1 declare initialize nexus instr_trace save finally "END" (rule 28) '(' shift, and go to state 21 instrpar_list go to state 22 state 16 def_par -> "DEFINITION" "PARAMETERS" . comp_iformallist (rule 8) '(' shift, and go to state 23 comp_iformallist go to state 24 state 17 share -> "SHARE" . codeblock (rule 45) TOK_CODE_START shift, and go to state 25 codeblock go to state 26 state 18 compdef -> "DEFINE" "COMPONENT" TOK_ID parameters share . declare initialize trace save finally mcdisplay "END" (rule 5) "DECLARE" shift, and go to state 27 $default reduce using rule 40 (declare) declare go to state 28 state 19 set_par -> "SETTING" . "PARAMETERS" comp_iformallist (rule 10) "PARAMETERS" shift, and go to state 29 state 20 parameters -> def_par set_par . out_par state_par polarisation_par (rule 6) "OUTPUT" shift, and go to state 30 $default reduce using rule 11 (out_par) out_par go to state 31 state 21 instrpar_list -> '(' . instr_formals ')' (rule 29) TOK_ID shift, and go to state 32 $default reduce using rule 30 (instr_formals) instr_formals go to state 33 instr_formals1 go to state 34 instr_formal go to state 35 state 22 instrument -> "DEFINE" "INSTRUMENT" TOK_ID instrpar_list . @1 declare initialize nexus instr_trace save finally "END" (rule 28) $default reduce using rule 27 (@1) @1 go to state 36 state 23 comp_iformallist -> '(' . comp_iformals ')' (rule 16) TOK_ID shift, and go to state 37 $default reduce using rule 17 (comp_iformals) comp_iformals go to state 38 comp_iformals1 go to state 39 comp_iformal go to state 40 state 24 def_par -> "DEFINITION" "PARAMETERS" comp_iformallist . (rule 8) $default reduce using rule 8 (def_par) state 25 codeblock -> TOK_CODE_START . code TOK_CODE_END (rule 109) $default reduce using rule 110 (code) code go to state 41 state 26 share -> "SHARE" codeblock . (rule 45) $default reduce using rule 45 (share) state 27 declare -> "DECLARE" . codeblock (rule 41) TOK_CODE_START shift, and go to state 25 codeblock go to state 42 state 28 compdef -> "DEFINE" "COMPONENT" TOK_ID parameters share declare . initialize trace save finally mcdisplay "END" (rule 5) "INITIALIZE" shift, and go to state 43 $default reduce using rule 42 (initialize) initialize go to state 44 state 29 set_par -> "SETTING" "PARAMETERS" . comp_iformallist (rule 10) '(' shift, and go to state 23 comp_iformallist go to state 45 state 30 out_par -> "OUTPUT" . "PARAMETERS" formallist (rule 12) "PARAMETERS" shift, and go to state 46 state 31 parameters -> def_par set_par out_par . state_par polarisation_par (rule 6) "STATE" shift, and go to state 47 state_par go to state 48 state 32 instr_formal -> TOK_ID . TOK_ID (rule 34) instr_formal -> TOK_ID . '*' TOK_ID (rule 35) instr_formal -> TOK_ID . (rule 36) instr_formal -> TOK_ID . '=' exp (rule 37) instr_formal -> TOK_ID . TOK_ID '=' exp (rule 38) instr_formal -> TOK_ID . '*' TOK_ID '=' exp (rule 39) TOK_ID shift, and go to state 49 '*' shift, and go to state 50 '=' shift, and go to state 51 $default reduce using rule 36 (instr_formal) state 33 instrpar_list -> '(' instr_formals . ')' (rule 29) ')' shift, and go to state 52 state 34 instr_formals -> instr_formals1 . (rule 31) instr_formals1 -> instr_formals1 . ',' instr_formal (rule 33) ',' shift, and go to state 53 $default reduce using rule 31 (instr_formals) state 35 instr_formals1 -> instr_formal . (rule 32) $default reduce using rule 32 (instr_formals1) state 36 instrument -> "DEFINE" "INSTRUMENT" TOK_ID instrpar_list @1 . declare initialize nexus instr_trace save finally "END" (rule 28) "DECLARE" shift, and go to state 27 $default reduce using rule 40 (declare) declare go to state 54 state 37 comp_iformal -> TOK_ID . TOK_ID (rule 21) comp_iformal -> TOK_ID . '*' TOK_ID (rule 22) comp_iformal -> TOK_ID . (rule 23) comp_iformal -> TOK_ID . '=' exp (rule 24) comp_iformal -> TOK_ID . TOK_ID '=' exp (rule 25) comp_iformal -> TOK_ID . '*' TOK_ID '=' exp (rule 26) TOK_ID shift, and go to state 55 '*' shift, and go to state 56 '=' shift, and go to state 57 $default reduce using rule 23 (comp_iformal) state 38 comp_iformallist -> '(' comp_iformals . ')' (rule 16) ')' shift, and go to state 58 state 39 comp_iformals -> comp_iformals1 . (rule 18) comp_iformals1 -> comp_iformals1 . ',' comp_iformal (rule 20) ',' shift, and go to state 59 $default reduce using rule 18 (comp_iformals) state 40 comp_iformals1 -> comp_iformal . (rule 19) $default reduce using rule 19 (comp_iformals1) state 41 codeblock -> TOK_CODE_START code . TOK_CODE_END (rule 109) code -> code . TOK_CODE_LINE (rule 111) TOK_CODE_END shift, and go to state 60 TOK_CODE_LINE shift, and go to state 61 state 42 declare -> "DECLARE" codeblock . (rule 41) $default reduce using rule 41 (declare) state 43 initialize -> "INITIALIZE" . codeblock (rule 43) TOK_CODE_START shift, and go to state 25 codeblock go to state 62 state 44 compdef -> "DEFINE" "COMPONENT" TOK_ID parameters share declare initialize . trace save finally mcdisplay "END" (rule 5) "TRACE" shift, and go to state 63 trace go to state 64 state 45 set_par -> "SETTING" "PARAMETERS" comp_iformallist . (rule 10) $default reduce using rule 10 (set_par) state 46 out_par -> "OUTPUT" "PARAMETERS" . formallist (rule 12) '(' shift, and go to state 65 formallist go to state 66 state 47 state_par -> "STATE" . "PARAMETERS" formallist (rule 13) "PARAMETERS" shift, and go to state 67 state 48 parameters -> def_par set_par out_par state_par . polarisation_par (rule 6) "POLARISATION" shift, and go to state 68 $default reduce using rule 14 (polarisation_par) polarisation_par go to state 69 state 49 instr_formal -> TOK_ID TOK_ID . (rule 34) instr_formal -> TOK_ID TOK_ID . '=' exp (rule 38) '=' shift, and go to state 70 $default reduce using rule 34 (instr_formal) state 50 instr_formal -> TOK_ID '*' . TOK_ID (rule 35) instr_formal -> TOK_ID '*' . TOK_ID '=' exp (rule 39) TOK_ID shift, and go to state 71 state 51 instr_formal -> TOK_ID '=' . exp (rule 37) "EXTERN" shift, and go to state 72 $default reduce using rule 87 (@2) exp go to state 73 @2 go to state 74 state 52 instrpar_list -> '(' instr_formals ')' . (rule 29) $default reduce using rule 29 (instrpar_list) state 53 instr_formals1 -> instr_formals1 ',' . instr_formal (rule 33) TOK_ID shift, and go to state 32 instr_formal go to state 75 state 54 instrument -> "DEFINE" "INSTRUMENT" TOK_ID instrpar_list @1 declare . initialize nexus instr_trace save finally "END" (rule 28) "INITIALIZE" shift, and go to state 43 $default reduce using rule 42 (initialize) initialize go to state 76 state 55 comp_iformal -> TOK_ID TOK_ID . (rule 21) comp_iformal -> TOK_ID TOK_ID . '=' exp (rule 25) '=' shift, and go to state 77 $default reduce using rule 21 (comp_iformal) state 56 comp_iformal -> TOK_ID '*' . TOK_ID (rule 22) comp_iformal -> TOK_ID '*' . TOK_ID '=' exp (rule 26) TOK_ID shift, and go to state 78 state 57 comp_iformal -> TOK_ID '=' . exp (rule 24) "EXTERN" shift, and go to state 72 $default reduce using rule 87 (@2) exp go to state 79 @2 go to state 74 state 58 comp_iformallist -> '(' comp_iformals ')' . (rule 16) $default reduce using rule 16 (comp_iformallist) state 59 comp_iformals1 -> comp_iformals1 ',' . comp_iformal (rule 20) TOK_ID shift, and go to state 37 comp_iformal go to state 80 state 60 codeblock -> TOK_CODE_START code TOK_CODE_END . (rule 109) $default reduce using rule 109 (codeblock) state 61 code -> code TOK_CODE_LINE . (rule 111) $default reduce using rule 111 (code) state 62 initialize -> "INITIALIZE" codeblock . (rule 43) $default reduce using rule 43 (initialize) state 63 trace -> "TRACE" . codeblock (rule 52) TOK_CODE_START shift, and go to state 25 codeblock go to state 81 state 64 compdef -> "DEFINE" "COMPONENT" TOK_ID parameters share declare initialize trace . save finally mcdisplay "END" (rule 5) "SAVE" shift, and go to state 82 $default reduce using rule 53 (save) save go to state 83 state 65 formallist -> '(' . formals ')' (rule 63) TOK_ID shift, and go to state 84 $default reduce using rule 64 (formals) formals go to state 85 formals1 go to state 86 state 66 out_par -> "OUTPUT" "PARAMETERS" formallist . (rule 12) $default reduce using rule 12 (out_par) state 67 state_par -> "STATE" "PARAMETERS" . formallist (rule 13) '(' shift, and go to state 65 formallist go to state 87 state 68 polarisation_par -> "POLARISATION" . "PARAMETERS" '(' TOK_ID ',' TOK_ID ',' TOK_ID ')' (rule 15) "PARAMETERS" shift, and go to state 88 state 69 parameters -> def_par set_par out_par state_par polarisation_par . (rule 6) $default reduce using rule 6 (parameters) state 70 instr_formal -> TOK_ID TOK_ID '=' . exp (rule 38) "EXTERN" shift, and go to state 72 $default reduce using rule 87 (@2) exp go to state 89 @2 go to state 74 state 71 instr_formal -> TOK_ID '*' TOK_ID . (rule 35) instr_formal -> TOK_ID '*' TOK_ID . '=' exp (rule 39) '=' shift, and go to state 90 $default reduce using rule 35 (instr_formal) state 72 exp -> "EXTERN" . @3 TOK_ID (rule 90) $default reduce using rule 89 (@3) @3 go to state 91 state 73 instr_formal -> TOK_ID '=' exp . (rule 37) $default reduce using rule 37 (instr_formal) state 74 exp -> @2 . topexp (rule 88) TOK_ID shift, and go to state 92 TOK_STRING shift, and go to state 93 TOK_NUMBER shift, and go to state 94 TOK_CTOK shift, and go to state 95 '(' shift, and go to state 96 '*' shift, and go to state 97 '=' shift, and go to state 98 '[' shift, and go to state 99 '{' shift, and go to state 100 topexp go to state 101 topatexp go to state 102 state 75 instr_formals1 -> instr_formals1 ',' instr_formal . (rule 33) $default reduce using rule 33 (instr_formals1) state 76 instrument -> "DEFINE" "INSTRUMENT" TOK_ID instrpar_list @1 declare initialize . nexus instr_trace save finally "END" (rule 28) $default reduce using rule 46 (nexus) nexus go to state 103 state 77 comp_iformal -> TOK_ID TOK_ID '=' . exp (rule 25) "EXTERN" shift, and go to state 72 $default reduce using rule 87 (@2) exp go to state 104 @2 go to state 74 state 78 comp_iformal -> TOK_ID '*' TOK_ID . (rule 22) comp_iformal -> TOK_ID '*' TOK_ID . '=' exp (rule 26) '=' shift, and go to state 105 $default reduce using rule 22 (comp_iformal) state 79 comp_iformal -> TOK_ID '=' exp . (rule 24) $default reduce using rule 24 (comp_iformal) state 80 comp_iformals1 -> comp_iformals1 ',' comp_iformal . (rule 20) $default reduce using rule 20 (comp_iformals1) state 81 trace -> "TRACE" codeblock . (rule 52) $default reduce using rule 52 (trace) state 82 save -> "SAVE" . codeblock (rule 54) TOK_CODE_START shift, and go to state 25 codeblock go to state 106 state 83 compdef -> "DEFINE" "COMPONENT" TOK_ID parameters share declare initialize trace save . finally mcdisplay "END" (rule 5) "FINALLY" shift, and go to state 107 $default reduce using rule 55 (finally) finally go to state 108 state 84 formals1 -> TOK_ID . (rule 66) $default reduce using rule 66 (formals1) state 85 formallist -> '(' formals . ')' (rule 63) ')' shift, and go to state 109 state 86 formals -> formals1 . (rule 65) formals1 -> formals1 . ',' TOK_ID (rule 67) ',' shift, and go to state 110 $default reduce using rule 65 (formals) state 87 state_par -> "STATE" "PARAMETERS" formallist . (rule 13) $default reduce using rule 13 (state_par) state 88 polarisation_par -> "POLARISATION" "PARAMETERS" . '(' TOK_ID ',' TOK_ID ',' TOK_ID ')' (rule 15) '(' shift, and go to state 111 state 89 instr_formal -> TOK_ID TOK_ID '=' exp . (rule 38) $default reduce using rule 38 (instr_formal) state 90 instr_formal -> TOK_ID '*' TOK_ID '=' . exp (rule 39) "EXTERN" shift, and go to state 72 $default reduce using rule 87 (@2) exp go to state 112 @2 go to state 74 state 91 exp -> "EXTERN" @3 . TOK_ID (rule 90) TOK_ID shift, and go to state 113 state 92 topatexp -> TOK_ID . (rule 93) $default reduce using rule 93 (topatexp) state 93 topatexp -> TOK_STRING . (rule 95) $default reduce using rule 95 (topatexp) state 94 topatexp -> TOK_NUMBER . (rule 94) $default reduce using rule 94 (topatexp) state 95 topatexp -> TOK_CTOK . (rule 96) $default reduce using rule 96 (topatexp) state 96 topatexp -> '(' . genexp ')' (rule 99) topatexp -> '(' . ')' (rule 100) TOK_ID shift, and go to state 92 TOK_STRING shift, and go to state 93 TOK_NUMBER shift, and go to state 94 TOK_CTOK shift, and go to state 95 '(' shift, and go to state 96 ',' shift, and go to state 114 ')' shift, and go to state 115 '*' shift, and go to state 97 '=' shift, and go to state 98 '[' shift, and go to state 99 '{' shift, and go to state 100 topatexp go to state 116 genexp go to state 117 genatexp go to state 118 state 97 topatexp -> '*' . (rule 98) $default reduce using rule 98 (topatexp) state 98 topatexp -> '=' . (rule 97) $default reduce using rule 97 (topatexp) state 99 topatexp -> '[' . genexp ']' (rule 101) topatexp -> '[' . ']' (rule 102) TOK_ID shift, and go to state 92 TOK_STRING shift, and go to state 93 TOK_NUMBER shift, and go to state 94 TOK_CTOK shift, and go to state 95 '(' shift, and go to state 96 ',' shift, and go to state 114 '*' shift, and go to state 97 '=' shift, and go to state 98 '[' shift, and go to state 99 ']' shift, and go to state 119 '{' shift, and go to state 100 topatexp go to state 116 genexp go to state 120 genatexp go to state 118 state 100 topatexp -> '{' . genexp '}' (rule 103) topatexp -> '{' . '}' (rule 104) TOK_ID shift, and go to state 92 TOK_STRING shift, and go to state 93 TOK_NUMBER shift, and go to state 94 TOK_CTOK shift, and go to state 95 '(' shift, and go to state 96 ',' shift, and go to state 114 '*' shift, and go to state 97 '=' shift, and go to state 98 '[' shift, and go to state 99 '{' shift, and go to state 100 '}' shift, and go to state 121 topatexp go to state 116 genexp go to state 122 genatexp go to state 118 state 101 exp -> @2 topexp . (rule 88) topexp -> topexp . topatexp (rule 92) TOK_ID shift, and go to state 92 TOK_STRING shift, and go to state 93 TOK_NUMBER shift, and go to state 94 TOK_CTOK shift, and go to state 95 '(' shift, and go to state 96 '*' shift, and go to state 97 '=' shift, and go to state 98 '[' shift, and go to state 99 '{' shift, and go to state 100 $default reduce using rule 88 (exp) topatexp go to state 123 state 102 topexp -> topatexp . (rule 91) $default reduce using rule 91 (topexp) state 103 instrument -> "DEFINE" "INSTRUMENT" TOK_ID instrpar_list @1 declare initialize nexus . instr_trace save finally "END" (rule 28) nexus -> nexus . "NEXUS" dictfile hdfversion (rule 47) "TRACE" shift, and go to state 124 "NEXUS" shift, and go to state 125 instr_trace go to state 126 state 104 comp_iformal -> TOK_ID TOK_ID '=' exp . (rule 25) $default reduce using rule 25 (comp_iformal) state 105 comp_iformal -> TOK_ID '*' TOK_ID '=' . exp (rule 26) "EXTERN" shift, and go to state 72 $default reduce using rule 87 (@2) exp go to state 127 @2 go to state 74 state 106 save -> "SAVE" codeblock . (rule 54) $default reduce using rule 54 (save) state 107 finally -> "FINALLY" . codeblock (rule 56) TOK_CODE_START shift, and go to state 25 codeblock go to state 128 state 108 compdef -> "DEFINE" "COMPONENT" TOK_ID parameters share declare initialize trace save finally . mcdisplay "END" (rule 5) "MCDISPLAY" shift, and go to state 129 $default reduce using rule 57 (mcdisplay) mcdisplay go to state 130 state 109 formallist -> '(' formals ')' . (rule 63) $default reduce using rule 63 (formallist) state 110 formals1 -> formals1 ',' . TOK_ID (rule 67) TOK_ID shift, and go to state 131 state 111 polarisation_par -> "POLARISATION" "PARAMETERS" '(' . TOK_ID ',' TOK_ID ',' TOK_ID ')' (rule 15) TOK_ID shift, and go to state 132 state 112 instr_formal -> TOK_ID '*' TOK_ID '=' exp . (rule 39) $default reduce using rule 39 (instr_formal) state 113 exp -> "EXTERN" @3 TOK_ID . (rule 90) $default reduce using rule 90 (exp) state 114 genatexp -> ',' . (rule 108) $default reduce using rule 108 (genatexp) state 115 topatexp -> '(' ')' . (rule 100) $default reduce using rule 100 (topatexp) state 116 genatexp -> topatexp . (rule 107) $default reduce using rule 107 (genatexp) state 117 topatexp -> '(' genexp . ')' (rule 99) genexp -> genexp . genatexp (rule 106) TOK_ID shift, and go to state 92 TOK_STRING shift, and go to state 93 TOK_NUMBER shift, and go to state 94 TOK_CTOK shift, and go to state 95 '(' shift, and go to state 96 ',' shift, and go to state 114 ')' shift, and go to state 133 '*' shift, and go to state 97 '=' shift, and go to state 98 '[' shift, and go to state 99 '{' shift, and go to state 100 topatexp go to state 116 genatexp go to state 134 state 118 genexp -> genatexp . (rule 105) $default reduce using rule 105 (genexp) state 119 topatexp -> '[' ']' . (rule 102) $default reduce using rule 102 (topatexp) state 120 topatexp -> '[' genexp . ']' (rule 101) genexp -> genexp . genatexp (rule 106) TOK_ID shift, and go to state 92 TOK_STRING shift, and go to state 93 TOK_NUMBER shift, and go to state 94 TOK_CTOK shift, and go to state 95 '(' shift, and go to state 96 ',' shift, and go to state 114 '*' shift, and go to state 97 '=' shift, and go to state 98 '[' shift, and go to state 99 ']' shift, and go to state 135 '{' shift, and go to state 100 topatexp go to state 116 genatexp go to state 134 state 121 topatexp -> '{' '}' . (rule 104) $default reduce using rule 104 (topatexp) state 122 topatexp -> '{' genexp . '}' (rule 103) genexp -> genexp . genatexp (rule 106) TOK_ID shift, and go to state 92 TOK_STRING shift, and go to state 93 TOK_NUMBER shift, and go to state 94 TOK_CTOK shift, and go to state 95 '(' shift, and go to state 96 ',' shift, and go to state 114 '*' shift, and go to state 97 '=' shift, and go to state 98 '[' shift, and go to state 99 '{' shift, and go to state 100 '}' shift, and go to state 136 topatexp go to state 116 genatexp go to state 134 state 123 topexp -> topexp topatexp . (rule 92) $default reduce using rule 92 (topexp) state 124 instr_trace -> "TRACE" . complist (rule 59) $default reduce using rule 60 (complist) complist go to state 137 state 125 nexus -> nexus "NEXUS" . dictfile hdfversion (rule 47) $default reduce using rule 48 (dictfile) dictfile go to state 138 state 126 instrument -> "DEFINE" "INSTRUMENT" TOK_ID instrpar_list @1 declare initialize nexus instr_trace . save finally "END" (rule 28) "SAVE" shift, and go to state 82 $default reduce using rule 53 (save) save go to state 139 state 127 comp_iformal -> TOK_ID '*' TOK_ID '=' exp . (rule 26) $default reduce using rule 26 (comp_iformal) state 128 finally -> "FINALLY" codeblock . (rule 56) $default reduce using rule 56 (finally) state 129 mcdisplay -> "MCDISPLAY" . codeblock (rule 58) TOK_CODE_START shift, and go to state 25 codeblock go to state 140 state 130 compdef -> "DEFINE" "COMPONENT" TOK_ID parameters share declare initialize trace save finally mcdisplay . "END" (rule 5) "END" shift, and go to state 141 state 131 formals1 -> formals1 ',' TOK_ID . (rule 67) $default reduce using rule 67 (formals1) state 132 polarisation_par -> "POLARISATION" "PARAMETERS" '(' TOK_ID . ',' TOK_ID ',' TOK_ID ')' (rule 15) ',' shift, and go to state 142 state 133 topatexp -> '(' genexp ')' . (rule 99) $default reduce using rule 99 (topatexp) state 134 genexp -> genexp genatexp . (rule 106) $default reduce using rule 106 (genexp) state 135 topatexp -> '[' genexp ']' . (rule 101) $default reduce using rule 101 (topatexp) state 136 topatexp -> '{' genexp '}' . (rule 103) $default reduce using rule 103 (topatexp) state 137 instr_trace -> "TRACE" complist . (rule 59) complist -> complist . component (rule 61) "COMPONENT" shift, and go to state 143 $default reduce using rule 59 (instr_trace) component go to state 144 state 138 nexus -> nexus "NEXUS" dictfile . hdfversion (rule 47) dictfile -> dictfile . "DICTFILE" TOK_STRING (rule 49) "DICTFILE" shift, and go to state 145 $default reduce using rule 50 (hdfversion) hdfversion go to state 146 state 139 instrument -> "DEFINE" "INSTRUMENT" TOK_ID instrpar_list @1 declare initialize nexus instr_trace save . finally "END" (rule 28) "FINALLY" shift, and go to state 107 $default reduce using rule 55 (finally) finally go to state 147 state 140 mcdisplay -> "MCDISPLAY" codeblock . (rule 58) $default reduce using rule 58 (mcdisplay) state 141 compdef -> "DEFINE" "COMPONENT" TOK_ID parameters share declare initialize trace save finally mcdisplay "END" . (rule 5) $default reduce using rule 5 (compdef) state 142 polarisation_par -> "POLARISATION" "PARAMETERS" '(' TOK_ID ',' . TOK_ID ',' TOK_ID ')' (rule 15) TOK_ID shift, and go to state 148 state 143 component -> "COMPONENT" . TOK_ID '=' TOK_ID actuallist place orientation groupref extend (rule 62) TOK_ID shift, and go to state 149 state 144 complist -> complist component . (rule 61) $default reduce using rule 61 (complist) state 145 dictfile -> dictfile "DICTFILE" . TOK_STRING (rule 49) TOK_STRING shift, and go to state 150 state 146 nexus -> nexus "NEXUS" dictfile hdfversion . (rule 47) hdfversion -> hdfversion . "HDF" TOK_NUMBER (rule 51) "HDF" shift, and go to state 151 $default reduce using rule 47 (nexus) state 147 instrument -> "DEFINE" "INSTRUMENT" TOK_ID instrpar_list @1 declare initialize nexus instr_trace save finally . "END" (rule 28) "END" shift, and go to state 152 state 148 polarisation_par -> "POLARISATION" "PARAMETERS" '(' TOK_ID ',' TOK_ID . ',' TOK_ID ')' (rule 15) ',' shift, and go to state 153 state 149 component -> "COMPONENT" TOK_ID . '=' TOK_ID actuallist place orientation groupref extend (rule 62) '=' shift, and go to state 154 state 150 dictfile -> dictfile "DICTFILE" TOK_STRING . (rule 49) $default reduce using rule 49 (dictfile) state 151 hdfversion -> hdfversion "HDF" . TOK_NUMBER (rule 51) TOK_NUMBER shift, and go to state 155 state 152 instrument -> "DEFINE" "INSTRUMENT" TOK_ID instrpar_list @1 declare initialize nexus instr_trace save finally "END" . (rule 28) $default reduce using rule 28 (instrument) state 153 polarisation_par -> "POLARISATION" "PARAMETERS" '(' TOK_ID ',' TOK_ID ',' . TOK_ID ')' (rule 15) TOK_ID shift, and go to state 156 state 154 component -> "COMPONENT" TOK_ID '=' . TOK_ID actuallist place orientation groupref extend (rule 62) TOK_ID shift, and go to state 157 state 155 hdfversion -> hdfversion "HDF" TOK_NUMBER . (rule 51) $default reduce using rule 51 (hdfversion) state 156 polarisation_par -> "POLARISATION" "PARAMETERS" '(' TOK_ID ',' TOK_ID ',' TOK_ID . ')' (rule 15) ')' shift, and go to state 158 state 157 component -> "COMPONENT" TOK_ID '=' TOK_ID . actuallist place orientation groupref extend (rule 62) '(' shift, and go to state 159 actuallist go to state 160 state 158 polarisation_par -> "POLARISATION" "PARAMETERS" '(' TOK_ID ',' TOK_ID ',' TOK_ID ')' . (rule 15) $default reduce using rule 15 (polarisation_par) state 159 actuallist -> '(' . actuals ')' (rule 68) TOK_ID shift, and go to state 161 $default reduce using rule 69 (actuals) actuals go to state 162 actuals1 go to state 163 state 160 component -> "COMPONENT" TOK_ID '=' TOK_ID actuallist . place orientation groupref extend (rule 62) "AT" shift, and go to state 164 place go to state 165 state 161 actuals1 -> TOK_ID . '=' exp (rule 71) '=' shift, and go to state 166 state 162 actuallist -> '(' actuals . ')' (rule 68) ')' shift, and go to state 167 state 163 actuals -> actuals1 . (rule 70) actuals1 -> actuals1 . ',' TOK_ID '=' exp (rule 72) ',' shift, and go to state 168 $default reduce using rule 70 (actuals) state 164 place -> "AT" . coords reference (rule 73) '(' shift, and go to state 169 coords go to state 170 state 165 component -> "COMPONENT" TOK_ID '=' TOK_ID actuallist place . orientation groupref extend (rule 62) "ROTATED" shift, and go to state 171 $default reduce using rule 74 (orientation) orientation go to state 172 state 166 actuals1 -> TOK_ID '=' . exp (rule 71) "EXTERN" shift, and go to state 72 $default reduce using rule 87 (@2) exp go to state 173 @2 go to state 74 state 167 actuallist -> '(' actuals ')' . (rule 68) $default reduce using rule 68 (actuallist) state 168 actuals1 -> actuals1 ',' . TOK_ID '=' exp (rule 72) TOK_ID shift, and go to state 174 state 169 coords -> '(' . exp ',' exp ',' exp ')' (rule 84) "EXTERN" shift, and go to state 72 $default reduce using rule 87 (@2) exp go to state 175 @2 go to state 74 state 170 place -> "AT" coords . reference (rule 73) "ABSOLUTE" shift, and go to state 176 "RELATIVE" shift, and go to state 177 reference go to state 178 state 171 orientation -> "ROTATED" . coords reference (rule 75) '(' shift, and go to state 169 coords go to state 179 state 172 component -> "COMPONENT" TOK_ID '=' TOK_ID actuallist place orientation . groupref extend (rule 62) "GROUP" shift, and go to state 180 $default reduce using rule 80 (groupref) groupref go to state 181 state 173 actuals1 -> TOK_ID '=' exp . (rule 71) $default reduce using rule 71 (actuals1) state 174 actuals1 -> actuals1 ',' TOK_ID . '=' exp (rule 72) '=' shift, and go to state 182 state 175 coords -> '(' exp . ',' exp ',' exp ')' (rule 84) ',' shift, and go to state 183 state 176 reference -> "ABSOLUTE" . (rule 76) $default reduce using rule 76 (reference) state 177 reference -> "RELATIVE" . "PREVIOUS" (rule 77) reference -> "RELATIVE" . "PREVIOUS" '(' TOK_NUMBER ')' (rule 78) reference -> "RELATIVE" . compref (rule 79) "PREVIOUS" shift, and go to state 184 TOK_ID shift, and go to state 185 compref go to state 186 state 178 place -> "AT" coords reference . (rule 73) $default reduce using rule 73 (place) state 179 orientation -> "ROTATED" coords . reference (rule 75) "ABSOLUTE" shift, and go to state 176 "RELATIVE" shift, and go to state 177 reference go to state 187 state 180 groupref -> "GROUP" . groupdef (rule 81) TOK_ID shift, and go to state 188 groupdef go to state 189 state 181 component -> "COMPONENT" TOK_ID '=' TOK_ID actuallist place orientation groupref . extend (rule 62) "EXTEND" shift, and go to state 190 $default reduce using rule 85 (extend) extend go to state 191 state 182 actuals1 -> actuals1 ',' TOK_ID '=' . exp (rule 72) "EXTERN" shift, and go to state 72 $default reduce using rule 87 (@2) exp go to state 192 @2 go to state 74 state 183 coords -> '(' exp ',' . exp ',' exp ')' (rule 84) "EXTERN" shift, and go to state 72 $default reduce using rule 87 (@2) exp go to state 193 @2 go to state 74 state 184 reference -> "RELATIVE" "PREVIOUS" . (rule 77) reference -> "RELATIVE" "PREVIOUS" . '(' TOK_NUMBER ')' (rule 78) '(' shift, and go to state 194 $default reduce using rule 77 (reference) state 185 compref -> TOK_ID . (rule 83) $default reduce using rule 83 (compref) state 186 reference -> "RELATIVE" compref . (rule 79) $default reduce using rule 79 (reference) state 187 orientation -> "ROTATED" coords reference . (rule 75) $default reduce using rule 75 (orientation) state 188 groupdef -> TOK_ID . (rule 82) $default reduce using rule 82 (groupdef) state 189 groupref -> "GROUP" groupdef . (rule 81) $default reduce using rule 81 (groupref) state 190 extend -> "EXTEND" . codeblock (rule 86) TOK_CODE_START shift, and go to state 25 codeblock go to state 195 state 191 component -> "COMPONENT" TOK_ID '=' TOK_ID actuallist place orientation groupref extend . (rule 62) $default reduce using rule 62 (component) state 192 actuals1 -> actuals1 ',' TOK_ID '=' exp . (rule 72) $default reduce using rule 72 (actuals1) state 193 coords -> '(' exp ',' exp . ',' exp ')' (rule 84) ',' shift, and go to state 196 state 194 reference -> "RELATIVE" "PREVIOUS" '(' . TOK_NUMBER ')' (rule 78) TOK_NUMBER shift, and go to state 197 state 195 extend -> "EXTEND" codeblock . (rule 86) $default reduce using rule 86 (extend) state 196 coords -> '(' exp ',' exp ',' . exp ')' (rule 84) "EXTERN" shift, and go to state 72 $default reduce using rule 87 (@2) exp go to state 198 @2 go to state 74 state 197 reference -> "RELATIVE" "PREVIOUS" '(' TOK_NUMBER . ')' (rule 78) ')' shift, and go to state 199 state 198 coords -> '(' exp ',' exp ',' exp . ')' (rule 84) ')' shift, and go to state 200 state 199 reference -> "RELATIVE" "PREVIOUS" '(' TOK_NUMBER ')' . (rule 78) $default reduce using rule 78 (reference) state 200 coords -> '(' exp ',' exp ',' exp ')' . (rule 84) $default reduce using rule 84 (coords) state 201 $ go to state 202 state 202 $ go to state 203 state 203 $default accept