com.webcodepro.applecommander.util
Class BusinessBASICTokenizer

java.lang.Object
  extended by com.webcodepro.applecommander.util.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

Author:
David Schmidt

Constructor Summary
BusinessBASICTokenizer(byte[] fileData)
          Constructor for BusinessBASICTokenizer.
BusinessBASICTokenizer(FileEntry fileEntry)
          Constructor for BusinessBASICTokenizer.
 
Method Summary
 BusinessBASICToken getNextToken()
          Answer with the next token in the Business BASIC program.
 boolean hasMoreTokens()
          Indicates if there are more tokens in the Business BASIC program.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.