platinum-parsing-0.1.0.0: General Framework for compiler development.

Copyright(c) 2017 Patrick Champion
Licensesee LICENSE file
Maintainerchlablak@gmail.com
Stabilityprovisional
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

PP.Template

Description

 

Synopsis

Documentation

class Template context where Source #

Type class for Templatable structure

Minimal complete definition

attributes

Methods

attributes :: context -> StringTemplate String -> StringTemplate String Source #

Put the context into StringTemplate attributes

compile :: context -> String -> String Source #

Compile a template with a given context

mergeContext :: (Template c1, Template c2) => c1 -> c2 -> StringTemplate String -> StringTemplate String Source #

Merge two contexts together