cedricrupb / code_ast

Fast and robust AST parsing of any language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update the code_ast to code_cst?

shihai1991 opened this issue · comments

tree-sitter' goal is that It can build a concrete syntax tree for a source file.
If code_ast's backend is tree-sitter, so the tree is cst, not ast?

Thank you for pointing this out!

You are right code.ast currently uses the tree-sitter's parse tree as is. Therefore, the library currently produces a CST instead of an AST.

I will consider renaming the library. Until then, I updated the README to highlight that code.ast currently produces a CST.

Thank you for pointing this out!

You are right code.ast currently uses the tree-sitter's parse tree as is. Therefore, the library currently produces a CST instead of an AST.

I will consider renaming the library. Until then, I updated the README to highlight that code.ast currently produces a CST.

Get it. Thanks for your reply :)