Skip to content
/ flippre Public

Imported from Bitbucket for its sunsetting support of Mercurial.

Notifications You must be signed in to change notification settings

kztk-m/flippre

Repository files navigation

flippre: FliPpr, embedded

flippre is an embedded implementation of FliPpr, an invertible pretty-printing system. The library provides functions and datatypes that enable you to define pretty-printers in a functional programming style while ensuring they remain invertible to produce context-free grammar (CFG) parsers. (The current implementation relies on the Earley library for parsing.)

This repository consists of four packages:

Build Instructions

You can build the project using either stack or cabal.

Using stack:

stack build

Using cabal

cabal build all

Examples

You can find examples in the flippre-examples directory. For instance, For instance, Arith.hs demonstrates an invertible pretty-printer for simple arithmetic expressions. You can experiment with these examples in a REPL as follows:

Using stack:

stack repl flippre-examples:exe:arith 

Using cabal:

cabal repl arith

Publications

About

Imported from Bitbucket for its sunsetting support of Mercurial.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published