public class TokenizerGEDCOM
extends java.lang.Object
Constructor and Description |
---|
TokenizerGEDCOM(DFA myDFA,
Linus lineSvr)
Construct a Tokenizer for GEDCOM files.
|
Modifier and Type | Method and Description |
---|---|
TokenScanned |
lookAhead()
Returns the current token without consuming it.
|
TokenScanned |
readToken()
Returns the current token and reads a new one to take its place.
|
public TokenizerGEDCOM(DFA myDFA, Linus lineSvr) throws KSParsingErrorException
myDFA
- a DFA
containing a parse table suitable for the file served by lineSvr
.lineSvr
- serves contents of the file to be parsed one line at a time.KSParsingErrorException
public TokenScanned lookAhead()
public TokenScanned readToken() throws KSParsingErrorException
KSParsingErrorException