On 14 Aug 2005, at 18:53, Roberto Mandall wrote:

open_if_statement : IF boolean_expression THEN  statement
|IF boolean_expression THEN closed_statement ELSE open_statement;

closed_if_statement : IF boolean_expression THEN closed_statement ELSE closed_statement;

i want to add some semantic actions after the then ,but i get conflicts,

You can use token precedences (like %nonassoc) on "ELSE" and "THEN".

  Hans Aberg




_______________________________________________
[email protected] http://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to