All Classes and Interfaces

Class
Description
All elements of AppleSoft that are tokenized in some manner.
AsmBuilder allows generation of assembly code to embed into the output stream.
Common base class for optimization visitors that allow the program tree to be rewritten.
BasicBuilder allows BASIC commands to be built.
Since there are many pieces to bastools, the version information is just a small, dedicated class.
Represents a bitmap copy of the shape.
Encode a bitmap shape by using the Euclidean distance between plotted points to determine which vectors take precedence.
Encode a bitmap shape by going to a corner and sweeping back-and-forth across the image.
 
CodeBuilder allows dynamic generation of combined BASIC and Assembly code with dynamic CodeMark capability.
Represents a code generation operation that accepts the current GeneratorState and performs operations against that state.
A CodeMark marks a dynamic address within the output stream.
 
 
 
 
 
 
 
 
 
Embed an binary file into a BASIC program.
Embed an Applesoft shape table into a BASIC program.
Allow the import of an external shape.
Find constants and extract to variables in order to have the number parsed only once.
Track current state of the code generation.
A simple directive to introduce hexadecimal capabilities.
 
 
An AppleSoft BASIC Line representation.
 
 
All optimization capabilities are definined here in the "best" manner of execution.
The Parser will read a series of Tokens and build a Program.
 
 
A Program is a series of lines.
This is a mildly rewritable Visitor.
Remove any empty statements during the tree walk.
Drop all REM statements as they are encountered in the tree walk.
A simple renumbering algorithm that maps the reassignments and lets BaseVisitor perform the actual renumbering!
Represents a single Applesoft shape.
 
 
Represents an Applesoft shape table.
Ensure all variable names are 1 or 2 characters long.
 
 
 
A Statement is simply a series of Tokens.
 
 
 
 
A Token in the classic compiler sense, in that this represents a component of the application.
 
The TokenReader, given a text file, generates a series of Tokens (in the compiler sense, not AppleSoft) for the AppleSoft program.
 
Generate all Applesoft BASIC FP variable names.
 
Represents all "plot vectors" available in an Applesoft shape table.
 
A vector optimization based on regex.
The Visitor interface allows some flexibility in what can be done with the AppleSoft BASIC program code.
This class presents all of the common Visitor implementations via builder patterns.