language-puppet-0.4.0: Tools to parse and evaluate the Puppet DSL.
Puppet.DSL.Printer
Synopsis
showAST :: [Statement] -> StringSource
This shows the parsed AST a bit like the original syntax.
showVarMap :: Map String (Expression, SourcePos) -> StringSource
Useful for displaying a map of variables.