i try to catch the error position, and give out in an error File:
stmnts: primary_terminal exp '\n' {/* read something...*/ }
| primary_terminal error '\n' {/* give out the eror line for exp */; yyerrok;}
| primary_terminal exp error {/* give out the eror line for newline */; yyerrok;}
if i try to give out the errorline for primary_terminal by adding a new opition: error exp '\n' {/* give out the eror line for primary_terminal */; yyerrok;},
so caused the rule stmnts conflicts.
how will that be agreed?
stmnts: primary_terminal exp '\n' {/* read something...*/ }
| primary_terminal error '\n' {/* give out the eror line for exp */; yyerrok;}
| primary_terminal exp error {/* give out the eror line for newline */; yyerrok;}
if i try to give out the errorline for primary_terminal by adding a new opition: error exp '\n' {/* give out the eror line for primary_terminal */; yyerrok;},
so caused the rule stmnts conflicts.
how will that be agreed?