LicenseGNU LGPLv3
Maintainerpaul.bittner@uni-ulm.de
Safe HaskellNone

TikzExport

Description

Facilities for exporting ASTs to Tikz code as a String. We use this export to generate the AST figure in the paper (Figure 5).

Synopsis

Documentation

astToTikzWithTraceDefault :: (Eq a, Show a, Grammar g) => Version g a -> String Source #

Default implementation to export an AST with feature traces. The returned String is the tikz code that can be copied to a tex document.

astToTikzWithTrace :: (AST g a -> String) -> (AST g a -> Node g a -> FeatureTrace g a -> String) -> Version g a -> String Source #

astToTikz :: (AST g a -> String) -> (AST g a -> String) -> AST g a -> String Source #

astToTikzRecursive :: Int -> (AST g a -> String) -> (AST g a -> String) -> AST g a -> String Source #

tikzifyName :: String -> String Source #

Converts a string to a valid string inside tikz (e.g., escaping certaing characters such as _).