Package edu.wisc.game.parser
Class Token
java.lang.Object
edu.wisc.game.parser.Token
A token represents an element of the input text. Used in parsing rules.
-
Field Details
-
type
-
cVal
public char cVal -
sVal
-
nVal
public int nVal
-
-
Method Details
-
asId
- Returns:
- The string value if it is an ID, or null otherwise
-
equals
-
toString
-
toSrc
-
toArgv
Re-imagines the token as an element of a command line. Used for compatibility purposes in the Captive Game Server. -
tokenize
- Throws:
RuleParseException
-
toString
-
isOpenParen
public boolean isOpenParen() -
main
- Throws:
IOException
RuleParseException
-