stage1_2/iec.y
changeset 20 81a06a308b7e
parent 17 38754701ac41
child 28 5b170c9ce134
equal deleted inserted replaced
19:cee3c4e5afe2 20:81a06a308b7e
    68 
    68 
    69 /* Include debuging code.
    69 /* Include debuging code.
    70  * Printing of debug info must then be activated by setting
    70  * Printing of debug info must then be activated by setting
    71  * the variable yydebug to 1.
    71  * the variable yydebug to 1.
    72  */
    72  */
    73 #define YYDEBUG 0
    73 #define YYDEBUG 1
    74 
    74 
    75 
    75 
    76 /* file with declaration of absyntax classes... */
    76 /* file with declaration of absyntax classes... */
    77 #include "../absyntax/absyntax.hh"
    77 #include "../absyntax/absyntax.hh"
    78 
    78 
   149 %}
   149 %}
   150 
   150 
   151 
   151 
   152 
   152 
   153 
   153 
   154 %glr-parser
   154 // %glr-parser
   155 // %expect-rr 1
   155 // %expect-rr 1
   156 
   156 
   157 
   157 
   158 
   158 
   159 
   159 
  5061 
  5061 
  5062 
  5062 
  5063 case_element:
  5063 case_element:
  5064   case_list ':' statement_list
  5064   case_list ':' statement_list
  5065 	{$$ = new case_element_c($1, $3);}
  5065 	{$$ = new case_element_c($1, $3);}
       
  5066 | case_list ':' statement_list identifier BOGUS_TOKEN_ID
       
  5067 	{$$ = new case_element_c($1, $3); ERROR;}
  5066 ;
  5068 ;
  5067 
  5069 
  5068 
  5070 
  5069 case_list:
  5071 case_list:
  5070   case_list_element
  5072   case_list_element