Skip to content

A simple parser combinator library for expressions and domain specific languages, written in Kotlin

License

Notifications You must be signed in to change notification settings

spissvinkel/dsl-parser-kt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DSL Parser

A simple parser library for expressions and domain specific languages, written in Kotlin.

Use

Maven dependency

<repositories>
    <repository>
        <id>dsl-parser-mvn-repo</id>
        <url>https://github.com/spissvinkel/dsl-parser-kt/raw/mvn-repo</url>
    </repository>
</repositories>
<dependencies>
    <dependency>
        <groupId>no.simenstorsveen</groupId>
        <artifactId>dsl-parser</artifactId>
        <version>0.2.2</version>
    </dependency>
</dependencies>

Develop

Install dependencies

Java JDK 21+ and Maven 3.8+ are required to build the project

Build project

$ mvn clean package

References

This project was inspired by the paper "Monadic Parser Combinators" by Hutton and Meijer, the paper "Parsec: Direct Style Monadic Parser Combinators for the Real World" by Leijen and Meijer, and the chapter on parser combinators in the book "Programming in Scala" by Odersky et al.