<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Tree-Sitter on CJ&#39;s Blog</title>
    <link>https://cjraft.github.io/tags/tree-sitter/</link>
    <description>Recent content in Tree-Sitter on CJ&#39;s Blog</description>
    <generator>Hugo -- 0.157.0</generator>
    <language>zh-CN</language>
    <lastBuildDate>Thu, 02 Jul 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://cjraft.github.io/tags/tree-sitter/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>代码知识图谱的两条路：tree-sitter AST 与 LSP</title>
      <link>https://cjraft.github.io/articles/code-graph-treesitter-vs-lsp/</link>
      <pubDate>Thu, 02 Jul 2026 00:00:00 +0000</pubDate>
      <guid>https://cjraft.github.io/articles/code-graph-treesitter-vs-lsp/</guid>
      <description>代码知识图谱的两条技术路线——tree-sitter 走语法级 AST 调用图，快而近似；LSP 驱动语言服务器做语义级解析，精确但重。拆解二者的原理、demo 与成本取舍，并结合一组代码定位实测指出：code graph 更像上下文压缩工具，省 token，却不必然提升定位准确率。</description>
    </item>
  </channel>
</rss>
