Giter Site home page Giter Site logo

atto's Introduction

atto - friendly parsing

This is a Scala port of attoparsec, forked from Ed Kmett's original, updated, sliced up in the style of scalaz and expanded with more combinators and parsers for base types.

Progress thus far:

  • Updated to Scala 2.10 and scalaz 7.0
  • Implementation is now trampolined (slower, but no more stack overflows)
  • Additional combinators and parsing options
  • New tut-based tutorial over here. Enjoy!
  • NTriples parser example in progress here

Known issues:

  • It is possible to construct a parser that does not behave properly when given incremental input. This is under investigation.
  • No idea how fast or slow it is. Doesn't seem terrible but hard to say for sure.

Getting Started

You need scalaz and atto and you probably want spire. Here's how to get all three.

resolvers ++= Seq(
  "releases"  at "http://oss.sonatype.org/content/repositories/releases",
  "tpolecat"  at "http://dl.bintray.com/tpolecat/maven"
)

libraryDependencies ++= Seq(
  "org.scalaz"     %% "scalaz-core" % "7.0.2",
  "org.spire-math" %% "spire"       % "0.6.0",
  "org.tpolecat"   %% "atto"        % "0.1"
)

See the tutorial over here. Enjoy!

atto's People

Contributors

ekmett avatar tpolecat avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.