This transformer will simplify the AST by doing trivial inlining operations.
It will:
a(?:b)c
abc
(?:(?:a|b)|c)
(?:a|b|c)
ab{1}c
ab{0}c
ac
(?!(?<!a))
(?<=a)
(?!a(?=b))
(?!ab)
This transformer should be used in combination with removeDeadBranches to handle trivial simplifications.
Optional
This transformer will simplify the AST by doing trivial inlining operations.
It will:
a(?:b)c
=>abc
).(?:(?:a|b)|c)
=>(?:a|b|c)
).ab{1}c
=>abc
).ab{0}c
=>ac
).(?!(?<!a))
=>(?<=a)
).(?!a(?=b))
=>(?!ab)
).This transformer should be used in combination with removeDeadBranches to handle trivial simplifications.