content
Content of the lexer.
protected static void
protected int
abstract org.flag4j.io.parsing.Token
Token
from the string being parsed.protected boolean
isDigit(int code)
protected void
putBackSymbol(int sym)
content
- String representation of complex numbercode
- ascii value of charactertrue
if character is digit; false
otherwise.sym
- Symbol to place back into content stringToken
from the string being parsed. Also removes this
Token from the string. This method implements a finite automata which describes the legal arrangement of
tokens within a complex number.Token
in string.RuntimeException
- If the string is not a valid representation of a complex number.message
- Error message to print