Scala 3 lets us write compiler plugins that we can use, but they are difficult to use. Decompilers allow parsing binaries without the need for the original project’s source code setup. The key is to utilise TASTy files, which are included in target jars alongside binaries uploaded to Maven Central.

5m read timeFrom virtuslab.com
Post cover image
Table of contents
Explore TASTy files for comprehensive code analysisTASTy files and the challenges1 Obtaining Scala 3 libraries and their Maven coordinates2 Fetching and downloading all libraries and dependencies3 Parsing and retrieving data with the TASTy InspectorHow to extract source code and bytecodeConclusion

Sort: