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?
--
View this message in context:
http://www.nabble.com/catch-the-error-in-the-grammar-tf2225882.html#a6168211
Sent from the Gnu - Bison - Help forum at Nabble.com.
_______________________________________________
[email protected] http://lists.gnu.org/mailman/listinfo/help-bison