Skip to content
Snippets Groups Projects
Commit 1bd93f0f authored by Jan Trávníček's avatar Jan Trávníček
Browse files

try parse regexps in input box

parent 33fc936b
No related branches found
No related tags found
No related merge requests found
......@@ -52,6 +52,7 @@ namespace Converter {
return QString::fromStdString(value.getValue(true));
}
catch (const exception::CommonException& e) {
std::cerr << e << std::endl;
return std::nullopt;
}
catch (const std::exception& e) {
......@@ -125,7 +126,7 @@ namespace Converter {
 
std::vector<bool> moves;
moves.push_back(true);
for (const auto& type: { "automaton::Automaton", "grammar::Grammar"}) {
for (const auto& type: { "automaton::Automaton", "grammar::Grammar", "regexp::RegExp"}) {
try {
return abstraction::AlgorithmHelper::eval("string::Parse",
{type},
......
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