normalize function
Implementation
RegExpRecipe normalize(RegExpRecipe recipe) {
return switch (recipe) {
JoinedRegExpRecipe(tag: RegExpTag.either) => _normalizeEither(recipe),
AugmentedRegExpRecipe(tag: RegExpTag.behindIsNot) => _normalizeBehindIsNot(recipe),
AugmentedRegExpRecipe(tag: RegExpTag.behindIs) => _normalizeBehindIs(recipe),
AugmentedRegExpRecipe(tag: RegExpTag.aheadIsNot) => _normalizeAheadIsNot(recipe),
AugmentedRegExpRecipe(tag: RegExpTag.aheadIs) => _normalizeAheadIs(recipe),
_ => recipe,
};
}