-------- Grammar -------- rule 1 content: elements rule 2 elements: elements element rule 3 elements: element rule 4 element: emphasis rule 5 element: italic rule 6 element: under_line rule 7 element: code rule 8 element: strike rule 9 element: verb rule 10 element: normal_string_element rule 11 element: link rule 12 element: quote rule 13 element: fn_link rule 14 element: fn_define rule 15 fn_link: FN_LINK rule 16 fn_define: FN_START elements FN_END rule 17 emphasis: EM_OPEN elements EM_CLOSE rule 18 italic: IT_OPEN elements IT_CLOSE rule 19 under_line: UL_OPEN elements UL_CLOSE rule 20 code: CODE_OPEN elements CODE_CLOSE rule 21 verb: VERB_OPEN elements VERB_CLOSE rule 22 strike: ST_OPEN elements ST_CLOSE rule 23 normal_strings: normal_strings OTHER rule 24 normal_strings: OTHER rule 25 quote: QUOTE rule 26 normal_string_element: normal_strings rule 27 link_descs: link_descs link_desc rule 28 link_descs: link_desc rule 29 link_desc: emphasis rule 30 link_desc: italic rule 31 link_desc: under_line rule 32 link_desc: code rule 33 link_desc: normal_string_element rule 34 link: LINK_START link_descs LINK_END rule 35 link: LINK_URI ------- Symbols ------- **Nonterminals, with rules where they appear $start (25) on right: on left : content (26) on right: on left : 1 elements (27) on right: 1 2 16 17 18 19 20 21 22 on left : 2 3 element (28) on right: 2 3 on left : 4 5 6 7 8 9 10 11 12 13 14 emphasis (29) on right: 4 29 on left : 17 italic (30) on right: 5 30 on left : 18 under_line (31) on right: 6 31 on left : 19 code (32) on right: 7 32 on left : 20 strike (33) on right: 8 on left : 22 verb (34) on right: 9 on left : 21 normal_string_element (35) on right: 10 33 on left : 26 link (36) on right: 11 on left : 34 35 quote (37) on right: 12 on left : 25 fn_link (38) on right: 13 on left : 15 fn_define (39) on right: 14 on left : 16 normal_strings (40) on right: 23 26 on left : 23 24 link_descs (41) on right: 27 34 on left : 27 28 link_desc (42) on right: 27 28 on left : 29 30 31 32 33 **Terminals, with rules where they appear $end (0) error (1) EX_LOW (2) OTHER (3) 23 24 EX_HIGH (4) EM_OPEN (5) 17 EM_CLOSE (6) 17 LINK_START (7) 34 LINK_END (8) 34 LINK_URI (9) 35 ST_OPEN (10) 22 ST_CLOSE (11) 22 QUOTE (12) 25 FN_LINK (13) 15 FN_START (14) 16 FN_END (15) 16 IT_OPEN (16) 18 IT_CLOSE (17) 18 UL_OPEN (18) 19 UL_CLOSE (19) 19 VERB_OPEN (20) 21 VERB_CLOSE (21) 21 CODE_OPEN (22) 20 CODE_CLOSE (23) 20 EOL (24) --------- State --------- state 0 OTHER shift, and go to state 7 EM_OPEN shift, and go to state 13 LINK_START shift, and go to state 18 LINK_URI shift, and go to state 23 ST_OPEN shift, and go to state 26 QUOTE shift, and go to state 3 FN_LINK shift, and go to state 5 FN_START shift, and go to state 8 IT_OPEN shift, and go to state 12 UL_OPEN shift, and go to state 20 VERB_OPEN shift, and go to state 24 CODE_OPEN shift, and go to state 1 strike go to state 2 verb go to state 4 normal_string_element go to state 6 link go to state 9 content go to state 11 quote go to state 10 elements go to state 15 fn_link go to state 14 element go to state 17 fn_define go to state 16 emphasis go to state 21 normal_strings go to state 19 italic go to state 22 under_line go to state 25 code go to state 27 state 1 20) code : CODE_OPEN _ elements CODE_CLOSE OTHER shift, and go to state 7 EM_OPEN shift, and go to state 13 LINK_START shift, and go to state 18 LINK_URI shift, and go to state 23 ST_OPEN shift, and go to state 26 QUOTE shift, and go to state 3 FN_LINK shift, and go to state 5 FN_START shift, and go to state 8 IT_OPEN shift, and go to state 12 UL_OPEN shift, and go to state 20 VERB_OPEN shift, and go to state 24 CODE_OPEN shift, and go to state 1 strike go to state 2 verb go to state 4 normal_string_element go to state 6 link go to state 9 quote go to state 10 elements go to state 28 fn_link go to state 14 element go to state 17 fn_define go to state 16 emphasis go to state 21 normal_strings go to state 19 italic go to state 22 under_line go to state 25 code go to state 27 state 2 8) element : strike _ $default reduce using rule 8 (element) state 3 25) quote : QUOTE _ $default reduce using rule 25 (quote) state 4 9) element : verb _ $default reduce using rule 9 (element) state 5 15) fn_link : FN_LINK _ $default reduce using rule 15 (fn_link) state 6 10) element : normal_string_element _ $default reduce using rule 10 (element) state 7 24) normal_strings : OTHER _ $default reduce using rule 24 (normal_strings) state 8 16) fn_define : FN_START _ elements FN_END OTHER shift, and go to state 7 EM_OPEN shift, and go to state 13 LINK_START shift, and go to state 18 LINK_URI shift, and go to state 23 ST_OPEN shift, and go to state 26 QUOTE shift, and go to state 3 FN_LINK shift, and go to state 5 FN_START shift, and go to state 8 IT_OPEN shift, and go to state 12 UL_OPEN shift, and go to state 20 VERB_OPEN shift, and go to state 24 CODE_OPEN shift, and go to state 1 strike go to state 2 verb go to state 4 normal_string_element go to state 6 link go to state 9 quote go to state 10 elements go to state 29 fn_link go to state 14 element go to state 17 fn_define go to state 16 emphasis go to state 21 normal_strings go to state 19 italic go to state 22 under_line go to state 25 code go to state 27 state 9 11) element : link _ $default reduce using rule 11 (element) state 10 12) element : quote _ $default reduce using rule 12 (element) state 11 $end shift, and go to state 30 state 12 18) italic : IT_OPEN _ elements IT_CLOSE OTHER shift, and go to state 7 EM_OPEN shift, and go to state 13 LINK_START shift, and go to state 18 LINK_URI shift, and go to state 23 ST_OPEN shift, and go to state 26 QUOTE shift, and go to state 3 FN_LINK shift, and go to state 5 FN_START shift, and go to state 8 IT_OPEN shift, and go to state 12 UL_OPEN shift, and go to state 20 VERB_OPEN shift, and go to state 24 CODE_OPEN shift, and go to state 1 strike go to state 2 verb go to state 4 normal_string_element go to state 6 link go to state 9 quote go to state 10 elements go to state 31 fn_link go to state 14 element go to state 17 fn_define go to state 16 emphasis go to state 21 normal_strings go to state 19 italic go to state 22 under_line go to state 25 code go to state 27 state 13 17) emphasis : EM_OPEN _ elements EM_CLOSE OTHER shift, and go to state 7 EM_OPEN shift, and go to state 13 LINK_START shift, and go to state 18 LINK_URI shift, and go to state 23 ST_OPEN shift, and go to state 26 QUOTE shift, and go to state 3 FN_LINK shift, and go to state 5 FN_START shift, and go to state 8 IT_OPEN shift, and go to state 12 UL_OPEN shift, and go to state 20 VERB_OPEN shift, and go to state 24 CODE_OPEN shift, and go to state 1 strike go to state 2 verb go to state 4 normal_string_element go to state 6 link go to state 9 quote go to state 10 elements go to state 32 fn_link go to state 14 element go to state 17 fn_define go to state 16 emphasis go to state 21 normal_strings go to state 19 italic go to state 22 under_line go to state 25 code go to state 27 state 14 13) element : fn_link _ $default reduce using rule 13 (element) state 15 1) content : elements _ 2) elements : elements _ element OTHER shift, and go to state 7 EM_OPEN shift, and go to state 13 LINK_START shift, and go to state 18 LINK_URI shift, and go to state 23 ST_OPEN shift, and go to state 26 QUOTE shift, and go to state 3 FN_LINK shift, and go to state 5 FN_START shift, and go to state 8 IT_OPEN shift, and go to state 12 UL_OPEN shift, and go to state 20 VERB_OPEN shift, and go to state 24 CODE_OPEN shift, and go to state 1 $default reduce using rule 1 (content) strike go to state 2 verb go to state 4 normal_string_element go to state 6 link go to state 9 quote go to state 10 fn_link go to state 14 element go to state 33 fn_define go to state 16 emphasis go to state 21 normal_strings go to state 19 italic go to state 22 under_line go to state 25 code go to state 27 state 16 14) element : fn_define _ $default reduce using rule 14 (element) state 17 3) elements : element _ $default reduce using rule 3 (elements) state 18 34) link : LINK_START _ link_descs LINK_END OTHER shift, and go to state 7 EM_OPEN shift, and go to state 13 IT_OPEN shift, and go to state 12 UL_OPEN shift, and go to state 20 CODE_OPEN shift, and go to state 1 normal_string_element go to state 34 normal_strings go to state 19 emphasis go to state 35 link_descs go to state 37 italic go to state 36 link_desc go to state 39 under_line go to state 38 code go to state 40 state 19 23) normal_strings : normal_strings _ OTHER 26) normal_string_element : normal_strings _ OTHER shift, and go to state 41 $default reduce using rule 26 (normal_string_element) state 20 19) under_line : UL_OPEN _ elements UL_CLOSE OTHER shift, and go to state 7 EM_OPEN shift, and go to state 13 LINK_START shift, and go to state 18 LINK_URI shift, and go to state 23 ST_OPEN shift, and go to state 26 QUOTE shift, and go to state 3 FN_LINK shift, and go to state 5 FN_START shift, and go to state 8 IT_OPEN shift, and go to state 12 UL_OPEN shift, and go to state 20 VERB_OPEN shift, and go to state 24 CODE_OPEN shift, and go to state 1 strike go to state 2 verb go to state 4 normal_string_element go to state 6 link go to state 9 quote go to state 10 elements go to state 42 fn_link go to state 14 element go to state 17 fn_define go to state 16 emphasis go to state 21 normal_strings go to state 19 italic go to state 22 under_line go to state 25 code go to state 27 state 21 4) element : emphasis _ $default reduce using rule 4 (element) state 22 5) element : italic _ $default reduce using rule 5 (element) state 23 35) link : LINK_URI _ $default reduce using rule 35 (link) state 24 21) verb : VERB_OPEN _ elements VERB_CLOSE OTHER shift, and go to state 7 EM_OPEN shift, and go to state 13 LINK_START shift, and go to state 18 LINK_URI shift, and go to state 23 ST_OPEN shift, and go to state 26 QUOTE shift, and go to state 3 FN_LINK shift, and go to state 5 FN_START shift, and go to state 8 IT_OPEN shift, and go to state 12 UL_OPEN shift, and go to state 20 VERB_OPEN shift, and go to state 24 CODE_OPEN shift, and go to state 1 strike go to state 2 verb go to state 4 normal_string_element go to state 6 link go to state 9 quote go to state 10 elements go to state 43 fn_link go to state 14 element go to state 17 fn_define go to state 16 emphasis go to state 21 normal_strings go to state 19 italic go to state 22 under_line go to state 25 code go to state 27 state 25 6) element : under_line _ $default reduce using rule 6 (element) state 26 22) strike : ST_OPEN _ elements ST_CLOSE OTHER shift, and go to state 7 EM_OPEN shift, and go to state 13 LINK_START shift, and go to state 18 LINK_URI shift, and go to state 23 ST_OPEN shift, and go to state 26 QUOTE shift, and go to state 3 FN_LINK shift, and go to state 5 FN_START shift, and go to state 8 IT_OPEN shift, and go to state 12 UL_OPEN shift, and go to state 20 VERB_OPEN shift, and go to state 24 CODE_OPEN shift, and go to state 1 strike go to state 2 verb go to state 4 normal_string_element go to state 6 link go to state 9 quote go to state 10 elements go to state 44 fn_link go to state 14 element go to state 17 fn_define go to state 16 emphasis go to state 21 normal_strings go to state 19 italic go to state 22 under_line go to state 25 code go to state 27 state 27 7) element : code _ $default reduce using rule 7 (element) state 28 2) elements : elements _ element 20) code : CODE_OPEN elements _ CODE_CLOSE OTHER shift, and go to state 7 EM_OPEN shift, and go to state 13 LINK_START shift, and go to state 18 LINK_URI shift, and go to state 23 ST_OPEN shift, and go to state 26 QUOTE shift, and go to state 3 FN_LINK shift, and go to state 5 FN_START shift, and go to state 8 IT_OPEN shift, and go to state 12 UL_OPEN shift, and go to state 20 VERB_OPEN shift, and go to state 24 CODE_OPEN shift, and go to state 1 CODE_CLOSE shift, and go to state 45 strike go to state 2 verb go to state 4 normal_string_element go to state 6 link go to state 9 quote go to state 10 fn_link go to state 14 element go to state 33 fn_define go to state 16 emphasis go to state 21 normal_strings go to state 19 italic go to state 22 under_line go to state 25 code go to state 27 state 29 2) elements : elements _ element 16) fn_define : FN_START elements _ FN_END OTHER shift, and go to state 7 EM_OPEN shift, and go to state 13 LINK_START shift, and go to state 18 LINK_URI shift, and go to state 23 ST_OPEN shift, and go to state 26 QUOTE shift, and go to state 3 FN_LINK shift, and go to state 5 FN_START shift, and go to state 8 FN_END shift, and go to state 46 IT_OPEN shift, and go to state 12 UL_OPEN shift, and go to state 20 VERB_OPEN shift, and go to state 24 CODE_OPEN shift, and go to state 1 strike go to state 2 verb go to state 4 normal_string_element go to state 6 link go to state 9 quote go to state 10 fn_link go to state 14 element go to state 33 fn_define go to state 16 emphasis go to state 21 normal_strings go to state 19 italic go to state 22 under_line go to state 25 code go to state 27 state 30 $end shift, and go to state 47 state 31 2) elements : elements _ element 18) italic : IT_OPEN elements _ IT_CLOSE OTHER shift, and go to state 7 EM_OPEN shift, and go to state 13 LINK_START shift, and go to state 18 LINK_URI shift, and go to state 23 ST_OPEN shift, and go to state 26 QUOTE shift, and go to state 3 FN_LINK shift, and go to state 5 FN_START shift, and go to state 8 IT_OPEN shift, and go to state 12 IT_CLOSE shift, and go to state 48 UL_OPEN shift, and go to state 20 VERB_OPEN shift, and go to state 24 CODE_OPEN shift, and go to state 1 strike go to state 2 verb go to state 4 normal_string_element go to state 6 link go to state 9 quote go to state 10 fn_link go to state 14 element go to state 33 fn_define go to state 16 emphasis go to state 21 normal_strings go to state 19 italic go to state 22 under_line go to state 25 code go to state 27 state 32 2) elements : elements _ element 17) emphasis : EM_OPEN elements _ EM_CLOSE OTHER shift, and go to state 7 EM_OPEN shift, and go to state 13 EM_CLOSE shift, and go to state 49 LINK_START shift, and go to state 18 LINK_URI shift, and go to state 23 ST_OPEN shift, and go to state 26 QUOTE shift, and go to state 3 FN_LINK shift, and go to state 5 FN_START shift, and go to state 8 IT_OPEN shift, and go to state 12 UL_OPEN shift, and go to state 20 VERB_OPEN shift, and go to state 24 CODE_OPEN shift, and go to state 1 strike go to state 2 verb go to state 4 normal_string_element go to state 6 link go to state 9 quote go to state 10 fn_link go to state 14 element go to state 33 fn_define go to state 16 emphasis go to state 21 normal_strings go to state 19 italic go to state 22 under_line go to state 25 code go to state 27 state 33 2) elements : elements element _ $default reduce using rule 2 (elements) state 34 33) link_desc : normal_string_element _ $default reduce using rule 33 (link_desc) state 35 29) link_desc : emphasis _ $default reduce using rule 29 (link_desc) state 36 30) link_desc : italic _ $default reduce using rule 30 (link_desc) state 37 27) link_descs : link_descs _ link_desc 34) link : LINK_START link_descs _ LINK_END OTHER shift, and go to state 7 EM_OPEN shift, and go to state 13 LINK_END shift, and go to state 50 IT_OPEN shift, and go to state 12 UL_OPEN shift, and go to state 20 CODE_OPEN shift, and go to state 1 normal_string_element go to state 34 normal_strings go to state 19 emphasis go to state 35 italic go to state 36 link_desc go to state 51 under_line go to state 38 code go to state 40 state 38 31) link_desc : under_line _ $default reduce using rule 31 (link_desc) state 39 28) link_descs : link_desc _ $default reduce using rule 28 (link_descs) state 40 32) link_desc : code _ $default reduce using rule 32 (link_desc) state 41 23) normal_strings : normal_strings OTHER _ $default reduce using rule 23 (normal_strings) state 42 2) elements : elements _ element 19) under_line : UL_OPEN elements _ UL_CLOSE OTHER shift, and go to state 7 EM_OPEN shift, and go to state 13 LINK_START shift, and go to state 18 LINK_URI shift, and go to state 23 ST_OPEN shift, and go to state 26 QUOTE shift, and go to state 3 FN_LINK shift, and go to state 5 FN_START shift, and go to state 8 IT_OPEN shift, and go to state 12 UL_OPEN shift, and go to state 20 UL_CLOSE shift, and go to state 52 VERB_OPEN shift, and go to state 24 CODE_OPEN shift, and go to state 1 strike go to state 2 verb go to state 4 normal_string_element go to state 6 link go to state 9 quote go to state 10 fn_link go to state 14 element go to state 33 fn_define go to state 16 emphasis go to state 21 normal_strings go to state 19 italic go to state 22 under_line go to state 25 code go to state 27 state 43 2) elements : elements _ element 21) verb : VERB_OPEN elements _ VERB_CLOSE OTHER shift, and go to state 7 EM_OPEN shift, and go to state 13 LINK_START shift, and go to state 18 LINK_URI shift, and go to state 23 ST_OPEN shift, and go to state 26 QUOTE shift, and go to state 3 FN_LINK shift, and go to state 5 FN_START shift, and go to state 8 IT_OPEN shift, and go to state 12 UL_OPEN shift, and go to state 20 VERB_OPEN shift, and go to state 24 VERB_CLOSE shift, and go to state 53 CODE_OPEN shift, and go to state 1 strike go to state 2 verb go to state 4 normal_string_element go to state 6 link go to state 9 quote go to state 10 fn_link go to state 14 element go to state 33 fn_define go to state 16 emphasis go to state 21 normal_strings go to state 19 italic go to state 22 under_line go to state 25 code go to state 27 state 44 2) elements : elements _ element 22) strike : ST_OPEN elements _ ST_CLOSE OTHER shift, and go to state 7 EM_OPEN shift, and go to state 13 LINK_START shift, and go to state 18 LINK_URI shift, and go to state 23 ST_OPEN shift, and go to state 26 ST_CLOSE shift, and go to state 54 QUOTE shift, and go to state 3 FN_LINK shift, and go to state 5 FN_START shift, and go to state 8 IT_OPEN shift, and go to state 12 UL_OPEN shift, and go to state 20 VERB_OPEN shift, and go to state 24 CODE_OPEN shift, and go to state 1 strike go to state 2 verb go to state 4 normal_string_element go to state 6 link go to state 9 quote go to state 10 fn_link go to state 14 element go to state 33 fn_define go to state 16 emphasis go to state 21 normal_strings go to state 19 italic go to state 22 under_line go to state 25 code go to state 27 state 45 20) code : CODE_OPEN elements CODE_CLOSE _ $default reduce using rule 20 (code) state 46 16) fn_define : FN_START elements FN_END _ $default reduce using rule 16 (fn_define) state 47 $default accept state 48 18) italic : IT_OPEN elements IT_CLOSE _ $default reduce using rule 18 (italic) state 49 17) emphasis : EM_OPEN elements EM_CLOSE _ $default reduce using rule 17 (emphasis) state 50 34) link : LINK_START link_descs LINK_END _ $default reduce using rule 34 (link) state 51 27) link_descs : link_descs link_desc _ $default reduce using rule 27 (link_descs) state 52 19) under_line : UL_OPEN elements UL_CLOSE _ $default reduce using rule 19 (under_line) state 53 21) verb : VERB_OPEN elements VERB_CLOSE _ $default reduce using rule 21 (verb) state 54 22) strike : ST_OPEN elements ST_CLOSE _ $default reduce using rule 22 (strike)