OrderSet
Represents a regex set. Its toNode method converts the set into a group with OR expressions to simplify the resulting binary tree
Functions
Add an Op to the userDefinedOps.
Add an OrderFragment to the orderNodes. All instances of the fragment object are removed from the list before the OrderNode from fragment is added.
Add an OrderToken to the orderNodes
Minimalist way to create a group with a function call. However, this minimalist group constructor only works with OrderTokens
Adds an alternation token (|
) between the current OrderFragment and other. All OrderToken are converted into OrderFragments.
Remove all instance of fragment from the orderNodes
Represent this OrderSet (OrderFragment) as a binary syntax tree.
Add an Op to the userDefinedOps
Add an OrderFragment to the orderNodes
Add an OrderToken to the orderNodes