SequenceOrderNode

data class SequenceOrderNode(val left: OrderNode, val right: OrderNode) : OrderNode(source)

Represents a regex sequence, where one OrderNode must be followed by another OrderNode

Constructors

Link copied to clipboard
constructor(left: OrderNode, right: OrderNode)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun applyToAll(block: OrderNode.() -> Unit)

Apply the given block to each OrderNode in this OrderNode. Uses Depth First Search (DFS).

Link copied to clipboard

Adds an alternation token (|) between the current OrderFragment and other. All OrderToken are converted into OrderFragments.

Link copied to clipboard
open override fun toNode(): OrderNode

Convert this OrderNode to a binary syntax tree