tree-sitter parsing and symbol extraction #8

Open
opened 2026-04-07 20:21:59 +00:00 by austin · 0 comments
Owner

Implement AST parsing and symbol table extraction using tree-sitter.

  • Parse Python files into tree-sitter ASTs
  • Extract top-level symbols: functions, classes, methods, module-level assignments
  • Store symbol metadata: name, type, line range, docstring, decorators, type annotations
  • Handle nested structures (methods within classes, nested functions)
  • Graceful handling of syntax errors (tree-sitter does error recovery — use it)

This is the foundation of the harness's code understanding. Every other code intelligence feature builds on having an accurate symbol table.

Implement AST parsing and symbol table extraction using tree-sitter. - Parse Python files into tree-sitter ASTs - Extract top-level symbols: functions, classes, methods, module-level assignments - Store symbol metadata: name, type, line range, docstring, decorators, type annotations - Handle nested structures (methods within classes, nested functions) - Graceful handling of syntax errors (tree-sitter does error recovery — use it) This is the foundation of the harness's code understanding. Every other code intelligence feature builds on having an accurate symbol table.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
austin/localcode#8
No description provided.