This is a pretty good idea, but I'm not sure if it's possible. For
instance in the case of an if statement I modified my grammar as such:
if_statement:
t_IF t_LPAREN expression t_RPAREN {yyexpect_statement;} statement
t_ELSE statement
<...>
| t_IF t_LPAREN expression t_RPAREN {yyexpe
On 14 Nov 2008, at 19:35, Marcel Laverdet wrote:
This is a pretty good idea, but I'm not sure if it's possible. For
instance in the case of an if statement I modified my grammar as such:
if_statement:
t_IF t_LPAREN expression t_RPAREN {yyexpect_statement;}
statement t_ELSE statement
<.