gnu.kawa.lispexpr
Class ReadTable
- Cloneable
CONSTITUENT
public static final int CONSTITUENT
ILLEGAL
public static final int ILLEGAL
Kinds of characters.
MULTIPLE_ESCAPE
public static final int MULTIPLE_ESCAPE
NON_TERMINATING_MACRO
public static final int NON_TERMINATING_MACRO
SINGLE_ESCAPE
public static final int SINGLE_ESCAPE
TERMINATING_MACRO
public static final int TERMINATING_MACRO
WHITESPACE
public static final int WHITESPACE
defaultBracketMode
public static int defaultBracketMode
Default value to pass to setBracketMode() unless overridden.
postfixLookupOperator
public char postfixLookupOperator
A character such that PreOpWord -> ($lookup$ Pre 'Word), if > 0.
ReadTable
public ReadTable()
createInitial
public static ReadTable createInitial()
Create a new ReadTable and initialize it appropriately for Common Lisp.
getCurrent
public static ReadTable getCurrent()
getReaderCtor
public Object getReaderCtor(String key)
Resolve a SRFI-10 constructor tags to a functions.
initialize
public void initialize()
makeSymbol
protected Object makeSymbol(String name)
putReaderCtor
public void putReaderCtor(String key,
Procedure proc)
Add a mapping for a SRFI-10 constructor tag.
putReaderCtorFld
public void putReaderCtorFld(String key,
String cname,
String fname)
Map a SRFI-10 constructor tag to Procedure-valued lazy field
setBracketMode
public void setBracketMode()
Specify how '[' and ']' are handled.
Overless overridden, uses defaultBracketMode.
setBracketMode
public void setBracketMode(int mode)
Specify how '[' and ']' (and '<') are handled.
The value -1 means that '[' and ']' are plain token constituents.
The value 0 means that '[' and ']' are equivalent to '(' and ')'.
The value 1 means that '[' and ']' are equivalent to '(' and ')', except
within a token starting with '<', in which case they are constituents.
This is so '[' is non-terminating when reading say ''
setCurrent
public static void setCurrent(ReadTable rt)