symbol_list_free ($3);
}
insert_after(2, "</PYACC_Section1Or2_CodeProps>");
- insert_after(2, "</PYACC_Section1Or2_TaggedSymbols>");
- insert_before(2, "<PYACC_Section1Or2_TaggedSymbols>");
sprintf(gram_piece_temp, "<PYACC_Section1Or2_CodeProps _type=\"%d\">", $1);
insert_before(0, gram_piece_temp);
}
current_class = unknown_sym;
current_type = NULL;
insert_after(2, "</PYACC_Section1Or2_NTerm>");
- insert_after(2, "</PYACC_Section1Or2_TaggedSymbols>");
- insert_before(2, "<PYACC_Section1Or2_TaggedSymbols>");
insert_before(0, "<PYACC_Section1Or2_NTerm>");
}
| "%token" { current_class = token_sym; } symbol_defs.1
current_class = unknown_sym;
current_type = NULL;
insert_after(2, "</PYACC_Section1Or2_Token>");
- insert_after(2, "</PYACC_Section1Or2_TaggedSymbols>");
- insert_before(2, "<PYACC_Section1Or2_TaggedSymbols>");
insert_before(0, "<PYACC_Section1Or2_Token>");
}
| "%type" TAG symbols.1
symbol_type_set (list->content.sym, $2, @2);
symbol_list_free ($3);
insert_after(2, "</PYACC_Section1Or2_Type>");
- insert_after(2, "</PYACC_Section1Or2_TaggedSymbols>");
- insert_before(1, "<PYACC_Section1Or2_TaggedSymbols>");
insert_before(0, "<PYACC_Section1Or2_Type>");
}
;
symbol_list_free ($3);
current_type = NULL;
insert_after(2, "</PYACC_Section1Or2_Precedence>");
- insert_after(2, "</PYACC_Section1Or2_TaggedSymbols>");
- insert_before(1, "<PYACC_Section1Or2_TaggedSymbols>");
sprintf(gram_piece_temp, "<PYACC_Section1Or2_Precedence _type=\"%d\">", ($1 & 3) - 1); /* -1 precedence, 0 right, 1 left, 2 nonassoc */
insert_before(0, gram_piece_temp);
}