Module parser

Module parser 

Source
Expand description

Tree-Sitter Parser for Code Graph Generation

This module provides tree-sitter based parsing for extracting code entities and their relationships from source files.

§Supported Languages

  • Python (.py)
  • JavaScript (.js, .mjs, .cjs)
  • TypeScript (.ts, .tsx)
  • Rust (.rs)
  • Go (.go)
  • C (.c, .h)
  • C++ (.cpp, .hpp, .cc, .cxx)
  • C# (.cs)

Structs§

CodeParser
A tree-sitter based code parser with query support.
ContainmentContext
Tracks containment context during graph generation.
ContainmentEntry
Entry in the containment stack.
ExtractedTag
A tag extracted from source code via tree-sitter query.
MetadataExtractor
Extracts metadata from AST nodes for a specific language.
QueryManager
Manages tree-sitter queries for extracting code entities.
TagExtractor
Extracts tags from source code using tree-sitter queries.

Enums§

ManifestLanguage
Manifest file languages for component extraction.
ParserError
Errors that can occur during parsing.
SupportedLanguage
Supported programming languages for parsing.

Functions§

generate_node_id
Generate a hierarchical node ID for an entity.
parse_node_id
Parse a node ID into its components.