uchicago.src.sim.parameter
Class ParameterLexer
java.lang.Object
uchicago.src.sim.parameter.ParameterLexer
public class ParameterLexer
- extends java.lang.Object
A lexer for parameter files. Helps parameter reader turn parameter files into
Parameters. For more on parameter files see
ParameterReader
- Version:
- $Revision: 1.7 $ $Date: 2005/07/14 14:45:33 $
- Author:
- Nick Collier
- See Also:
SimInit,
ParameterReader
|
Constructor Summary |
ParameterLexer(java.io.Reader in)
Create ParameterLexer using the specified Reader as input. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INVALID_CHAR
public static final int INVALID_CHAR
- See Also:
- Constant Field Values
LEFT_BRACE
public static final int LEFT_BRACE
- See Also:
- Constant Field Values
RIGHT_BRACE
public static final int RIGHT_BRACE
- See Also:
- Constant Field Values
START
public static final int START
- See Also:
- Constant Field Values
INCR
public static final int INCR
- See Also:
- Constant Field Values
END
public static final int END
- See Also:
- Constant Field Values
RUNS
public static final int RUNS
- See Also:
- Constant Field Values
NUMBER
public static final int NUMBER
- See Also:
- Constant Field Values
WORD
public static final int WORD
- See Also:
- Constant Field Values
SET
public static final int SET
- See Also:
- Constant Field Values
SET_LIST
public static final int SET_LIST
- See Also:
- Constant Field Values
BOOL_SET
public static final int BOOL_SET
- See Also:
- Constant Field Values
BOOL_SET_LIST
public static final int BOOL_SET_LIST
- See Also:
- Constant Field Values
STRING_SET
public static final int STRING_SET
- See Also:
- Constant Field Values
STRING_SET_LIST
public static final int STRING_SET_LIST
- See Also:
- Constant Field Values
BOOL
public static final int BOOL
- See Also:
- Constant Field Values
EOF
public static final int EOF
- See Also:
- Constant Field Values
LEFT_PAREN
public static final int LEFT_PAREN
- See Also:
- Constant Field Values
RIGHT_PAREN
public static final int RIGHT_PAREN
- See Also:
- Constant Field Values
IO_INPUT
public static final int IO_INPUT
- See Also:
- Constant Field Values
IO_OUTPUT
public static final int IO_OUTPUT
- See Also:
- Constant Field Values
SLASH
public static final int SLASH
- See Also:
- Constant Field Values
ParameterLexer
public ParameterLexer(java.io.Reader in)
- Create ParameterLexer using the specified Reader as input.
getString
public java.lang.String getString()
getNumber
public double getNumber()
getLineNum
public int getLineNum()
pushBack
public void pushBack()
nextToken
public int nextToken()
throws java.io.IOException
- Get the next token in the input stream
- Returns:
- the next token
- Throws:
java.io.IOException
reset
public void reset(boolean number)