StyleRuleTree

class StyleRuleTree(contexts: Set<StyleRuleContext>, val solutions: List<ValidatedStylePattern> = emptyList())

A StyleRuleTree comprises:

  1. The complete set of live contexts for some position K within a sequence S of style classifiers,

  2. A lazily populated transition table from possible next style classifiers to successor trees, and

  3. The solutions accumulated so far during a traversal from the roottree.

Author

Todd L Smith

Constructors

Link copied to clipboard
fun StyleRuleTree(contexts: Set<StyleRuleContext>, solutions: List<ValidatedStylePattern> = emptyList())

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
operator fun get(classifier: String): StyleRuleTree

Accept classifier as the next style classifier in the current input sequence S; this involves using the wildcard sentinel iff none of the live contexts are expecting the incoming classifier explicitly.

Properties

Link copied to clipboard
val isComplete: Boolean

Determine whether the solution set is complete. The set is complete only when no contexts survive. Ordinarily, solutions are evaluated when the sequence S of style classifiers is exhausted, not when all contexts have been eliminated.

Link copied to clipboard
val solutions: List<ValidatedStylePattern>

The final rendering contexts for the classifier sequence that terminates at this tree.