Skip to content

Latest commit

 

History

History
43 lines (32 loc) · 976 Bytes

README.md

File metadata and controls

43 lines (32 loc) · 976 Bytes

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.