Grammar 0 $accept: file $end 1 file: turn_debug_on field_list 2 turn_debug_on: %empty 3 field_list: %empty 4 | field_list field 5 field: field_name '=' value ';' 6 field_name: NAME 7 value: integer 8 | real 9 | string 10 | structure 11 | list 12 | enumeration 13 integer: INTEGER 14 | '-' INTEGER 15 real: REAL 16 | '-' REAL 17 string: STRING 18 | string STRING 19 structure: '{' field_list '}' 20 list: '[' optional_value_list ']' 21 optional_value_list: %empty 22 | value_list optional_comma 23 value_list: list_value 24 | value_list ',' list_value 25 $@1: %empty 26 list_value: $@1 value 27 optional_comma: %empty 28 | ',' 29 enumeration: NAME Terminals, with rules where they appear $end (0) 0 ',' (44) 24 28 '-' (45) 14 16 ';' (59) 5 '=' (61) 5 '[' (91) 20 ']' (93) 20 '{' (123) 19 '}' (125) 19 error (256) INTEGER (258) 13 14 NAME (259) 6 29 REAL (260) 15 16 STRING (261) 17 18 Nonterminals, with rules where they appear $accept (15) on left: 0 file (16) on left: 1, on right: 0 turn_debug_on (17) on left: 2, on right: 1 field_list (18) on left: 3 4, on right: 1 4 19 field (19) on left: 5, on right: 4 field_name (20) on left: 6, on right: 5 value (21) on left: 7 8 9 10 11 12, on right: 5 26 integer (22) on left: 13 14, on right: 7 real (23) on left: 15 16, on right: 8 string (24) on left: 17 18, on right: 9 18 structure (25) on left: 19, on right: 10 list (26) on left: 20, on right: 11 optional_value_list (27) on left: 21 22, on right: 20 value_list (28) on left: 23 24, on right: 22 24 list_value (29) on left: 26, on right: 23 24 $@1 (30) on left: 25, on right: 26 optional_comma (31) on left: 27 28, on right: 22 enumeration (32) on left: 29, on right: 12 State 0 0 $accept: . file $end $default reduce using rule 2 (turn_debug_on) file go to state 1 turn_debug_on go to state 2 State 1 0 $accept: file . $end $end shift, and go to state 3 State 2 1 file: turn_debug_on . field_list $default reduce using rule 3 (field_list) field_list go to state 4 State 3 0 $accept: file $end . $default accept State 4 1 file: turn_debug_on field_list . 4 field_list: field_list . field NAME shift, and go to state 5 $default reduce using rule 1 (file) field go to state 6 field_name go to state 7 State 5 6 field_name: NAME . $default reduce using rule 6 (field_name) State 6 4 field_list: field_list field . $default reduce using rule 4 (field_list) State 7 5 field: field_name . '=' value ';' '=' shift, and go to state 8 State 8 5 field: field_name '=' . value ';' INTEGER shift, and go to state 9 NAME shift, and go to state 10 REAL shift, and go to state 11 STRING shift, and go to state 12 '-' shift, and go to state 13 '{' shift, and go to state 14 '[' shift, and go to state 15 value go to state 16 integer go to state 17 real go to state 18 string go to state 19 structure go to state 20 list go to state 21 enumeration go to state 22 State 9 13 integer: INTEGER . $default reduce using rule 13 (integer) State 10 29 enumeration: NAME . $default reduce using rule 29 (enumeration) State 11 15 real: REAL . $default reduce using rule 15 (real) State 12 17 string: STRING . $default reduce using rule 17 (string) State 13 14 integer: '-' . INTEGER 16 real: '-' . REAL INTEGER shift, and go to state 23 REAL shift, and go to state 24 State 14 19 structure: '{' . field_list '}' $default reduce using rule 3 (field_list) field_list go to state 25 State 15 20 list: '[' . optional_value_list ']' ']' reduce using rule 21 (optional_value_list) $default reduce using rule 25 ($@1) optional_value_list go to state 26 value_list go to state 27 list_value go to state 28 $@1 go to state 29 State 16 5 field: field_name '=' value . ';' ';' shift, and go to state 30 State 17 7 value: integer . $default reduce using rule 7 (value) State 18 8 value: real . $default reduce using rule 8 (value) State 19 9 value: string . 18 string: string . STRING STRING shift, and go to state 31 $default reduce using rule 9 (value) State 20 10 value: structure . $default reduce using rule 10 (value) State 21 11 value: list . $default reduce using rule 11 (value) State 22 12 value: enumeration . $default reduce using rule 12 (value) State 23 14 integer: '-' INTEGER . $default reduce using rule 14 (integer) State 24 16 real: '-' REAL . $default reduce using rule 16 (real) State 25 4 field_list: field_list . field 19 structure: '{' field_list . '}' NAME shift, and go to state 5 '}' shift, and go to state 32 field go to state 6 field_name go to state 7 State 26 20 list: '[' optional_value_list . ']' ']' shift, and go to state 33 State 27 22 optional_value_list: value_list . optional_comma 24 value_list: value_list . ',' list_value ',' shift, and go to state 34 $default reduce using rule 27 (optional_comma) optional_comma go to state 35 State 28 23 value_list: list_value . $default reduce using rule 23 (value_list) State 29 26 list_value: $@1 . value INTEGER shift, and go to state 9 NAME shift, and go to state 10 REAL shift, and go to state 11 STRING shift, and go to state 12 '-' shift, and go to state 13 '{' shift, and go to state 14 '[' shift, and go to state 15 value go to state 36 integer go to state 17 real go to state 18 string go to state 19 structure go to state 20 list go to state 21 enumeration go to state 22 State 30 5 field: field_name '=' value ';' . $default reduce using rule 5 (field) State 31 18 string: string STRING . $default reduce using rule 18 (string) State 32 19 structure: '{' field_list '}' . $default reduce using rule 19 (structure) State 33 20 list: '[' optional_value_list ']' . $default reduce using rule 20 (list) State 34 24 value_list: value_list ',' . list_value 28 optional_comma: ',' . ']' reduce using rule 28 (optional_comma) $default reduce using rule 25 ($@1) list_value go to state 37 $@1 go to state 29 State 35 22 optional_value_list: value_list optional_comma . $default reduce using rule 22 (optional_value_list) State 36 26 list_value: $@1 value . $default reduce using rule 26 (list_value) State 37 24 value_list: value_list ',' list_value . $default reduce using rule 24 (value_list)