Skip to content

Comments #8

@craigbarnes

Description

@craigbarnes

Hi. I was just studying the Metalua AST format and one thing that struck me as a little odd is the relative inconvenience of accessing comments. Is there a rationale for not representing them as nodes directly in the tree? The lack of comments in the specification seems to have been adopted by other projects (e.g. lua-parser) but most of the use cases I can think of very much require comments (e.g. doc generators, type annotation checkers, code formatters etc.)

Would you be against adding comments to the AST specification or is it likely to cause compatibility issues?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions