-
I have read Boime's article and noticed that there are two structures here, CST and AST, both of which can be traversed and modified. So why not directly traverse CST? AST is a higher level abstraction, which is not a good choice for Linter |
Beta Was this translation helpful? Give feedback.
Answered by
ematipico
Nov 12, 2023
Replies: 1 comment 2 replies
-
I don't know which article you're talking about, but at this page you can find more details https://biomejs.dev/internals/architecture/#parser-and-cst Biome doesn't have any AST, the playground is misleading and it's just a way to ease new users that aren't familiar with the concept. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The box that shows the AST is what you actually query/navigate when you want to do operations like lint rules or formatting logic.
It becomes an indispensable tool when developing features and fixing bugs.
The CST box is the "raw" language, the AST is strongly typed and shows the tokens/nodes of the syntax APIs