Class ShortenVariableNames
- java.lang.Object
-
- io.github.applecommander.bastools.api.optimizations.BaseVisitor
-
- io.github.applecommander.bastools.api.optimizations.ShortenVariableNames
-
- All Implemented Interfaces:
Visitor
public class ShortenVariableNames extends BaseVisitor
Ensure all variable names are 1 or 2 characters long. This allows the source to use more descriptive variable names, which may crossover ("PLAYERX" and "PLAYERY" become "PL" as far Applesoft BASIC is concerned). Somewhat hampers running without this optimization being used, however.
-
-
Field Summary
-
Fields inherited from class io.github.applecommander.bastools.api.optimizations.BaseVisitor
newProgram, reassignments
-
-
Constructor Summary
Constructors Constructor Description ShortenVariableNames(Configuration config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Programvisit(Program program)Statementvisit(Statement statement)Tokenvisit(Token token)-
Methods inherited from class io.github.applecommander.bastools.api.optimizations.BaseVisitor
visit
-
-
-
-
Constructor Detail
-
ShortenVariableNames
public ShortenVariableNames(Configuration config)
-
-