Tree-sitter公开文档;未核安装、未执行,限所列输入输出。
调用方式 / profile:tree-sitter-parse-cst-documentation · 组件版本:documentation-sha256:d61f67f0929057d5e117deab3590f215a01348912ad930ec6926110d98d1f17e · 引用此版本与调用方式
已记录条件
- invocation_mode = cli:支持。Supported within this profile and component version. 依据:tree-sitter-parse-cst-documentation-e1, tree-sitter-parse-cst-documentation-e2
入口与前提
- 协议
- 本地CLI(文档声明,未执行)
- 认证
- 本地命令不含服务登录;CLI、语言包获取/编译、动态库及文件权限另核。
- 价格是否查明
- unknown
- 配额是否查明
- unknown
tree-sitter parse
- 仅官方文档声明,配方proposed;本站未连接、注册、调用第三方工具或核验实际账户。
- 任何parse error使退出非零;解析输出不等于语义正确或程序可运行。
- 需适用grammar,可指定目录、动态库或scope;未安装/编译语言包。
- 缓存或自动生成动态库可能需要构建和写缓存,当前平台条件未核。
- 实际编码/BOM及UTF-8/UTF-16选项另核。
- json-summary不是本CST配方完整JSON树依据;不启用debug/graph/wasm/edits/rebuild。
- 无源代码解析operation、JavaScript/CST字典值,不借convert_document或JSON条件;版本、依赖、费用及完整网络行为unknown。
配方 tree-sitter-parse-cst-documentation-recipe · 修订 1
所需调用能力:
- parse_source_to_cst
运行前提:
- 仅官方文档声明,配方proposed;本站未连接、注册、调用第三方工具或核验实际账户。
- 任何parse error使退出非零;解析输出不等于语义正确或程序可运行。
- 需适用grammar,可指定目录、动态库或scope;未安装/编译语言包。
- 缓存或自动生成动态库可能需要构建和写缓存,当前平台条件未核。
- 实际编码/BOM及UTF-8/UTF-16选项另核。
- json-summary不是本CST配方完整JSON树依据;不启用debug/graph/wasm/edits/rebuild。
- 无源代码解析operation、JavaScript/CST字典值,不借convert_document或JSON条件;版本、依赖、费用及完整网络行为unknown。
使用步骤:
- 准备已获授权的最小输入,核对本profile的适用范围、认证与费用;不填私人信息或凭据到公开示例。
- tree-sitter parse --cst --grammar-path ./approved-grammar example.js
- 未来获准执行后核对实际诊断、输出文件或对象与输入条件,保留缺项和运行错误;本次没有执行此步骤。
- 输入约定
- 源路径或glob,可多个;无路径从stdin读。本配方显式给可信grammar目录及单一获准源文件。
- 输出约定
- --cst输出pretty-printed CST;parse error返回非零。本站未产生解析树或验证语法。
- 成功检查
- 未来核可信CLI、匹配语言包、编译及缓存条件,用已知自有源核退出码/CST节点/错误位置;不运行被解析程序,不把文档当本机安装或解析成功。
- 失败与回退
- 条件不满足、认证/限流/结构错误即停止该调用并保留unknown;不切换付费服务、不猜工具名、不执行写操作。
适用证据
tree-sitter-parse-cst-documentation-e1 · 来源文档声明
- 原文定位
- .local/deep-cards-v1/graphics-parse-batch-20261024-06/sources/tree-sitter-parse-cst-documentation.txt:L88-L103
- 来源版本
- documentation-sha256:d61f67f0929057d5e117deab3590f215a01348912ad930ec6926110d98d1f17e
- 内容摘要
- d61f67f0929057d5e117deab3590f215a01348912ad930ec6926110d98d1f17e
- 采集时间
- 2026-10-20T12:08:04.7064120+00:00
tree-sitter parse The parse command parses source files using a Tree-sitter parser. You can pass any number of file paths and glob patterns to tree-sitter parse, and it will parse all the given files. If no paths are provided, input will be parsed from stdin. The command will exit with a non-zero status code if any parse errors occurred. tree-sitter parse [OPTIONS] [PATHS]... # Aliases: p Options --paths <PATHS_FILE> The path to a file that contains paths to source files to parse. -p/--grammar-path <PATH> The path to the directory containing the grammar. -l/--lib-path The path to the parser’s dynamic library. This is used instead of the cached or automatically generated dynamic library. --lang-name If --lib-path is used, the name of the language used to extract the library’s language function --scope <SCOPE> The language scope to use for parsing. This is useful when the language is ambiguous.
覆盖条件:invocation_mode=cli
tree-sitter-parse-cst-documentation-e2 · 来源文档声明
- 原文定位
- .local/deep-cards-v1/graphics-parse-batch-20261024-06/sources/tree-sitter-parse-cst-documentation.txt:L115-L118
- 来源版本
- documentation-sha256:d61f67f0929057d5e117deab3590f215a01348912ad930ec6926110d98d1f17e
- 内容摘要
- d61f67f0929057d5e117deab3590f215a01348912ad930ec6926110d98d1f17e
- 采集时间
- 2026-10-20T12:08:04.7064120+00:00
-x/--xml Output the parse tree in XML format. -c/--cst Output the parse tree in a pretty-printed CST format.
覆盖条件:invocation_mode=cli
结构化配方尚未提供或不适用于本版本;旧用法文字保留,连接与执行结果未知。