Note that there are some explanatory texts on larger screens.

plurals
  1. POyacc shift/reduce conflict. It really serious complexity
    text
    copied!<p>I was trying many many time to solve this conflict.</p> <p>But I don't know why occur conflict here.</p> <p>2 conflicts occur at compliation time.</p> <p>yacc(bison) error goes:</p> <pre><code>State 314 conflicts: 1 shift/reduce State 315 conflicts: 1 shift/reduce state 314 7 c_complex_object_id: type_identifier . 8 | type_identifier . V_LOCAL_TERM_CODE_REF V_LOCAL_TERM_CODE_REF shift, and go to state 77 V_LOCAL_TERM_CODE_REF [reduce using rule 7 (c_complex_object_id)] $default reduce using rule 7 (c_complex_object_id) state 315 127 c_integer_spec: integer_value . 184 ordinal: integer_value . SYM_INTERVAL_DELIM V_QUALIFIED_TERM_CODE_REF 201 integer_list_value: integer_value . ',' integer_value 203 | integer_value . ',' SYM_LIST_CONTINUE SYM_INTERVAL_DELIM shift, and go to state 380 ',' shift, and go to state 200 SYM_INTERVAL_DELIM [reduce using rule 127 (c_integer_spec)] $default reduce using rule 127 (c_integer_spec) state 77 8 c_complex_object_id: type_identifier V_LOCAL_TERM_CODE_REF . $default reduce using rule 8 (c_complex_object_id) state 380 184 ordinal: integer_value SYM_INTERVAL_DELIM . V_QUALIFIED_TERM_CODE_REF V_QUALIFIED_TERM_CODE_REF shift, and go to state 422 state 200 201 integer_list_value: integer_value ',' . integer_value 203 | integer_value ',' . SYM_LIST_CONTINUE V_INTEGER shift, and go to state 2 SYM_LIST_CONTINUE shift, and go to state 276 '+' shift, and go to state 170 '-' shift, and go to state 171 integer_value go to state 277 ... </code></pre> <p>yacc source goes:</p> <pre><code>c_complex_object_id : type_identifier | type_identifier V_LOCAL_TERM_CODE_REF ; type_identifier : '(' V_TYPE_IDENTIFIER ')' | '(' V_GENERIC_TYPE_IDENTIFIER ')' | V_TYPE_IDENTIFIER | V_GENERIC_TYPE_IDENTIFIER ; c_integer_spec : integer_value | integer_list_value | integer_interval_value ; c_integer : c_integer_spec | c_integer_spec ';' integer_value | c_integer_spec ';' error ; ordinal : integer_value SYM_INTERVAL_DELIM V_QUALIFIED_TERM_CODE_REF ; integer_list_value : integer_value ',' integer_value | integer_value ',' SYM_LIST_CONTINUE ; integer_value : V_INTEGER | '+' V_INTEGER | '-' V_INTEGER ; </code></pre> <p>I have two problems above. What's wrong with it?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload