[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
catch the error in the grammar
From: |
darkstar |
Subject: |
catch the error in the grammar |
Date: |
Wed, 6 Sep 2006 03:01:22 -0700 (PDT) |
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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- catch the error in the grammar,
darkstar <=