module TreeSitter.Python
( tree_sitter_python
, getNodeTypesPath
, getTestCorpusDir
) where

import Foreign.Ptr
import TreeSitter.Language
import Paths_tree_sitter_python

foreign import ccall unsafe "vendor/tree-sitter-python/src/parser.c tree_sitter_python" tree_sitter_python :: Ptr Language

getNodeTypesPath :: IO FilePath
getNodeTypesPath :: IO FilePath
getNodeTypesPath = FilePath -> IO FilePath
getDataFileName FilePath
"vendor/tree-sitter-python/src/node-types.json"

getTestCorpusDir :: IO FilePath
getTestCorpusDir :: IO FilePath
getTestCorpusDir = FilePath -> IO FilePath
getDataFileName FilePath
"vendor/tree-sitter-python/test/corpus"