Class ApplesoftTokenizer
- java.lang.Object
-
- 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
-
-
Constructor Summary
Constructors Constructor Description ApplesoftTokenizer(byte[] fileData)
Constructor for ApplesoftTokenizer.ApplesoftTokenizer(FileEntry fileEntry)
Constructor for ApplesoftTokenizer.
-
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.
-
-
-
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.
-
-