cimple-0.0.13: Simple C-like programming language
Safe HaskellSafe-Inferred
LanguageHaskell2010

Language.Cimple.TraverseAst

Documentation

traverseAst :: (TraverseAst text a, Applicative f) => AstActions f text -> a -> f () Source #

doFiles :: AstActions f text -> [(FilePath, [Node (Lexeme text)])] -> f () -> f () Source #

doFile :: AstActions f text -> (FilePath, [Node (Lexeme text)]) -> f () -> f () Source #

doNodes :: AstActions f text -> FilePath -> [Node (Lexeme text)] -> f () -> f () Source #

doNode :: AstActions f text -> FilePath -> Node (Lexeme text) -> f () -> f () Source #

doLexemes :: AstActions f text -> FilePath -> [Lexeme text] -> f () -> f () Source #

doLexeme :: AstActions f text -> FilePath -> Lexeme text -> f () -> f () Source #

doText :: AstActions f text -> FilePath -> text -> f () Source #

astActions :: Applicative f => AstActions f text Source #

data AstActions f text Source #