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
-
Field Summary
FieldsFields inherited from class gnu.kawa.lispexpr.ReadTableEntry
ampersand, brace, constituent, illegal, multipleEscape, singleEscape, whitespace -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectcheckDelim(LispReader reader, int next, int delimiter) protected intenclosedExprDelim(int ch, LispReader reader) protected booleanisNestableEndDelim(int next) protected booleanisNestableStartDelim(int next) readContent(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) readNamedLiteral(LispReader reader, ReadTable rtable, String tag, int next, int startLine, int startColumn) protected ObjectMethods inherited from class gnu.kawa.lispexpr.ReaderMisc
getKindMethods inherited from class gnu.kawa.lispexpr.ReadTableEntry
getConstituentInstance, getDigitInstance, getIllegalInstance, getMultipleEscapeInstance, getSingleEscapeInstance, getWhitespaceInstance, read
-
Field Details
-
escapeChar
public char escapeChar
-
-
Constructor Details
-
ReaderExtendedLiteral
public ReaderExtendedLiteral(char escapeChar) -
ReaderExtendedLiteral
public ReaderExtendedLiteral()
-
-
Method Details
-
read
- Overrides:
readin classReaderConstituent- Throws:
IOExceptionSyntaxException
-
enclosedExprDelim
-
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
-
wrapText
-
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
-