Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Parser
- withParser :: Ptr Language -> (Ptr Parser -> IO a) -> IO a
- withParseTree :: Ptr Parser -> ByteString -> (Ptr Tree -> IO a) -> IO a
- ts_parser_new :: IO (Ptr Parser)
- ts_parser_halt_on_error :: Ptr Parser -> CBool -> IO ()
- ts_parser_parse_string :: Ptr Parser -> Ptr Tree -> CString -> Int -> IO (Ptr Tree)
- ts_parser_delete :: Ptr Parser -> IO ()
- ts_parser_set_language :: Ptr Parser -> Ptr Language -> IO Bool
- ts_parser_timeout_micros :: Ptr Parser -> IO Word64
- ts_parser_set_timeout_micros :: Ptr Parser -> Word64 -> IO ()
- ts_parser_log_to_stderr :: Ptr Parser -> IO ()
Documentation
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_new :: IO (Ptr Parser) Source #
ts_parser_halt_on_error :: Ptr Parser -> CBool -> IO () Source #
ts_parser_delete :: Ptr Parser -> IO () Source #
ts_parser_set_language :: Ptr Parser -> Ptr Language -> IO Bool Source #
ts_parser_timeout_micros :: Ptr Parser -> IO Word64 Source #
ts_parser_set_timeout_micros :: Ptr Parser -> Word64 -> IO () Source #
ts_parser_log_to_stderr :: Ptr Parser -> IO () Source #