Module tree_sitter_support

Module tree_sitter_support 

Source
Expand description

Tree-sitter integration for Sigil

Provides syntax parsing capabilities for multiple programming languages using tree-sitter grammars. This enables Samael and other AI agents to perform real syntax analysis on source code.

Structs§

TSParser
Tree-sitter parser wrapper
TSTree
Wrapper for a parsed syntax tree

Enums§

TSLanguage
Supported languages for tree-sitter parsing

Functions§

node_text
Get the text content of a node from source
node_to_value
Convert a tree-sitter Node to interpreter Value fields Returns a HashMap suitable for creating a SyntaxNode struct
parse_source
Parse source code with a given language
supported_languages
List all supported languages