/* * Copyright (c) 2021, Ali Mohammad Pur * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include "Forward.h" #include namespace regex { class Optimizer { public: static void append_alternation(ByteCode& target, ByteCode&& left, ByteCode&& right); static void append_alternation(ByteCode& target, Span alternatives); static void append_character_class(ByteCode& target, Vector&& pairs); }; }