#Getting a Scala AST
1 messages ยท Page 1 of 1 (latest)
<@&987246964494204979> please have a look, thanks.
Here is an AI assisted attempt to answer your question ๐ค. Maybe it helps! In any case, a human is on the way ๐. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.
To get an Abstract Syntax Tree (AST) from a Scala program for transpilation, you can use the Scala compiler library ScalaReflect. This library provides tools for analyzing and transforming Scala source code programmatically. You can use the scala.reflect.api package to access the AST of a Scala program and manipulate it as needed for transpilation.
Useful links:
an AST from a Scala file not apart of the build system (ex. a string)
sort of like Spoon or Javaparser
doesnt scalareflect force you to have it part of your build (or at least compiled)