Skip to content

Commit

Permalink
Add missing alogrithm header; Update test-NFA.
Browse files Browse the repository at this point in the history
  • Loading branch information
SharafMohamed committed Dec 8, 2024
1 parent 7b0a86c commit 2632616
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
1 change: 1 addition & 0 deletions src/log_surgeon/finite_automata/TaggedTransition.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#ifndef LOG_SURGEON_FINITE_AUTOMATA_TAGGED_TRANSITION
#define LOG_SURGEON_FINITE_AUTOMATA_TAGGED_TRANSITION

#include <algorithm>
#include <cstdint>
#include <optional>
#include <ranges>
Expand Down
18 changes: 9 additions & 9 deletions tests/test-NFA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,22 @@
#include <log_surgeon/SchemaParser.hpp>

using log_surgeon::cSizeOfByte;
using log_surgeon::finite_automata::NfaByteState;
using log_surgeon::finite_automata::ByteNfaState;
using log_surgeon::Schema;
using log_surgeon::SchemaVarAST;
using std::string;
using std::stringstream;
using std::vector;

using ByteLexicalRule = log_surgeon::LexicalRule<NfaByteState>;
using ByteNFA = log_surgeon::finite_automata::Nfa<NfaByteState>;
using RegexASTCatByte = log_surgeon::finite_automata::RegexASTCat<NfaByteState>;
using RegexASTCaptureByte = log_surgeon::finite_automata::RegexASTCapture<NfaByteState>;
using RegexASTGroupByte = log_surgeon::finite_automata::RegexASTGroup<NfaByteState>;
using RegexASTLiteralByte = log_surgeon::finite_automata::RegexASTLiteral<NfaByteState>;
using ByteLexicalRule = log_surgeon::LexicalRule<ByteNfaState>;
using ByteNFA = log_surgeon::finite_automata::Nfa<ByteNfaState>;
using RegexASTCatByte = log_surgeon::finite_automata::RegexASTCat<ByteNfaState>;
using RegexASTCaptureByte = log_surgeon::finite_automata::RegexASTCapture<ByteNfaState>;
using RegexASTGroupByte = log_surgeon::finite_automata::RegexASTGroup<ByteNfaState>;
using RegexASTLiteralByte = log_surgeon::finite_automata::RegexASTLiteral<ByteNfaState>;
using RegexASTMultiplicationByte
= log_surgeon::finite_automata::RegexASTMultiplication<NfaByteState>;
using RegexASTOrByte = log_surgeon::finite_automata::RegexASTOr<NfaByteState>;
= log_surgeon::finite_automata::RegexASTMultiplication<ByteNfaState>;
using RegexASTOrByte = log_surgeon::finite_automata::RegexASTOr<ByteNfaState>;

TEST_CASE("Test NFA", "[NFA]") {
Schema schema;
Expand Down
12 changes: 6 additions & 6 deletions tests/test-lexer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ using std::vector;
using std::wstring_convert;

using RegexASTCatByte
= log_surgeon::finite_automata::RegexASTCat<log_surgeon::finite_automata::NfaByteState>;
= log_surgeon::finite_automata::RegexASTCat<log_surgeon::finite_automata::ByteNfaState>;
using RegexASTCaptureByte
= log_surgeon::finite_automata::RegexASTCapture<log_surgeon::finite_automata::NfaByteState>;
= log_surgeon::finite_automata::RegexASTCapture<log_surgeon::finite_automata::ByteNfaState>;
using RegexASTGroupByte
= log_surgeon::finite_automata::RegexASTGroup<log_surgeon::finite_automata::NfaByteState>;
= log_surgeon::finite_automata::RegexASTGroup<log_surgeon::finite_automata::ByteNfaState>;
using RegexASTLiteralByte
= log_surgeon::finite_automata::RegexASTLiteral<log_surgeon::finite_automata::NfaByteState>;
= log_surgeon::finite_automata::RegexASTLiteral<log_surgeon::finite_automata::ByteNfaState>;
using RegexASTMultiplicationByte = log_surgeon::finite_automata::RegexASTMultiplication<
log_surgeon::finite_automata::NfaByteState>;
log_surgeon::finite_automata::ByteNfaState>;
using RegexASTOrByte
= log_surgeon::finite_automata::RegexASTOr<log_surgeon::finite_automata::NfaByteState>;
= log_surgeon::finite_automata::RegexASTOr<log_surgeon::finite_automata::ByteNfaState>;
using log_surgeon::SchemaVarAST;

namespace {
Expand Down

0 comments on commit 2632616

Please sign in to comment.