mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 15:10:19 +00:00
21 lines
497 B
C++
21 lines
497 B
C++
/*
|
|
* Copyright (c) 2021, Ali Mohammad Pur <mpfard@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "Forward.h"
|
|
#include <AK/Vector.h>
|
|
|
|
namespace regex {
|
|
|
|
class Optimizer {
|
|
public:
|
|
static void append_alternation(ByteCode& target, ByteCode&& left, ByteCode&& right);
|
|
static void append_alternation(ByteCode& target, Span<ByteCode> alternatives);
|
|
static void append_character_class(ByteCode& target, Vector<CompareTypeAndValuePair>&& pairs);
|
|
};
|
|
|
|
}
|