Skip to content
Snippets Groups Projects
Commit ce660561 authored by Tomáš Pecka's avatar Tomáš Pecka
Browse files

Algo: Glushkov algorithms for FormalRegExp

parent 88db56e7
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -77,8 +77,8 @@ automaton::NFA < > ToAutomatonGlushkov::convert ( const regexp::UnboundedRegExp
return automaton;
}
 
automaton::NFA < > ToAutomatonGlushkov::convert ( const regexp::FormalRegExp < > & /* regexp */ ) {
throw exception::CommonException ( "Glushkov: Converting FormalRegExp NYI" ); // TODO
automaton::NFA < > ToAutomatonGlushkov::convert ( const regexp::FormalRegExp < > & regexp ) {
return ToAutomatonGlushkov::convert ( regexp::UnboundedRegExp < > ( regexp ) );
}
 
auto ToAutomatonGlushkovUnboundedRegExp = registration::AbstractRegister < ToAutomatonGlushkov, automaton::NFA < >, const regexp::UnboundedRegExp < > & > ( ToAutomatonGlushkov::convert );
......
......@@ -82,8 +82,8 @@ grammar::RightRG < > ToGrammarRightRGGlushkov::convert ( const regexp::Unbounded
return grammar;
}
 
grammar::RightRG < > ToGrammarRightRGGlushkov::convert ( const regexp::FormalRegExp < > & /* regexp */ ) {
throw exception::CommonException ( "Glushkov: Converting FormalRegExp NYI" ); // TODO
grammar::RightRG < > ToGrammarRightRGGlushkov::convert ( const regexp::FormalRegExp < > & regexp ) {
return ToGrammarRightRGGlushkov::convert ( regexp::UnboundedRegExp < > ( regexp ) );
}
 
auto ToGrammarRightRGGlushkovUnboundedRegExp = registration::AbstractRegister < ToGrammarRightRGGlushkov, grammar::RightRG < >, const regexp::UnboundedRegExp < > & > ( ToGrammarRightRGGlushkov::convert );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment