Module
TreeSitter.Lazy
- Package
- purescript-tree-sitter
- Repository
- neppord/purescript-tree-sitter
The lazy module contains only a thin wrapper around the foreign interface, this should be a stable part of the library to depend on. But it only implement the most common operations and just slightly more simple then the raw module
#LanguageName Source
type LanguageName = String
#mkParser Source
mkParser :: LanguageName -> Parser
Imports the language and creates a parser with that language set as the language to parse
#reParseString Source
reParseString :: Parser -> String -> Tree -> Tree
Not sure what this does with the old tree
#rootNode Source
rootNode :: Tree -> SyntaxNode
#children Source
children :: SyntaxNode -> Array SyntaxNode
#isNamed Source
isNamed :: SyntaxNode -> Boolean
#startIndex Source
startIndex :: SyntaxNode -> Int
#endIndex Source
endIndex :: SyntaxNode -> Int
#startPosition Source
startPosition :: SyntaxNode -> Point
#endPosition Source
endPosition :: SyntaxNode -> Point
#type' Source
type' :: SyntaxNode -> String
#isMissing Source
isMissing :: SyntaxNode -> Boolean