Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Analysis extension API #51

@mansellan

Description

@mansellan

Is your feature request related to a problem?
Third party code analysis projects could provide significant benefit to twinBASIC if an API were available to access the AST.

Describe the solution you'd like
Projects like Rubberduck (RD) can perform in-depth analysis over code, highlighting issues and suggesting automated fixes. In the case of RD, this entails performing all lexing, parsing and symbol resolution from the actual source code, as the compiler internal data structures are not directly available. This is a wasteful duplication of effort already performed by the compiler.
If twinBASIC could provide an API which allowed access to the abstract syntax tree, analysis could be performed directly by third-party extensions without such a performance overhead.

Additional context
I have no idea whether this is feasible without exposing excessive information of the compiler internals.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions