mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 14:28:49 +00:00
This currently tries to convert forking loops to atomic groups, and unify the left side of alternations.
18 lines
290 B
C++
18 lines
290 B
C++
/*
|
|
* Copyright (c) 2021, Ali Mohammad Pur <mpfard@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "Forward.h"
|
|
|
|
namespace regex {
|
|
|
|
class Optimizer {
|
|
public:
|
|
static void append_alternation(ByteCode& target, ByteCode& left, ByteCode& right);
|
|
};
|
|
|
|
}
|