Converts source code into an Abstract Syntax Tree (AST) for multiple languages.
Code To Tree is a single-binary tool designed to provide LLMs with the capability to accurately convert source code into ASTs, regardless of the programming language. It leverages Tree-sitter for versatile syntax parsing across languages like C, C++, Rust, Ruby, Go, Java, and Python, and employs mcpc to minimize software dependencies, offering a standalone solution for AST generation.
主な機能
01Supports C, C++, Rust, Ruby, Go, Java, and Python
02Uses Tree-sitter for accurate parsing
03AST generation for multiple languages
040 GitHub stars
05Compatible with MCP clients
06Standalone binary with minimal dependencies
ユースケース
01Providing AST representations of code to Large Language Models
02Enabling code analysis and understanding for AI applications