sisc.reader
Class Lexer

java.lang.Object
  extended by sisc.reader.Lexer
All Implemented Interfaces:
Tokens

public class Lexer
extends java.lang.Object
implements Tokens


Field Summary
static char[] hex_number_prefixes
           
static char[] number_prefixes
           
 Quantity nval
           
static char[] protected_literal_barrier
           
 Pair prval
           
static char[] reserved
           
static char[] sharp_special
           
static char[] special
           
static char[] special_and_reserved
           
static char[] special_initials
           
static char[] special_subsequents
           
 boolean strictR5RS
           
 java.lang.String sval
           
static char[] unprintable_characters
           
 
Fields inherited from interface sisc.reader.Tokens
TT_BACKQUOTE, TT_DOT, TT_ENDPAIR, TT_EOF, TT_NUMBER, TT_PAIR, TT_PIPE, TT_QUOTE, TT_SHARP, TT_STRING, TT_SYMBOL, TT_UNQUOTE, TT_UNQUOTE_SPLICING
 
Constructor Summary
Lexer()
           
 
Method Summary
 int _nextToken(java.io.PushbackReader is, int radix)
           
static boolean contains(java.lang.String c, char[] set)
           
static boolean in(char c, char[] set)
           
static boolean isIdentifierStart(char c)
           
static boolean isIdentifierSubsequent(char c)
           
static boolean isPrintable(char c)
           
 int nextToken(java.io.PushbackReader is, int radix)
           
static boolean numberStart(char c, int radix)
           
 int readChar(java.io.PushbackReader is)
           
 int readChar(java.io.PushbackReader is, boolean handleEscapes, boolean invertEscaped, boolean respectReserved)
           
 int readIgnoringWhitespace(java.io.PushbackReader is)
           
 int readPureChar(java.io.PushbackReader is)
           
 java.lang.String readToBreak(java.io.PushbackReader is, char[] stops, boolean handleEscapes, boolean ignoreEscapedBreaks)
           
 java.lang.String readToEndOfString(java.io.PushbackReader is)
           
 void skipMultilineComment(java.io.PushbackReader in)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

special

public static final char[] special

sharp_special

public static final char[] sharp_special

number_prefixes

public static final char[] number_prefixes

hex_number_prefixes

public static final char[] hex_number_prefixes

reserved

public static final char[] reserved

special_and_reserved

public static final char[] special_and_reserved

special_initials

public static final char[] special_initials

special_subsequents

public static final char[] special_subsequents

protected_literal_barrier

public static final char[] protected_literal_barrier

unprintable_characters

public static final char[] unprintable_characters

strictR5RS

public boolean strictR5RS

sval

public java.lang.String sval

nval

public Quantity nval

prval

public Pair prval
Constructor Detail

Lexer

public Lexer()
Method Detail

isIdentifierStart

public static final boolean isIdentifierStart(char c)

isIdentifierSubsequent

public static final boolean isIdentifierSubsequent(char c)

isPrintable

public static final boolean isPrintable(char c)

readIgnoringWhitespace

public int readIgnoringWhitespace(java.io.PushbackReader is)
                           throws java.io.IOException
Throws:
java.io.IOException

nextToken

public int nextToken(java.io.PushbackReader is,
                     int radix)
              throws java.io.IOException
Throws:
java.io.IOException

_nextToken

public int _nextToken(java.io.PushbackReader is,
                      int radix)
               throws java.io.IOException
Throws:
java.io.IOException

readChar

public int readChar(java.io.PushbackReader is)
             throws java.io.IOException
Throws:
java.io.IOException

readPureChar

public int readPureChar(java.io.PushbackReader is)
                 throws java.io.IOException
Throws:
java.io.IOException

readChar

public int readChar(java.io.PushbackReader is,
                    boolean handleEscapes,
                    boolean invertEscaped,
                    boolean respectReserved)
             throws java.io.IOException
Throws:
java.io.IOException

readToEndOfString

public java.lang.String readToEndOfString(java.io.PushbackReader is)
                                   throws java.io.IOException
Throws:
java.io.IOException

readToBreak

public java.lang.String readToBreak(java.io.PushbackReader is,
                                    char[] stops,
                                    boolean handleEscapes,
                                    boolean ignoreEscapedBreaks)
                             throws java.io.IOException
Throws:
java.io.IOException

numberStart

public static boolean numberStart(char c,
                                  int radix)

in

public static boolean in(char c,
                         char[] set)

contains

public static boolean contains(java.lang.String c,
                               char[] set)

skipMultilineComment

public void skipMultilineComment(java.io.PushbackReader in)
                          throws java.io.IOException
Throws:
java.io.IOException