Class 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.