Class ApplesoftTokenizer


  • public class ApplesoftTokenizer
    extends java.lang.Object
    Tokenize the given file as an Applesoft file.

    Applesoft memory format:
    [Line]
    ... [Line]

    where [Line] is:
    [Next addr - $0000 is end of program] (word)
    [Line no] (word)
    [Tokens and/or characters]
    [End-of-line marker: $00 bytes]

    Date created: May 26, 2003 10:36:04 PM

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ApplesoftToken getNextToken()
      Answer with the next token in the Applesoft program.
      boolean hasMoreTokens()
      Indicates if there are more tokens in the Applesoft program.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ApplesoftTokenizer

        public ApplesoftTokenizer​(FileEntry fileEntry)
        Constructor for ApplesoftTokenizer.
      • ApplesoftTokenizer

        public ApplesoftTokenizer​(byte[] fileData)
        Constructor for ApplesoftTokenizer.
    • Method Detail

      • hasMoreTokens

        public boolean hasMoreTokens()
        Indicates if there are more tokens in the Applesoft program.
      • getNextToken

        public ApplesoftToken getNextToken()
        Answer with the next token in the Applesoft program. This may be code, string pieces, line numbers.