gnu.kawa.lispexpr
Class ReaderParens

java.lang.Object
  extended by gnu.kawa.lispexpr.ReadTableEntry
      extended by gnu.kawa.lispexpr.ReaderParens

public class ReaderParens
extends ReadTableEntry


Field Summary
 
Fields inherited from class gnu.kawa.lispexpr.ReadTableEntry
constituent, multipleEscape, singleEscape, whitespace
 
Constructor Summary
ReaderParens(char open, char close, int kind)
           
 
Method Summary
static ReaderParens getInstance(char open, char close)
           
static ReaderParens getInstance(char open, char close, int kind)
           
 int getKind()
           
 java.lang.Object read(Lexer in, int ch, int count)
          Read a list (possibly improper) of zero or more Scheme forms.
static java.lang.Object readList(LispReader lexer, int ch, int count, int close)
           
 
Methods inherited from class gnu.kawa.lispexpr.ReadTableEntry
getConstituentInstance, getDigitInstance, getMultipleEscapeInstance, getSingleEscapeInstance, getWhitespaceInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReaderParens

public ReaderParens(char open,
                    char close,
                    int kind)
Method Detail

getKind

public int getKind()
Overrides:
getKind in class ReadTableEntry

getInstance

public static ReaderParens getInstance(char open,
                                       char close)

getInstance

public static ReaderParens getInstance(char open,
                                       char close,
                                       int kind)

read

public java.lang.Object read(Lexer in,
                             int ch,
                             int count)
                      throws java.io.IOException,
                             SyntaxException
Read a list (possibly improper) of zero or more Scheme forms. Assumes '(' has been read.

Overrides:
read in class ReadTableEntry
Throws:
java.io.IOException
SyntaxException

readList

public static java.lang.Object readList(LispReader lexer,
                                        int ch,
                                        int count,
                                        int close)
                                 throws java.io.IOException,
                                        SyntaxException
Throws:
java.io.IOException
SyntaxException