-
-
Notifications
You must be signed in to change notification settings - Fork 29
Description
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.