Prolog Cafe v1.2

jp.ac.kobe_u.cs.prolog.lang
Class Token

java.lang.Object
  extended by jp.ac.kobe_u.cs.prolog.lang.Token
All Implemented Interfaces:
java.io.Serializable

public class Token
extends java.lang.Object
implements java.io.Serializable

The Token class contains methods for character input/output.
This document is under construction.

See Also:
Serialized Form

Constructor Summary
Token()
           
 
Method Summary
static int escapeSequences(int backslash, java.lang.StringBuffer s, java.io.PushbackReader in)
           
static int getStringType(java.lang.String s)
           
static boolean isSolo(int c)
           
static boolean isSymbol(int c)
           
static int read_number(int c, java.lang.StringBuffer s, java.io.PushbackReader in)
           
static int read_quoted(int quote, java.lang.StringBuffer s, java.io.PushbackReader in)
           
static int read_symbol(int c, java.lang.StringBuffer s, java.io.PushbackReader in)
           
static int read_token(java.lang.StringBuffer s, java.io.PushbackReader in)
           
static int read_word(int c, java.lang.StringBuffer s, java.io.PushbackReader in)
           
static java.lang.String toQuotedString(java.lang.String s)
           
static void write_string(java.lang.String s, java.io.PrintWriter out)
           
static void writeq_string(java.lang.String s, java.io.PrintWriter out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Token

public Token()
Method Detail

isSolo

public static boolean isSolo(int c)

isSymbol

public static boolean isSymbol(int c)

read_token

public static int read_token(java.lang.StringBuffer s,
                             java.io.PushbackReader in)
                      throws java.io.IOException
Throws:
java.io.IOException

read_number

public static int read_number(int c,
                              java.lang.StringBuffer s,
                              java.io.PushbackReader in)
                       throws java.io.IOException
Throws:
java.io.IOException

read_word

public static int read_word(int c,
                            java.lang.StringBuffer s,
                            java.io.PushbackReader in)
                     throws java.io.IOException
Throws:
java.io.IOException

read_quoted

public static int read_quoted(int quote,
                              java.lang.StringBuffer s,
                              java.io.PushbackReader in)
                       throws java.io.IOException
Throws:
java.io.IOException

escapeSequences

public static int escapeSequences(int backslash,
                                  java.lang.StringBuffer s,
                                  java.io.PushbackReader in)
                           throws java.io.IOException
Throws:
java.io.IOException

read_symbol

public static int read_symbol(int c,
                              java.lang.StringBuffer s,
                              java.io.PushbackReader in)
                       throws java.io.IOException
Throws:
java.io.IOException

write_string

public static void write_string(java.lang.String s,
                                java.io.PrintWriter out)

writeq_string

public static void writeq_string(java.lang.String s,
                                 java.io.PrintWriter out)

toQuotedString

public static java.lang.String toQuotedString(java.lang.String s)

getStringType

public static int getStringType(java.lang.String s)

Prolog Cafe v1.2

Copyright (C) 1997-2008 M.BANBARA and N.TAMURA