Skip to content

Commit

Permalink
(#318) More linter fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Robby-the-paladin committed Jan 22, 2024
1 parent 12fad73 commit ada92fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion libs/AutomataParser/include/AutomataParser/Parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
#include <vector>
#include <map>
#include <unordered_set>
#include <set>
#include <string>
#include <sstream>
#include <lexy/callback/string.hpp>
#include <lexy/lexeme.hpp>
#include <lexy/callback/string.hpp>
#include "Lexer.h"
#define lexy_ascii_child lexy::_pt_node<lexy::_bra, void>

Expand Down
6 changes: 2 additions & 4 deletions libs/AutomataParser/src/Parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,10 @@ FiniteAutomaton Parser::parse_FA(std::string filename) {
for (int i = 0; i < beg.size(); i++) {
if (symb[i] == "eps") {
states[states_id[beg[i]]].set_transition(states_id[end[i]], Symbol::Epsilon);
}
else {
} else {
if (symb[i][0] == '&') {
throw std::runtime_error("AutomataParser::Parser::parse_FA ERROR(MFA transition found)");
}
else {
} else {
states[states_id[beg[i]]].set_transition(states_id[end[i]], symb[i]);
alphabet.insert(Symbol(symb[i]));
}
Expand Down

0 comments on commit ada92fb

Please sign in to comment.