com.webcodepro.applecommander.util
Class ApplesoftTokenizer

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

Author:
Rob Greene

Constructor Summary
ApplesoftTokenizer(byte[] fileData)
          Constructor for ApplesoftTokenizer.
ApplesoftTokenizer(FileEntry fileEntry)
          Constructor for ApplesoftTokenizer.
 
Method Summary
 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.