Package-level declarations

Types

Link copied to clipboard
data class AlternativeOrderNode(val left: OrderNode, val right: OrderNode) : OrderNode

Represents a regex OR ('|')

Link copied to clipboard

Base class for Order, OrderGroup and OrderSet. Creates a binary tree of the given regex with its toNode method.

Link copied to clipboard
interface OrderFragment
Link copied to clipboard

Represents a regex group

Link copied to clipboard
sealed interface OrderNode : OrderFragment
Link copied to clipboard

All the available quantifiers for this simple regex like DSL.

Link copied to clipboard
class OrderSet(negate: Boolean) : OrderBuilder

Represents a regex set. Its toNode method converts the set into a group with OR expressions to simplify the resulting binary tree

Link copied to clipboard

Allows the syntactic sugar to create a set with the 'get' operator.

Link copied to clipboard
typealias OrderToken = KFunction<Op>
Link copied to clipboard
data class QuantifierOrderNode(val child: OrderNode, val type: OrderQuantifier, val value: Any? = null) : OrderNode

Represents a regex quantifier like: '*', '?', etc.

Link copied to clipboard
data class SequenceOrderNode(val left: OrderNode, val right: OrderNode) : OrderNode

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

Link copied to clipboard
data class TerminalOrderNode(val baseName: String, val opName: String) : OrderNode

Represents an OrderToken.

Functions

Link copied to clipboard
fun OrderToken.getOp(vararg arguments: Any? = Array<Any?>(parameters.size) { null }): Op