1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 07:55:12 +03:00

Try importing the root node getter.

This commit is contained in:
Rob Rix 2015-11-24 14:08:08 -05:00
parent 13bc8afef6
commit a97dc752d8

View File

@ -29,6 +29,9 @@ foreign import ccall "prototype/External/tree-sitter/include/tree_sitter/runtime
foreign import ccall "prototype/External/tree-sitter/include/tree_sitter/runtime.h ts_document_parse" ts_document_parse :: Foreign.Ptr TSDocument -> IO ()
foreign import ccall "prototype/External/tree-sitter/include/tree_sitter/runtime.h ts_document_free" ts_document_free :: Foreign.Ptr TSDocument -> IO ()
data TSNode = TsNode deriving (Show, Eq, Generic, CStorable)
foreign import ccall "prototype/External/tree-sitter/include/tree_sitter/runtime.h ts_document_root_node" ts_document_root_node :: Foreign.Ptr TSDocument -> IO (Foreign.Ptr TSNode)
main :: IO ()
main = do
-- args <- getArgs