Skip to content

Concrete Syntax Tree #625

@jednano

Description

@jednano

It has been requested to supply a syntax tree in issues #438 and #254, in which @CyrusNajmabadi has rightly asked what such a syntax tree would be used for. To answer that question, I'm hoping that I can have access to not just an abstract syntax tree (AST), but more of a concrete syntax tree (CST) for code formatting without throwing away any original code (e.g., comments inside function arguments).

Concerning JavaScript, the need for a CST has been discussed at getify/concrete-syntax-tree. I'm hoping that any and all efforts to expose a syntax tree would take into account these needs and issues. Ideally, the AST would be generated from the CST or, at least, you could ask for whichever one in which you are interested.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs More InfoThe issue still hasn't been fully clarifiedSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions