Package gnu.kawa.lispexpr
Class ReaderExtendedLiteral
- java.lang.Object
-
- gnu.kawa.lispexpr.ReadTableEntry
-
- gnu.kawa.lispexpr.ReaderMisc
-
- gnu.kawa.lispexpr.ReaderConstituent
-
- gnu.kawa.lispexpr.ReaderExtendedLiteral
-
- Direct Known Subclasses:
ReaderXmlElement
public class ReaderExtendedLiteral extends ReaderConstituent
-
-
Field Summary
Fields Modifier and Type Field Description charescapeChar-
Fields inherited from class gnu.kawa.lispexpr.ReadTableEntry
ampersand, brace, constituent, illegal, multipleEscape, singleEscape, whitespace
-
-
Constructor Summary
Constructors Constructor Description ReaderExtendedLiteral()ReaderExtendedLiteral(char escapeChar)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ObjectcheckDelim(LispReader reader, int next, int delimiter)protected intenclosedExprDelim(int ch, LispReader reader)protected booleanisNestableEndDelim(int next)protected booleanisNestableStartDelim(int next)Objectread(Lexer in, int ch, int count)PairreadContent(LispReader reader, char delimiter, Pair head)protected PairreadEnclosed(LispReader reader, ReadTable readTable, Pair last, int startDelimiter, int endDelimiter)protected PairreadEnclosedExpressions(LispReader reader, ReadTable readTable, Pair last, int endDelimiter)Read expressions enclosed by '[' and ']'.protected ObjectreadEnclosedSingleExpression(LispReader reader, ReadTable readTable, int ch)ObjectreadNamedLiteral(LispReader reader, ReadTable rtable, String tag, int next, int startLine, int startColumn)protected ObjectwrapText(String text)-
Methods inherited from class gnu.kawa.lispexpr.ReaderMisc
getKind
-
Methods inherited from class gnu.kawa.lispexpr.ReadTableEntry
getConstituentInstance, getDigitInstance, getIllegalInstance, getMultipleEscapeInstance, getSingleEscapeInstance, getWhitespaceInstance, read
-
-
-
-
Method Detail
-
read
public Object read(Lexer in, int ch, int count) throws IOException, SyntaxException
- Overrides:
readin classReaderConstituent- Throws:
IOExceptionSyntaxException
-
enclosedExprDelim
protected int enclosedExprDelim(int ch, LispReader reader)
-
readNamedLiteral
public Object readNamedLiteral(LispReader reader, ReadTable rtable, String tag, int next, int startLine, int startColumn) throws IOException, SyntaxException
- Throws:
IOExceptionSyntaxException
-
checkDelim
protected Object checkDelim(LispReader reader, int next, int delimiter) throws IOException, SyntaxException
- Throws:
IOExceptionSyntaxException
-
isNestableStartDelim
protected boolean isNestableStartDelim(int next)
-
isNestableEndDelim
protected boolean isNestableEndDelim(int next)
-
readContent
public Pair readContent(LispReader reader, char delimiter, Pair head) throws IOException, SyntaxException
- Throws:
IOExceptionSyntaxException
-
readEnclosedSingleExpression
protected Object readEnclosedSingleExpression(LispReader reader, ReadTable readTable, int ch) throws IOException, SyntaxException
- Throws:
IOExceptionSyntaxException
-
readEnclosed
protected Pair readEnclosed(LispReader reader, ReadTable readTable, Pair last, int startDelimiter, int endDelimiter) throws IOException, SyntaxException
- Throws:
IOExceptionSyntaxException
-
readEnclosedExpressions
protected Pair readEnclosedExpressions(LispReader reader, ReadTable readTable, Pair last, int endDelimiter) throws IOException, SyntaxException
Read expressions enclosed by '[' and ']'. Assume '[' has already been read.- Throws:
IOExceptionSyntaxException
-
-