ConverterToRuntimeRules

class ConverterToRuntimeRules(grammar: Grammar, builder: RuntimeRuleSetBuilder) : GrammarVisitor<Any, String>

arg: String =

Constructors

ConverterToRuntimeRules
Link copied to clipboard
common
fun ConverterToRuntimeRules(grammar: Grammar, builder: RuntimeRuleSetBuilder = RuntimeRuleSetBuilder())

Types

CompressedItem
Link copied to clipboard
common
class CompressedItem(value: String, isPattern: Boolean)

Functions

originalRuleItemFor
Link copied to clipboard
common
fun originalRuleItemFor(rr: RuntimeRule): RuleItem
transform
Link copied to clipboard
common
fun transform(): RuntimeRuleSet
visit
Link copied to clipboard
common
open override fun visit(target: ChoiceAmbiguous, arg: String): RuntimeRule
open override fun visit(target: ChoiceEqual, arg: String): RuntimeRule
open override fun visit(target: ChoicePriority, arg: String): RuntimeRule
open override fun visit(target: Concatenation, arg: String): RuntimeRule
open override fun visit(target: EmptyRule, arg: String): RuntimeRule
open override fun visit(target: Grammar, arg: String): Set<RuntimeRule>
open override fun visit(target: Group, arg: String): RuntimeRule
open override fun visit(target: Multi, arg: String): RuntimeRule
open override fun visit(target: Namespace, arg: String): Set<RuntimeRule>
open override fun visit(target: NonTerminal, arg: String): RuntimeRule
open override fun visit(target: Rule, arg: String): RuntimeRule
open override fun visit(target: SeparatedList, arg: String): RuntimeRule
open override fun visit(target: Terminal, arg: String): RuntimeRule

Properties

builder
Link copied to clipboard
common
val builder: RuntimeRuleSetBuilder
grammar
Link copied to clipboard
common
val grammar: Grammar