Operator

interface Operator<S, C, R>

Internal operator representation, consisting of the precedence and a build function.

Inheritors

Types

Link copied to clipboard
class Binary<S, C, R>(val precedence: Int, val rtl: Boolean, val build: (S, C, String, R, R) -> R) : ConfigurableExpressionParser.Operator<S, C, R>

The precedence, binding direction and build function for a binary operator.

Link copied to clipboard
class Unary<S, C, R>(val precedence: Int, val build: (S, C, String, R) -> R) : ConfigurableExpressionParser.Operator<S, C, R>

The precedence and build function for a unary operator.

Properties

Link copied to clipboard
abstract val precedence: Int