ComposedExpression

data class ComposedExpression(val expressions: List<Expression>) : Expression

An Expression composed by multiple sub-expressions.

For example, in the Quarkdown source: .somefunction {three plus two is .sum {3} {2} and three minus two is .subtract {3} {2}} The argument to somefunction holds a composed expression built by these sub-expressions:

  • StringValue(three plus two is )

  • FunctionCall(sum, 3, 2)

  • StringValue( and three minus two is )

  • FunctionCall(subtract, 3, 2)

Parameters

expressions

sub-expressions

Constructors

Link copied to clipboard
constructor(expressions: List<Expression>)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun <T> accept(visitor: ExpressionVisitor<T>): T

Accepts a visitor.

Link copied to clipboard

Chains two expressions together, which is used in ComposedExpressions.

Link copied to clipboard