Class BusinessBASICTokenizer


  • public class BusinessBASICTokenizer
    extends java.lang.Object
    Tokenize the given file as an Apple /// Business BASCIC file.

    Apple /// Business BASIC memory format:
    [Line]
    ... [Line]

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

    Date created: Dec 15, 2008 11:17:04 PM

    • Constructor Detail

      • BusinessBASICTokenizer

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

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

      • hasMoreTokens

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

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