tree-sitter-0.9.0.3: Unstable bindings for the tree-sitter parsing library.
Safe HaskellSafe-Inferred
LanguageHaskell2010

TreeSitter.Parser

Synopsis

Documentation

data Parser Source #

A tree-sitter parser.

This type is uninhabited and used only for type safety within Ptr values.

withParser :: Ptr Language -> (Ptr Parser -> IO a) -> IO a Source #

withParseTree :: Ptr Parser -> ByteString -> (Ptr Tree -> IO a) -> IO a Source #

ts_parser_halt_on_error :: Ptr Parser -> CBool -> IO () Source #

ts_parser_parse_string :: Ptr Parser -> Ptr Tree -> CString -> Int -> IO (Ptr Tree) Source #

ts_parser_set_language :: Ptr Parser -> Ptr Language -> IO Bool Source #

ts_parser_set_timeout_micros :: Ptr Parser -> Word64 -> IO () Source #