Skip to content

Commit

Permalink
Remove old epsilon_closure after double checking it matches the moved…
Browse files Browse the repository at this point in the history
… one in case merging caused issues.
  • Loading branch information
SharafMohamed committed Dec 11, 2024
1 parent 4cebc06 commit 80979de
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions src/log_surgeon/Lexer.tpp
Original file line number Diff line number Diff line change
Expand Up @@ -389,30 +389,6 @@ void Lexer<TypedNfaState, TypedDfaState>::generate() {
}
}
}
for (auto const* dest_state : current_state->get_epsilon_transitions()) {
stack.push(dest_state);
}

// TODO: currently treat tagged transitions as epsilon transitions
for (auto const& positive_tagged_start_transition :
current_state->get_positive_tagged_start_transitions())
{
stack.push(positive_tagged_start_transition.get_dest_state());
}
auto const& optional_positive_tagged_end_transition
= current_state->get_positive_tagged_end_transition();
if (optional_positive_tagged_end_transition.has_value()) {
stack.push(optional_positive_tagged_end_transition.value().get_dest_state());
}

auto const& optional_negative_tagged_transition
= current_state->get_negative_tagged_transition();
if (optional_negative_tagged_transition.has_value()) {
stack.push(optional_negative_tagged_transition.value().get_dest_state());
}
}
return closure_set;
}

template <typename TypedNfaState, typename TypedDfaState>
auto Lexer<TypedNfaState, TypedDfaState>::nfa_to_dfa(finite_automata::Nfa<TypedNfaState>& nfa
Expand Down

0 comments on commit 80979de

Please sign in to comment.