Syntakts
GitHub
  • 👋Introduction
    • Installation
    • Markdown
  • Using
    • Defining rules
    • Nodes
Powered by GitBook
On this page

Introduction

Last updated 1 year ago

A multiplatform library for parsing text and formatting it, designed to be framework independent.

Installation instructions are available

val mySyntakts = syntakts<Unit> {
    rule("@([A-z]+)") { matchResult, context ->
        append("@${matchResult.groupValues[1]}") {
            color = Color.Yellow
        }
    }
}

val nodes = mySyntakts.parse("Welcome, @User")

here
👋
Page cover image