Skip to content

Repository files navigation

ZIO Parser

Library for constructing parsers and pretty printers based on invertible syntax descriptions

Development CI Badge Sonatype Releases Sonatype Snapshots javadoc ZIO Parser

Introduction

ZIO Parser describes a grammar once, as a Syntax, and uses that description in both directions: it parses text into values and prints values back to text. Because one value drives both, a parser and its pretty printer cannot drift apart.

The library gives you small building blocks (characters, strings, regexes), operators to combine them, and error values that say where and why a parse failed.

Installation

Add ZIO Parser to your build.sbt. It is published for Scala 2.12, 2.13 and 3.

On the JVM, use %%:

libraryDependencies ++= Seq(
  // ZIO Parser: syntaxes, parsers, printers and regexes (JVM)
  "dev.zio" %% "zio-parser" % "0.1.12"
)

On Scala.js and Scala Native, use %%%:

libraryDependencies ++= Seq(
  // ZIO Parser: syntaxes, parsers, printers and regexes (Scala.js and Scala Native)
  "dev.zio" %%% "zio-parser" % "0.1.12"
)

Where to Go Next

Documentation

Learn more on the ZIO Parser homepage!

Contributing

For the general guidelines, see ZIO contributor's guide.

Code of Conduct

See the Code of Conduct

Support

Come chat with us on Badge-Discord.

License

License

Releases

Packages

Used by

Contributors

Languages