|
|
|
|
|
by lioeters
147 days ago
|
|
> extra step to get from CST to AST Could you elaborate on what this involves? I'm also looking at using tree-sitter as a parser for a new language, possibly to support multiple syntaxes. I'm thinking of converting its parse trees to a common schema, that's the target language. I guess I don't quite get the difference between a concrete and abstract syntax tree. Is it just that the former includes information that's irrelevant to the semantics of the language, like whitespace? |
|
AST is just CST minus range info and simplified/generalised lexical info (in most cases).