joy-rewrite-0.2.0: Transform Joy code using conditional rewrite rules
MaintainerJohannes Riecken <johannes.riecken@gmail.com>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Language.Joy.Rewrite

Description

This module includes combinators for rewriting Joy source code.

Synopsis

Documentation

rewrite :: [Text] -> Text -> Either Error [Text] Source #

Given a list of rewrite rules and Joy code, apply the rules and return the resulting list of tokens.

tokenize :: Text -> [Text] Source #

Split Joy code into tokens.