Class ApplesoftTokenizer
java.lang.Object
com.webcodepro.applecommander.util.ApplesoftTokenizer
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
ConstructorsConstructorDescriptionApplesoftTokenizer
(byte[] fileData) Constructor for ApplesoftTokenizer.ApplesoftTokenizer
(FileEntry fileEntry) Constructor for ApplesoftTokenizer. -
Method Summary
Modifier and TypeMethodDescriptionAnswer with the next token in the Applesoft program.boolean
Indicates if there are more tokens in the Applesoft program.
-
Constructor Details
-
ApplesoftTokenizer
Constructor for ApplesoftTokenizer. -
ApplesoftTokenizer
public ApplesoftTokenizer(byte[] fileData) Constructor for ApplesoftTokenizer.
-
-
Method Details
-
hasMoreTokens
public boolean hasMoreTokens()Indicates if there are more tokens in the Applesoft program. -
getNextToken
Answer with the next token in the Applesoft program. This may be code, string pieces, line numbers.
-