cimple-0.0.16: Simple C-like programming language
Safe HaskellNone
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 #

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

doComments :: AstActions f text -> FilePath -> [Comment (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 #

data AstActions f text Source #