content
Content of the lexer.
protected boolean
digit(int code)
protected static void
protected int
ComplexNumberToken
from complex number string.protected void
putBackSymbol(int sym)
content
- - String representation of complex numbercode
- - ascii value of charactersym
- - symbol to place back into content stringComplexNumberToken
from complex number string. Also removes this
ComplexNumberToken from the string. This method implements a finite automata which describes the legal arrangement of
tokens within a complex number.ComplexNumberToken
in string.RuntimeException
- If the string is not a valid representation of a complex number.message
- - error message to print