LanguageProcessor

interface LanguageProcessor

Functions

analyseAsm
Link copied to clipboard
common
abstract fun <T : Any> analyseAsm(asmType: KClass<in T>, asm: T, locationMap: Map<Any, InputLocation> = emptyMap()): List<SemanticAnalyserItem>
analyseText
Link copied to clipboard
common
abstract fun <T : Any> analyseText(asmType: KClass<in T>, inputText: String): List<SemanticAnalyserItem>
analyseTextForGoal
Link copied to clipboard
common
abstract fun <T : Any> analyseTextForGoal(asmType: KClass<in T>, goalRuleName: String, inputText: String): List<SemanticAnalyserItem>
buildFor
Link copied to clipboard
common
abstract fun buildFor(goalRuleName: String, automatonKind: AutomatonKind = AutomatonKind.LOOKAHEAD_1): LanguageProcessor
build the parser before use.
expectedAt
Link copied to clipboard
common
abstract fun expectedAt(inputText: String, position: Int, desiredDepth: Int, automatonKind: AutomatonKind = AutomatonKind.LOOKAHEAD_1): List<CompletionItem>
returns list of names of expected rules
abstract fun expectedAt(goalRuleName: String, inputText: String, position: Int, desiredDepth: Int, automatonKind: AutomatonKind = AutomatonKind.LOOKAHEAD_1): List<CompletionItem>
formatAsm
Link copied to clipboard
common
abstract fun <T : Any> formatAsm(asmType: KClass<in T>, asm: T): String
formatText
Link copied to clipboard
common
abstract fun <T : Any> formatText(asmType: KClass<in T>, inputText: String, automatonKind: AutomatonKind = AutomatonKind.LOOKAHEAD_1): String
formatTextForGoal
Link copied to clipboard
common
abstract fun <T : Any> formatTextForGoal(asmType: KClass<in T>, goalRuleName: String, inputText: String, automatonKind: AutomatonKind = AutomatonKind.LOOKAHEAD_1): String
interrupt
Link copied to clipboard
common
abstract fun interrupt(message: String)
parse
Link copied to clipboard
common
abstract fun parse(inputText: String, automatonKind: AutomatonKind = AutomatonKind.LOOKAHEAD_1): SharedPackedParseTree
abstract fun parse(goalRuleName: String, inputText: String, automatonKind: AutomatonKind = AutomatonKind.LOOKAHEAD_1): SharedPackedParseTree
process
Link copied to clipboard
common
abstract fun <T : Any> process(asmType: KClass<in T>, sppt: SharedPackedParseTree): T
abstract fun <T : Any> process(asmType: KClass<in T>, inputText: String, automatonKind: AutomatonKind = AutomatonKind.LOOKAHEAD_1): T
abstract fun <T : Any> process(asmType: KClass<in T>, goalRuleName: String, inputText: String, automatonKind: AutomatonKind = AutomatonKind.LOOKAHEAD_1): T
scan
Link copied to clipboard
common
abstract fun scan(inputText: String): List<SPPTLeaf>

Properties

grammar
Link copied to clipboard
common
abstract val grammar: Grammar