gnu.kawa.lispexpr

Class ReadTable

public class ReadTable extends RangeTable

Field Summary
static intCONSTITUENT
static intdefaultBracketMode
Default value to pass to setBracketMode() unless overridden.
static intILLEGAL
Kinds of characters.
static intMULTIPLE_ESCAPE
static intNON_TERMINATING_MACRO
charpostfixLookupOperator
A character such that PreOpWord -> ($lookup$ Pre 'Word), if > 0.
static intSINGLE_ESCAPE
static intTERMINATING_MACRO
static intWHITESPACE
Constructor Summary
ReadTable()
Method Summary
static ReadTablecreateInitial()
Create a new ReadTable and initialize it appropriately for Common Lisp.
static ReadTablegetCurrent()
ObjectgetReaderCtor(String key)
Resolve a SRFI-10 constructor tags to a functions.
voidinitialize()
ReadTableEntrylookup(int ch)
protected ObjectmakeSymbol(String name)
voidputReaderCtor(String key, Procedure proc)
Add a mapping for a SRFI-10 constructor tag.
voidputReaderCtorFld(String key, String cname, String fname)
Map a SRFI-10 constructor tag to Procedure-valued lazy field
voidsetBracketMode(int mode)
Specify how '[' and ']' (and '<') are handled.
voidsetBracketMode()
Specify how '[' and ']' are handled.
static voidsetCurrent(ReadTable rt)

Field Detail

CONSTITUENT

public static final int CONSTITUENT

defaultBracketMode

public static int defaultBracketMode
Default value to pass to setBracketMode() unless overridden.

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

postfixLookupOperator

public char postfixLookupOperator
A character such that PreOpWord -> ($lookup$ Pre 'Word), if > 0.

SINGLE_ESCAPE

public static final int SINGLE_ESCAPE

TERMINATING_MACRO

public static final int TERMINATING_MACRO

WHITESPACE

public static final int WHITESPACE

Constructor Detail

ReadTable

public ReadTable()

Method Detail

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()

lookup

public ReadTableEntry lookup(int ch)

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(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 ''

setBracketMode

public void setBracketMode()
Specify how '[' and ']' are handled. Overless overridden, uses defaultBracketMode.

setCurrent

public static void setCurrent(ReadTable rt)