feat(frontends/lean/parse_table): avoid duplicates in the parse table
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
ab2bbaef3f
commit
0480dab986
1 changed files with 1 additions and 1 deletions
|
@ -234,7 +234,7 @@ parse_table parse_table::add_core(unsigned num, transition const * ts, expr cons
|
|||
if (!overload)
|
||||
r.m_ptr->m_accept = list<expr>(a);
|
||||
else
|
||||
r.m_ptr->m_accept = list<expr>(a, r.m_ptr->m_accept);
|
||||
r.m_ptr->m_accept = list<expr>(a, remove(r.m_ptr->m_accept, a));
|
||||
} else {
|
||||
auto * it = r.m_ptr->m_children.find(ts->get_token());
|
||||
parse_table new_child;
|
||||
|
|
Loading…
Reference in a new issue