The BASIC Tools API is a set of reusable code that can be used to parse a text-based Applesoft BASIC program an generate the appropriate tokens. It also has multiple types of visitors that can re-write that parse tree to rearrange the code (calling them optimizations is a bit over-the-top).
To include in a Maven project:
<dependency>
<groupId>net.sf.applecommander</groupId>
<artifactId>bastools-api</artifactId>
<version>0.3.1</version>
</dependency>
To include in a Gradle project:
dependencies {
// ...
compile "net.sf.applecommander:bastools-api:0.3.1"
// ...
}
Currently the API is broken into the following sections: