Class BusinessBASICTokenizer
- java.lang.Object
-
- 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
-
-
Constructor Summary
Constructors Constructor Description BusinessBASICTokenizer(byte[] fileData)
Constructor for BusinessBASICTokenizer.BusinessBASICTokenizer(FileEntry fileEntry)
Constructor for BusinessBASICTokenizer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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.
-
-