Notes and ideas taken while working on Complexity.

Abstract Syntax Trees

More complex source code analysis requires the use of 🌳 Abstract Syntax Trees, which is language-dependent.

AST Explorer is a tool to play around with ASTs from different languages.

TypeScript AST

Concept

Since it doesn’t seem to be possible to run through the AST from within Kotlin (or Java), I’m thinking of running the TypeScript compiler in a TypeScript program and outputting the data in JSON format to be parsed by the main Kotlin program.

Charts

As part of my Design Principle β€œVisual”, I think it’s important to visualise data to simplify interpretation.

Considered options:

Sources