SyntaxHighlightingService

Toolkit-neutral entry point for turning source text into semantic tokens, so a frontend doesn't need to depend on PrologSyntaxAnalyzer directly.

Functions

Link copied to clipboard
abstract suspend fun classify(source: String, operators: List<OperatorPresentation>): List<SemanticToken>

Classifies source (aware of operators) into the semantic tokens a frontend renders as highlighting.