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

#Parser Source

type Parser = Parser

#Point Source

type Point = Point

#Tree Source

newtype Tree

Constructors

Instances

#SyntaxNode Source

newtype SyntaxNode

Constructors

Instances

#mkParser Source

mkParser :: LanguageName -> Parser

Imports the language and creates a parser with that language set as the language to parse

#parseString Source

parseString :: Parser -> String -> Tree

Parses the string and returns a tree

#reParseString Source

reParseString :: Parser -> String -> Tree -> Tree

Not sure what this does with the old tree