uk.ac.ic.doc.automed.editor
Class Syntax.Tokenizer
java.lang.Object
java.io.StreamTokenizer
uk.ac.ic.doc.automed.editor.Syntax.Tokenizer
- Enclosing class:
- Syntax
static class Syntax.Tokenizer
- extends java.io.StreamTokenizer
Fields inherited from class java.io.StreamTokenizer |
nval, sval, TT_EOF, TT_EOL, TT_NUMBER, TT_WORD, ttype |
Methods inherited from class java.io.StreamTokenizer |
commentChar, eolIsSignificant, lineno, lowerCaseMode, nextToken, ordinaryChar, ordinaryChars, parseNumbers, pushBack, quoteChar, resetSyntax, slashSlashComments, slashStarComments, toString, whitespaceChars, wordChars |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
currentToken
private Syntax.Token currentToken
Syntax.Tokenizer
Syntax.Tokenizer(java.io.Reader rdr)
getNextToken
public Syntax.Token getNextToken(int lexp,
int uexp)
throws UnexpectedTokenException,
java.io.IOException,
SyntaxException
- Throws:
UnexpectedTokenException
java.io.IOException
SyntaxException
getNextToken
public Syntax.Token getNextToken(int exp)
throws UnexpectedTokenException,
java.io.IOException,
SyntaxException
- Throws:
UnexpectedTokenException
java.io.IOException
SyntaxException
getNextToken
public Syntax.Token getNextToken()
throws java.io.IOException,
SyntaxException
- Throws:
java.io.IOException
SyntaxException
getCurrentToken
public Syntax.Token getCurrentToken(int lexp,
int uexp)
throws UnexpectedTokenException
- Throws:
UnexpectedTokenException
getCurrentToken
public Syntax.Token getCurrentToken(int exp)
throws UnexpectedTokenException
- Throws:
UnexpectedTokenException
getCurrentToken
public Syntax.Token getCurrentToken()