tree-sitter-0.8.0.2: Unstable bindings for the tree-sitter parsing library.
Safe HaskellSafe
LanguageHaskell2010

TreeSitter.Symbol

Synopsis

Documentation

fromTSSymbol :: forall symbol. Symbol symbol => TSSymbol -> symbol Source #

Map a TSSymbol to the corresponding value of a Symbol datatype.

This should be used instead of toEnum to perform this conversion, because tree-sitter represents parse errors with the unsigned short 65535, which is generally not contiguous with the other symbols.

class (Bounded s, Enum s, Ix s, Ord s, Show s) => Symbol s where Source #

Methods

symbolType :: s -> SymbolType Source #

camelCase :: String -> String Source #

Convert a snake_case String to camelCase

capitalize :: String -> String Source #

Capitalize a String